|
|||||||||
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.CALattice
is the base class for all lattices for standard CA
Field Summary | |
protected int[][] |
neighborhoodIndexes
|
Fields inherited from class de.tubs.cs.sc.casim.Lattice |
boundaryHandler, lx, ly, lz |
Constructor Summary | |
protected |
CALattice(java.lang.Class state,
de.tubs.cs.sc.casim.LatticeDefinition ldef)
Constructor calls base class constructor and initializes references to null |
Method Summary | |
void |
defineNeighborsArbitrary(int[][] indexes)
defines an arbitrary neighborhood for the CA |
protected abstract de.tubs.cs.sc.casim.State |
getNeighborRelative(de.tubs.cs.sc.casim.Cell cell,
int x,
int y,
int z)
returns the relative neighbor of cell with given relative coordinates. |
protected de.tubs.cs.sc.casim.State[] |
getNeighbors(de.tubs.cs.sc.casim.Cell cell)
returns the set of neighbors for cell. |
protected abstract de.tubs.cs.sc.casim.State[] |
getNeighborsArbitrary(de.tubs.cs.sc.casim.Cell cell)
returns a previously defined arbitrary neighborhood. |
protected abstract de.tubs.cs.sc.casim.State[] |
getNeighborsMoore(de.tubs.cs.sc.casim.Cell cell)
returns the Moore neighborhood with radius 1. |
protected abstract de.tubs.cs.sc.casim.State[] |
getNeighborsMoore(de.tubs.cs.sc.casim.Cell cell,
int r)
returns the Moore neighborhood with radius r. |
protected abstract de.tubs.cs.sc.casim.State[] |
getNeighborsvonNeumann(de.tubs.cs.sc.casim.Cell cell)
returns the von Neumann neighborhood with radius 1. |
protected abstract de.tubs.cs.sc.casim.State[] |
getNeighborsvonNeumann(de.tubs.cs.sc.casim.Cell cell,
int r)
returns the von Neumann neighborhood with radius r. |
protected abstract int |
getNrOfNeighbors()
|
protected void |
reversetransition()
is only important for Block CA's and throws for CALattice always a RuntimeException |
Methods inherited from class de.tubs.cs.sc.casim.Lattice |
addBoundaryHandler, backup, beginBlock, callAnalyze, callInitialize, endBlock, finish, getBoundaryHandler, getDefinition, getDimension, getOldState, getState, getState, getState, getStateClass, getX, getY, getZ, reset, setNeighborhood, transition, waitForReadyForBackup, waitForReadyForTransition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int[][] neighborhoodIndexes
Constructor Detail |
protected CALattice(java.lang.Class state, de.tubs.cs.sc.casim.LatticeDefinition ldef) throws CAException
Method Detail |
protected de.tubs.cs.sc.casim.State[] getNeighbors(de.tubs.cs.sc.casim.Cell cell)
protected abstract int getNrOfNeighbors()
protected abstract de.tubs.cs.sc.casim.State[] getNeighborsvonNeumann(de.tubs.cs.sc.casim.Cell cell)
getNeighbors(de.tubs.cs.sc.casim.Cell)
protected abstract de.tubs.cs.sc.casim.State[] getNeighborsMoore(de.tubs.cs.sc.casim.Cell cell)
getNeighbors(de.tubs.cs.sc.casim.Cell)
protected abstract de.tubs.cs.sc.casim.State[] getNeighborsvonNeumann(de.tubs.cs.sc.casim.Cell cell, int r)
getNeighbors(de.tubs.cs.sc.casim.Cell)
protected abstract de.tubs.cs.sc.casim.State[] getNeighborsMoore(de.tubs.cs.sc.casim.Cell cell, int r)
getNeighbors(de.tubs.cs.sc.casim.Cell)
protected abstract de.tubs.cs.sc.casim.State[] getNeighborsArbitrary(de.tubs.cs.sc.casim.Cell cell)
getNeighbors(de.tubs.cs.sc.casim.Cell)
protected abstract de.tubs.cs.sc.casim.State getNeighborRelative(de.tubs.cs.sc.casim.Cell cell, int x, int y, int z)
getNeighbors(de.tubs.cs.sc.casim.Cell)
public void defineNeighborsArbitrary(int[][] indexes)
defineNeighborsArbitrary
in class Lattice
protected final void reversetransition()
reversetransition
in class Lattice
BlockState.reversetransition(de.tubs.cs.sc.casim.BlockState[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |