gzz.impl
Class NormalDim

gzz.Dim gzz.diff.DeltaDim gzz.impl.AbstractDim gzz.impl.SimpleDim gzz.impl.NormalDim ../../../Gzz_Backend.gen.html#impldims impldims_small
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.


Nested Class Summary
static class NormalDim.NormalDimManager
          A DimManager that creates a SimpleDim for any given Id.
 
Nested classes inherited from class gzz.impl.SimpleDim
SimpleDim.DirMap, SimpleDim.SimpleDimManager
 
Field Summary
static boolean dbg
           
static java.lang.String rcsid
           
 
Fields inherited from class gzz.impl.AbstractDim
id, space
 
Constructor Summary
NormalDim(Space space, java.lang.String dimId, ObsTrigger trig)
           
 
Method Summary
 void applyDelta(DimDelta dset)
          Apply a delta to this dimension.
 DimDelta checkpointDelta()
          Get the changes since previous checkpoint.
 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.
 DimDelta getDeltaFromZero()
          Get the set of changes needed to take a dimension from zero to the current state of this dimension.
 
Methods inherited from class gzz.impl.SimpleDim
getHeadcells, getNegsides, isCircularHead, s
 
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

rcsid

public static final java.lang.String rcsid
See Also:
Constant Field Values

dbg

public static boolean dbg
Constructor Detail

NormalDim

public NormalDim(Space space,
                 java.lang.String dimId,
                 ObsTrigger trig)
Method Detail

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