de.tubs.cs.sc.casim
Class Lattice2DThreaded

java.lang.Object
  |
  +--de.tubs.cs.sc.casim.Lattice
        |
        +--de.tubs.cs.sc.casim.CALattice
              |
              +--de.tubs.cs.sc.casim.Lattice2D
                    |
                    +--de.tubs.cs.sc.casim.Lattice2DSquare
                          |
                          +--de.tubs.cs.sc.casim.Lattice2DThreaded
All Implemented Interfaces:
java.io.Serializable

public class Lattice2DThreaded
extends Lattice2DSquare

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.tubs.cs.sc.casim.Lattice2D
backingUp, cells, transitioning
 
Fields inherited from class de.tubs.cs.sc.casim.CALattice
neighborhoodIndexes
 
Fields inherited from class de.tubs.cs.sc.casim.Lattice
boundaryHandler, lx, ly, lz
 
Constructor Summary
Lattice2DThreaded(java.lang.Class state, de.tubs.cs.sc.casim.LatticeDefinition ldef)
          Constructor of Lattice
 
Method Summary
 void backup()
          executes one backup step, with multithreaded updating.
protected  void finish()
          Possibility to do some cleanup work before the lattice is discarded.
protected  void reset()
          reset the lattice, start threads and distribute the task.
 void transition()
          executes one transition step, with multithreaded updating.
 
Methods inherited from class de.tubs.cs.sc.casim.Lattice2DSquare
getNeighborsMoore, getNeighborsMoore, getNeighborsvonNeumann, getNeighborsvonNeumann, getNrOfNeighbors
 
Methods inherited from class de.tubs.cs.sc.casim.Lattice2D
getDimension, getNeighborRelative, getNeighborsArbitrary, getOldState, getState, getState, getState, setIs, toString
 
Methods inherited from class de.tubs.cs.sc.casim.CALattice
defineNeighborsArbitrary, getNeighbors, reversetransition
 
Methods inherited from class de.tubs.cs.sc.casim.Lattice
addBoundaryHandler, beginBlock, callAnalyze, callInitialize, endBlock, getBoundaryHandler, getDefinition, getStateClass, getX, getY, getZ, setNeighborhood, waitForReadyForBackup, waitForReadyForTransition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lattice2DThreaded

public Lattice2DThreaded(java.lang.Class state,
                         de.tubs.cs.sc.casim.LatticeDefinition ldef)
                  throws CAException
Constructor of Lattice

Method Detail

reset

protected void reset()
              throws CAException
reset the lattice, start threads and distribute the task.

Overrides:
reset in class Lattice2D
CAException

finish

protected void finish()
Possibility to do some cleanup work before the lattice is discarded. This is used in Lattice2DThreaded to finish the threads.

Overrides:
finish in class Lattice

transition

public void transition()
executes one transition step, with multithreaded updating.

Overrides:
transition in class Lattice2D
See Also:
Lattice.transition()

backup

public void backup()
executes one backup step, with multithreaded updating.

Overrides:
backup in class Lattice2D
See Also:
Lattice.backup()