de.tubs.cs.sc.casim
Class Lattice3DNative

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

public class Lattice3DNative
extends Lattice3D

See Also:
Serialized Form

Field Summary
 
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
Lattice3DNative(java.lang.Class state, de.tubs.cs.sc.casim.LatticeDefinition ldef)
          Constructor of Lattice
 
Method Summary
 void backup()
          calls backup for each cell
 void backupNative()
           
 void beginBlock()
          methods to indicate the begining and the end of a sequence of ( transition(); backup() )* calls.
 void beginBlockBorderNative()
           
 void beginBlockNative()
           
 void endBlock()
          methods to indicate the begining and the end of a sequence of ( transition(); backup() )* calls.
 void endBlockBorderNative()
           
 void endBlockNative()
           
protected  void reset()
          reallocates all cells and calls again State.initialize
protected  void resetNative(int lx, int ly, int lz)
           
 void transition()
          calls transition for each cells state
 void transitionNative()
           
 
Methods inherited from class de.tubs.cs.sc.casim.Lattice3D
getDimension, getNeighborRelative, getNeighborsArbitrary, getNeighborsMoore, getNeighborsMoore, getNeighborsvonNeumann, getNeighborsvonNeumann, getNrOfNeighbors, getOldState, getState, getState, getState, setIs
 
Methods inherited from class de.tubs.cs.sc.casim.CALattice
defineNeighborsArbitrary, getNeighbors, reversetransition
 
Methods inherited from class de.tubs.cs.sc.casim.Lattice
addBoundaryHandler, callAnalyze, callInitialize, 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

Lattice3DNative

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

Method Detail

reset

protected void reset()
              throws CAException
reallocates all cells and calls again State.initialize

Overrides:
reset in class Lattice3D
CAException

resetNative

protected void resetNative(int lx,
                           int ly,
                           int lz)

beginBlockBorderNative

public void beginBlockBorderNative()

endBlockBorderNative

public void endBlockBorderNative()

beginBlockNative

public void beginBlockNative()

endBlockNative

public void endBlockNative()

transitionNative

public void transitionNative()

backupNative

public void backupNative()

beginBlock

public void beginBlock()
Description copied from class: Lattice
methods to indicate the begining and the end of a sequence of ( transition(); backup() )* calls. This is used for Native Lattice subclasses which need to copy to and from Java structurs at the beginning and at the end of such blocks.

Overrides:
beginBlock in class Lattice

endBlock

public void endBlock()
Description copied from class: Lattice
methods to indicate the begining and the end of a sequence of ( transition(); backup() )* calls. This is used for Native Lattice subclasses which need to copy to and from Java structurs at the beginning and at the end of such blocks. Also used to call anaylze(Lattice).

Overrides:
endBlock in class Lattice

transition

public void transition()
Description copied from class: Lattice3D
calls transition for each cells state

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

backup

public void backup()
Description copied from class: Lattice3D
calls backup for each cell

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