|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.impl.AbstractDim | +--gzz.impl.SimpleDim
A simple, modifiable ZZ dimension.
Nested Class Summary | |
protected class |
SimpleDim.DirMap
A map in one direction. |
static class |
SimpleDim.SimpleDimManager
A DimManager that creates a SimpleDim for any given Id. |
Field Summary | |
static boolean |
dbg
|
static java.lang.String |
rcsid
|
Fields inherited from class gzz.impl.AbstractDim |
id, space |
Constructor Summary | |
SimpleDim(Space space,
ObsTrigger trigger)
Deprecated. Must provide id |
|
SimpleDim(Space space,
java.lang.String id,
ObsTrigger trigger)
|
Method Summary | |
void |
connect(Cell c,
Cell d)
Connect the two cells in this dimension, in order. |
void |
disconnect(Cell c,
int dir)
Disconnect the cell in the given direction. |
java.util.Set |
getHeadcells()
Get the set of all non-trivial headcells on this dimension. |
java.util.Set |
getNegsides()
Get the set of cells that have posward connections. |
boolean |
isCircularHead(Cell c,
Obs o)
Whether the given cell is a headcell of a circular rank on this dimension. |
Cell |
s(Cell c,
int steps,
Obs o)
Get another cell steps steps on the dimension from c. |
Methods inherited from class gzz.impl.AbstractDim |
canonicalizeCells, connect, excise, exciseRange, getId, getSpace, h, h, h, hop, insert, insertRank, iterator, s, s |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String rcsid
public static final boolean dbg
Constructor Detail |
public SimpleDim(Space space, java.lang.String id, ObsTrigger trigger)
public SimpleDim(Space space, ObsTrigger trigger)
Method Detail |
public Cell s(Cell c, int steps, Obs o)
Dim
s
in interface Dim
s
in class AbstractDim
c
- The cellsteps
- Number of steps, can be negative.public void connect(Cell c, Cell d) throws gzz.errors.ZZAlreadyConnectedException
Dim
connect
in interface Dim
connect
in class AbstractDim
gzz.errors.ZZAlreadyConnectedException
- If one of the cells is
already connected.public void disconnect(Cell c, int dir)
Dim
disconnect
in interface Dim
disconnect
in class AbstractDim
public boolean isCircularHead(Cell c, Obs o)
Dim
isCircularHead
in interface Dim
isCircularHead
in class AbstractDim
public java.util.Set getHeadcells()
Dim
public java.util.Set getNegsides()
Dim
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |