|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.tubs.cs.sc.casim.Lattice
|
+--de.tubs.cs.sc.casim.BlockLattice
Base class for all block lattices. This group of classes implements Block CA's lattices. BlockLattice implements initialization, definition of blocks access to the States, a transition function and a reverse transition function.
| Field Summary | |
protected int[][] |
blockDims
|
protected int |
blockNo
|
protected int[][][] |
blocks
|
protected de.tubs.cs.sc.casim.BlockState[] |
blockStates
|
| Fields inherited from class de.tubs.cs.sc.casim.Lattice |
boundaryHandler, lx, ly, lz |
| Constructor Summary | |
BlockLattice(java.lang.Class state,
de.tubs.cs.sc.casim.LatticeDefinition definition)
Constructor Base class for all block lattices only calls Lattice constructor an initializes everything to zero. |
|
| Method Summary | |
protected void |
backup()
does nothing, because Block CA's don't need any backup of cells and store only one state array |
void |
defineNeighborsArbitrary(int[][] indexes)
neighborhoods are not allowed for Block CA's it's only for the Lattice interface. |
protected void |
initBlock()
initializes all block specific arrays and dimensions of blocks. |
protected void |
reset()
Base class reset only resets blockNo. |
protected void |
reversetransition()
base class reversetransition of Block CA decreases blockCounter and swaps back to blocks length if all blocks are rounded. |
protected void |
transition()
base class transition of Block CA increases blockCounter and swaps back to zero if all blocks are rounded. |
| Methods inherited from class de.tubs.cs.sc.casim.Lattice |
addBoundaryHandler, beginBlock, callAnalyze, callInitialize, endBlock, finish, getBoundaryHandler, getDefinition, getDimension, getOldState, getState, getState, getState, getStateClass, getX, getY, getZ, setNeighborhood, waitForReadyForBackup, waitForReadyForTransition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int[][][] blocks
protected transient de.tubs.cs.sc.casim.BlockState[] blockStates
protected int[][] blockDims
protected int blockNo
| Constructor Detail |
public BlockLattice(java.lang.Class state,
de.tubs.cs.sc.casim.LatticeDefinition definition)
throws CAException
| Method Detail |
protected void initBlock()
throws CAException
CAExceptionprotected void backup()
backup in class LatticeCell.backup(),
State.copy(de.tubs.cs.sc.casim.State),
BoundaryHandler.readyForBackup(int)
protected void reset()
throws CAException
reset in class LatticeCAExceptionprotected void transition()
transition in class LatticeCell.transition(),
State.transition(de.tubs.cs.sc.casim.Cell),
BoundaryHandler.readyForTransition(int)protected void reversetransition()
reversetransition in class LatticeBlockState.reversetransition(de.tubs.cs.sc.casim.BlockState[])public void defineNeighborsArbitrary(int[][] indexes)
defineNeighborsArbitrary in class Lattice
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||