gzz.impl
Class AbstractSpace

gzz.Space gzz.impl.AbstractSpace gzz.CellTexter gzz.VStreamCellTexter gzz.impl.SimpleVStreamTexter gzz.impl.ModularSpace gzz.ObsTrigger gzz.impl.SimpleObsTrigger gzz.IdentityManager gzz.impl.DummyIdentityManager gzz.CellManager gzz.impl.AbstractCellManager gzz.impl.PlainCellManager gzz.DimManager gzz.impl.AbstractDimManager SimpleDim.Manager gzz.diff.DeltaSpace gzz.impl.ModularDeltaSpace gzz.diff.DeltaDimManager gzz.diff.DeltaCellTexter gzz.impl.AbstractDeltaDimManager gzz.impl.SimpleDeltaVStreamTexter ../../../Gzz_Backend.gen.html#modularspace modularspace_small
java.lang.Object
  |
  +--gzz.impl.AbstractSpace
All Implemented Interfaces:
SliceSpace, Space
Direct Known Subclasses:
ModularSpace

public abstract class AbstractSpace
extends java.lang.Object
implements SliceSpace

An abstract implementation of Space, which provides the methods that need to be implemented in a certain way to conform to the Space interface. No assumptions about anything are made.


Field Summary
protected  ModularCellTexter cellTexter
           
protected  JavaObjector javaObjector
           
protected  ObsTrigger obsTrigger
           
static java.lang.String rcsid
           
protected  Slicer slicer
           
 
Constructor Summary
AbstractSpace(ModularCellTexter cellTexter, Slicer slicer, ObsTrigger obsTrigger)
           
 
Method Summary
 CellTexter getCellTexter()
           
abstract  Dim getCloneDim()
          Get the clone dimension of this space.
 Dim getDim(java.lang.String s)
          Get a dimension by cell id.
 Cell getIdentity(Cell c)
          Get the canonical cell representing a given cell's global identity.
 Cell getIdentity(java.lang.String s)
          Get the cell representing a given global identity.
 JavaObjector getJavaObjector()
           
 Mediaserver getMediaserver()
          Get the instance of mediaserver associated with this space.
 Cell getMSBlockCell(java.lang.String msid, Cell cell)
          Get the cell representing the given mediaserver block in the same slice as cell.
 ObsTrigger getObsTrigger()
           
 Slicer getSlicer()
           
 Cell N()
          Create a new cell connected to the home slice.
 Cell N(Cell c, Cell dim, int dir, Obs o)
           
 Cell zzclone(Cell cellToClone, Cell cloneInSlice)
          Clone a cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gzz.Space
delete, exists, getCell, getDim, getDims, getHomeCell, N, N
 

Field Detail

rcsid

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

cellTexter

protected ModularCellTexter cellTexter

javaObjector

protected JavaObjector javaObjector

obsTrigger

protected ObsTrigger obsTrigger

slicer

protected Slicer slicer
Constructor Detail

AbstractSpace

public AbstractSpace(ModularCellTexter cellTexter,
                     Slicer slicer,
                     ObsTrigger obsTrigger)
Method Detail

getCellTexter

public CellTexter getCellTexter()
Specified by:
getCellTexter in interface Space

getJavaObjector

public JavaObjector getJavaObjector()
Specified by:
getJavaObjector in interface Space

getObsTrigger

public ObsTrigger getObsTrigger()
Specified by:
getObsTrigger in interface Space

getSlicer

public Slicer getSlicer()
Specified by:
getSlicer in interface SliceSpace

getDim

public Dim getDim(java.lang.String s)
Description copied from interface: Space
Get a dimension by cell id.

Specified by:
getDim in interface Space

getCloneDim

public abstract Dim getCloneDim()
Description copied from interface: Space
Get the clone dimension of this space.

Specified by:
getCloneDim in interface Space

N

public final Cell N()
Description copied from interface: Space
Create a new cell connected to the home slice. Defined to be equivalent to N(getHomeCell()).

Specified by:
N in interface Space

getIdentity

public Cell getIdentity(java.lang.String s)
Description copied from interface: Space
Get the cell representing a given global identity.

Specified by:
getIdentity in interface Space

getIdentity

public Cell getIdentity(Cell c)
Description copied from interface: Space
Get the canonical cell representing a given cell's global identity.

Specified by:
getIdentity in interface Space

N

public final Cell N(Cell c,
                    Cell dim,
                    int dir,
                    Obs o)
Specified by:
N in interface Space

getMediaserver

public Mediaserver getMediaserver()
Description copied from interface: Space
Get the instance of mediaserver associated with this space. May return null.

Specified by:
getMediaserver in interface Space

getMSBlockCell

public Cell getMSBlockCell(java.lang.String msid,
                           Cell cell)
Description copied from interface: Space
Get the cell representing the given mediaserver block in the same slice as cell. May return null.

Specified by:
getMSBlockCell in interface Space

zzclone

public Cell zzclone(Cell cellToClone,
                    Cell cloneInSlice)
Description copied from interface: Space
Clone a cell.

Specified by:
zzclone in interface Space
Parameters:
cellToClone - The cell to clone
cloneInSlice - A cell of the slice the clone should be in. May be null.