|
|||||||||
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.BlockLattice2D
A lattice for two dimensional Block CA's
Field Summary |
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 | |
BlockLattice2D(java.lang.Class state,
de.tubs.cs.sc.casim.LatticeDefinition definition)
Constructor creates a two 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)
returns the current state at the given coordinates. |
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 |
Constructor Detail |
public BlockLattice2D(java.lang.Class state, de.tubs.cs.sc.casim.LatticeDefinition definition) throws CAException
Method Detail |
protected void reset() throws CAException
reset
in class BlockLattice
CAException
public int getDimension()
getDimension
in class Lattice
public 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 Lattice
BoundaryHandler.getOutsideState(int)
protected final void transition()
transition
in class BlockLattice
BlockState.transition(de.tubs.cs.sc.casim.BlockState[])
protected final void reversetransition()
reversetransition
in class BlockLattice
BlockState.reversetransition(de.tubs.cs.sc.casim.BlockState[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |