|
|||||||||
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.BlockLattice1D
A lattice for one 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 | |
BlockLattice1D(java.lang.Class state,
de.tubs.cs.sc.casim.LatticeDefinition definition)
Constructor creates a one 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)
returns the current state at the given coordinates. |
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 |
void |
reversetransition()
calculates all block patterns and calls reversetransition with the array of BlockStates |
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 BlockLattice1D(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
Cell.getNeighbors()
,
BoundaryHandler.getOutsideState(int)
public void transition()
transition
in class BlockLattice
BlockState.transition(de.tubs.cs.sc.casim.BlockState[])
public 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 |