|
|||||||||
| 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
|
+--de.tubs.cs.sc.casim.BlockLattice3D
A three dimensional lattice for block CA's.
| Field Summary | |
protected de.tubs.cs.sc.casim.BlockState[][][] |
states
|
| Fields inherited from class de.tubs.cs.sc.casim.BlockLattice |
blockDims, blockNo, blocks, blockStates |
| Fields inherited from class de.tubs.cs.sc.casim.Lattice |
boundaryHandler, lx, ly, lz |
| Constructor Summary | |
BlockLattice3D(java.lang.Class state,
de.tubs.cs.sc.casim.LatticeDefinition definition)
Constructor creates a three dimensional array of State, initializes lattice and block sizes |
|
| Method Summary | |
int |
getDimension()
|
de.tubs.cs.sc.casim.State |
getOldState(int x,
int y,
int z)
returns the state at the given coordinates using boundary handlers. |
de.tubs.cs.sc.casim.State |
getState(int x)
will always throw a RuntimeException if the method will be used. |
de.tubs.cs.sc.casim.State |
getState(int x,
int y)
will always throw a RuntimeException if the method will be used. |
de.tubs.cs.sc.casim.State |
getState(int x,
int y,
int z)
returns the current state at the given coordinates. |
protected void |
reset()
recreates the whole CA by creating new States initializes the lattice |
protected void |
reversetransition()
calculates all block patterns and calls reversetransition with the array of BlockStates |
protected void |
transition()
calculates all block patterns and calls transition with the array of BlockStates |
| Methods inherited from class de.tubs.cs.sc.casim.BlockLattice |
backup, defineNeighborsArbitrary, initBlock |
| Methods inherited from class de.tubs.cs.sc.casim.Lattice |
addBoundaryHandler, beginBlock, callAnalyze, callInitialize, endBlock, finish, getBoundaryHandler, getDefinition, 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 de.tubs.cs.sc.casim.BlockState[][][] states
| Constructor Detail |
public BlockLattice3D(java.lang.Class state,
de.tubs.cs.sc.casim.LatticeDefinition definition)
throws CAException
| Method Detail |
protected void reset()
throws CAException
reset in class BlockLatticeCAExceptionpublic int getDimension()
getDimension in class Latticepublic de.tubs.cs.sc.casim.State getState(int x)
getState in class Lattice
public de.tubs.cs.sc.casim.State getState(int x,
int y)
getState in class Lattice
public de.tubs.cs.sc.casim.State getState(int x,
int y,
int z)
getState in class Lattice
public de.tubs.cs.sc.casim.State getOldState(int x,
int y,
int z)
getOldState in class LatticeBoundaryHandler.getOutsideState(int)protected final void transition()
transition in class BlockLatticeBlockState.transition(de.tubs.cs.sc.casim.BlockState[])protected final void reversetransition()
reversetransition in class BlockLatticeBlockState.reversetransition(de.tubs.cs.sc.casim.BlockState[])
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||