|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tubs.cs.sc.casim.BoundaryHandler
A BoundaryHandler is always connected to one border of a lattice. One dimensional lattices can have two boundary handlers a left and a right one. The left one has negative direction and the right one has positive. Two dimensional lattices can hav four boundary handlers a left, right, bottom and top one. The left and the bottom have negative direction, the right and top one positive. Three dimensional lattices can have six boundary handlers, the four like two dimensional lattices and additional a front and rear boundary handler. The front one has negative direction, the rear positive.
Field Summary | |
protected int |
dimension
|
protected boolean |
direction
|
static int |
FIRST_DIMENSION
first dimension x, from left to right |
protected de.tubs.cs.sc.casim.Lattice |
lattice
|
static boolean |
NEGATIVE
the negative direction |
static boolean |
POSITIVE
the positive direction |
static int |
SECOND_DIMENSION
second dimension y, from bottom to top |
static int |
THIRD_DIMENSION
third dimension z, from front to rear |
Constructor Summary | |
BoundaryHandler(int myDim,
boolean positive,
de.tubs.cs.sc.casim.Lattice l)
Constructor creates a BoundaryHandler with the given parameters. |
Method Summary | |
int |
getDimension()
|
boolean |
getDirection()
|
abstract de.tubs.cs.sc.casim.State |
getOutsideState(int x)
The derived classes should return the requested old state outside current lattice. |
abstract de.tubs.cs.sc.casim.State |
getOutsideState(int x,
int y)
|
abstract de.tubs.cs.sc.casim.State |
getOutsideState(int x,
int y,
int z)
|
void |
readyForBackup(int step)
a virtual method for waiting for ready state for backup all cells of the lattice must be derived if any synchronizing mechanisms are necessary i.e. |
void |
readyForTransition(int step)
a virtual method for waiting for transition state for backup all cells of the lattice must be derived if any synchronizing mechanisms are necessary i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FIRST_DIMENSION
public static final int SECOND_DIMENSION
public static final int THIRD_DIMENSION
public static final boolean POSITIVE
public static final boolean NEGATIVE
protected int dimension
protected boolean direction
protected de.tubs.cs.sc.casim.Lattice lattice
Constructor Detail |
public BoundaryHandler(int myDim, boolean positive, de.tubs.cs.sc.casim.Lattice l)
Lattice
Method Detail |
public final int getDimension()
public final boolean getDirection()
public void readyForBackup(int step)
public void readyForTransition(int step)
public abstract de.tubs.cs.sc.casim.State getOutsideState(int x)
public abstract de.tubs.cs.sc.casim.State getOutsideState(int x, int y)
public abstract de.tubs.cs.sc.casim.State getOutsideState(int x, int y, int z)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |