gzz.impl
Class NormalDim
java.lang.Object
|
+--gzz.impl.AbstractDim
|
+--gzz.impl.SimpleDim
|
+--gzz.impl.NormalDim
- All Implemented Interfaces:
- DeltaDim, Dim
- public class NormalDim
- extends SimpleDim
- implements DeltaDim
An extension of SimpleDim that supports Deltas; the standard
dimension used in Gzz.
Field Summary |
static boolean |
dbg
|
static java.lang.String |
rcsid
|
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 |
rcsid
public static final java.lang.String rcsid
- See Also:
- Constant Field Values
dbg
public static boolean dbg
NormalDim
public NormalDim(Space space,
java.lang.String dimId,
ObsTrigger trig)
connect
public void connect(Cell c,
Cell d)
throws gzz.errors.ZZAlreadyConnectedException
- Description copied from interface:
Dim
- Connect the two cells in this dimension, in order.
This method is not allowed to break existing connections.
- Specified by:
connect
in interface Dim
- Overrides:
connect
in class SimpleDim
- Throws:
gzz.errors.ZZAlreadyConnectedException
- If one of the cells is
already connected.
disconnect
public void disconnect(Cell c,
int dir)
- Description copied from interface:
Dim
- Disconnect the cell in the given direction.
It is not an error to disconnect something that is not connected.
- Specified by:
disconnect
in interface Dim
- Overrides:
disconnect
in class SimpleDim
applyDelta
public void applyDelta(DimDelta dset)
- Description copied from interface:
DeltaDim
- Apply a delta to this dimension.
Also triggers observers.
However, a change applied by applyDelta is NOT visible in the next
getDelta().
- Specified by:
applyDelta
in interface DeltaDim
checkpointDelta
public DimDelta checkpointDelta()
- Get the changes since previous checkpoint.
- Specified by:
checkpointDelta
in interface DeltaDim
getDeltaFromZero
public DimDelta getDeltaFromZero()
- Description copied from interface:
DeltaDim
- Get the set of changes needed to take a dimension from zero
to the current state of this dimension.
- Specified by:
getDeltaFromZero
in interface DeltaDim