de.tubs.cs.sc.casim
Class ConstantBoundaryHandler

java.lang.Object
  |
  +--de.tubs.cs.sc.casim.BoundaryHandler
        |
        +--de.tubs.cs.sc.casim.ConstantBoundaryHandler
All Implemented Interfaces:
java.io.Serializable

public class ConstantBoundaryHandler
extends BoundaryHandler

The boundary handler for construction property constant states at boundary. ConstantBoundaryHandler will always return the constant state of the sub class of State for all cells outside the lattice.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.tubs.cs.sc.casim.BoundaryHandler
dimension, direction, FIRST_DIMENSION, lattice, NEGATIVE, POSITIVE, SECOND_DIMENSION, THIRD_DIMENSION
 
Constructor Summary
ConstantBoundaryHandler(int myDim, boolean positive, de.tubs.cs.sc.casim.Lattice l)
          Constructor Calls only base class constructor to initialize parameters.
 
Method Summary
 de.tubs.cs.sc.casim.State getOutsideState(int x)
          The derived classes should return the requested old state outside current lattice.
 de.tubs.cs.sc.casim.State getOutsideState(int x, int y)
           
 de.tubs.cs.sc.casim.State getOutsideState(int x, int y, int z)
           
 
Methods inherited from class de.tubs.cs.sc.casim.BoundaryHandler
getDimension, getDirection, readyForBackup, readyForTransition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantBoundaryHandler

public ConstantBoundaryHandler(int myDim,
                               boolean positive,
                               de.tubs.cs.sc.casim.Lattice l)
Constructor Calls only base class constructor to initialize parameters.

See Also:
BoundaryHandler.BoundaryHandler(int, boolean, de.tubs.cs.sc.casim.Lattice)
Method Detail

getOutsideState

public de.tubs.cs.sc.casim.State getOutsideState(int x)
Description copied from class: BoundaryHandler
The derived classes should return the requested old state outside current lattice. If the lattice detects, that a state outside itself is requested, the lattice checks for a matching BoundaryHandler at this border and calls getOutsideState

Specified by:
getOutsideState in class BoundaryHandler
Returns:
the constant state of the lattice

getOutsideState

public de.tubs.cs.sc.casim.State getOutsideState(int x,
                                                 int y)
Specified by:
getOutsideState in class BoundaryHandler
Returns:
the constant state of the lattice

getOutsideState

public de.tubs.cs.sc.casim.State getOutsideState(int x,
                                                 int y,
                                                 int z)
Specified by:
getOutsideState in class BoundaryHandler
Returns:
the constant state of the lattice