|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.tubs.cs.sc.casim.State
|
+--de.tubs.cs.sc.casim.BlockState
is used to declare a CA as a BlockCA CASim detects that a class extends State and BlockState. The difference to a standard CA is the implemenation of this abstract class. BlockState describes what blocks should be used for transition, the transition function and the reverse transition function.
| Constructor Summary | |
BlockState()
|
|
| Method Summary | |
void |
copy(de.tubs.cs.sc.casim.State s)
the copy method is not needed for Block CA's, so it's final to prevent further overwritings, throws always an exception |
abstract int[][][] |
getBlocks(int dim)
defines a cell pattern describing which cell indexes should be used as blocks. |
abstract void |
reversetransition(de.tubs.cs.sc.casim.BlockState[] states)
the reverse transition function for Block CA's |
abstract void |
transition(de.tubs.cs.sc.casim.BlockState[] states)
the transition function for Block CA's |
void |
transition(de.tubs.cs.sc.casim.Cell cell)
the transition(Cell cell) method is not needed for Block CA's, so it's final to prevent further overwritings, throws always an exception |
| Methods inherited from class de.tubs.cs.sc.casim.State |
equals, getColor, getComponent, getConstant, getConstant, getIcon, globalTransition, hashCode, initialize, initialize, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BlockState()
| Method Detail |
public abstract int[][][] getBlocks(int dim)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic abstract void transition(de.tubs.cs.sc.casim.BlockState[] states)
public abstract void reversetransition(de.tubs.cs.sc.casim.BlockState[] states)
public final void copy(de.tubs.cs.sc.casim.State s)
copy in class Statepublic final void transition(de.tubs.cs.sc.casim.Cell cell)
transition in class StateCell
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||