|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.impl.AbstractSpace | +--gzz.impl.ModularSpace
An implementation of space that delegates calls to a CellManager and a DimManager.
Field Summary | |
protected CellManager |
cellManager
|
protected DimManager |
dimManager
|
protected IdentityManager |
identityManager
|
static java.lang.String |
rcsid
|
Fields inherited from class gzz.impl.AbstractSpace |
cellTexter, javaObjector, obsTrigger, slicer |
Constructor Summary | |
ModularSpace(ModularCellTexter cellTexter,
CellManager cellManager,
DimManager dimManager,
IdentityManager identityManager,
Slicer slicer,
ObsTrigger obsTrigger)
|
|
ModularSpace(SliceVersion version,
ModularCellTexter cellTexter,
CellManager cellManager,
DimManager dimManager,
IdentityManager identityManager,
Slicer slicer,
ObsTrigger obsTrigger)
Create a new ModularSpace and initialize it from a SliceVersion. |
Method Summary | |
void |
delete(Cell c)
Delete a given cell. |
boolean |
exists(java.lang.String id)
Whether a cell with the given ID exists in this space. |
Cell |
getCell(java.lang.String id)
Get a cell by its ID. |
Dim |
getCloneDim()
Get the clone dimension of this space. |
Dim |
getDim(Cell name)
Get a dimension by cell. |
java.util.Set |
getDims()
Get the set of all dimensions in this space. |
Cell |
getHomeCell()
Get the home cell of this space. |
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. |
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. |
Cell |
N(Cell inSlice)
Create a new cell in the same slice as the given cell. |
Cell |
N(Cell inSlice,
Dim dim,
int dir,
Obs o)
Create a new cell in the same slice as the given cell, and connect it in the direction given. |
Methods inherited from class gzz.impl.AbstractSpace |
getCellTexter, getDim, getJavaObjector, getObsTrigger, getSlicer, N, N, zzclone |
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
protected CellManager cellManager
protected DimManager dimManager
protected IdentityManager identityManager
Constructor Detail |
public ModularSpace(ModularCellTexter cellTexter, CellManager cellManager, DimManager dimManager, IdentityManager identityManager, Slicer slicer, ObsTrigger obsTrigger)
public ModularSpace(SliceVersion version, ModularCellTexter cellTexter, CellManager cellManager, DimManager dimManager, IdentityManager identityManager, Slicer slicer, ObsTrigger obsTrigger)
The correct thing is to load slice versions by calling slicer.swapIn(sliceId, version). The point is that slice.0 should be always there, i.e. not only after swapIn() is called... maybe the ModularSpace constructor should simply call swapIn(getSlice0())...
Method Detail |
public Cell getHomeCell()
Space
public Cell getCell(java.lang.String id)
Space
public Dim getDim(Cell name)
Space
public java.util.Set getDims()
Space
public Cell getIdentity(java.lang.String s)
Space
getIdentity
in interface Space
getIdentity
in class AbstractSpace
public Cell getIdentity(Cell c)
Space
getIdentity
in interface Space
getIdentity
in class AbstractSpace
public Dim getCloneDim()
Space
getCloneDim
in interface Space
getCloneDim
in class AbstractSpace
public Cell N(Cell inSlice)
Space
public Cell N(Cell inSlice, Dim dim, int dir, Obs o)
Space
o
- The observer to call when s(inSlice, dim, dir) would not
return the cell created by this call any more.public void delete(Cell c)
Space
public boolean exists(java.lang.String id)
Space
public Mediaserver getMediaserver()
Space
getMediaserver
in interface Space
getMediaserver
in class AbstractSpace
public Cell getMSBlockCell(java.lang.String msid, Cell cell)
Space
getMSBlockCell
in interface Space
getMSBlockCell
in class AbstractSpace
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |