de.tubs.cs.sc.casim
Class ReflectivBoundaryHandler
java.lang.Object
|
+--de.tubs.cs.sc.casim.BoundaryHandler
|
+--de.tubs.cs.sc.casim.ReflectivBoundaryHandler
- All Implemented Interfaces:
- java.io.Serializable
- public class ReflectivBoundaryHandler
- extends BoundaryHandler
The boundary handler for construction property reflectiv extension
of lattice at boundary.
PeriodicBoundaryHandler will always access cell's state at the same
side were the cell index went out of the lattice.
- See Also:
- Serialized Form
Constructor Summary |
ReflectivBoundaryHandler(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectivBoundaryHandler
public ReflectivBoundaryHandler(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)
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 x's cells state from the same side of the lattice.
getOutsideState
public de.tubs.cs.sc.casim.State getOutsideState(int x,
int y)
- Specified by:
getOutsideState
in class BoundaryHandler
- Returns:
- the x's cells state from the same side of the lattice,
if it's a first dimension boundary handler, y is used unchanged as row index.
getOutsideState
public de.tubs.cs.sc.casim.State getOutsideState(int x,
int y,
int z)
- Specified by:
getOutsideState
in class BoundaryHandler
- Returns:
- the x's cells state from the same side of the lattice,
if it's a first dimension boundary handler, y and z are used unchanged.