gzz.slices
Interface Slicer

All Known Implementing Classes:
SingleSlicer

public interface Slicer

A component of a space that manages slices. This interface shall provide methods for getting information about the current slices, for swapping slices in and out, and for getting the current versions of slices.

Assumes VStreamCellTexter.

XXX Unfinished; stuff for swapping slices in and out is missing, so far. However, as we're single-sliced so far, it hardly matters-- this is only for saving slice 0, so far. (The interface, though, is the one we'll need later to save multiple slices-- if I see things correctly. --Benja)

XXX cell manager interaction? (current model is, cells are in slices...)


Method Summary
 SliceVersion export(java.lang.String sliceId)
          Create a SliceVersion for a given slice.
 java.util.Map exportAll()
          Create SliceVersions for all slices.
 java.lang.String getSlice0()
          Get the String id of the slice 0 (s.0) of this space.
 java.util.Set getSlices()
          Get the String ids of the slices that are currently swapped in.
 void setSpace(Space s)
           
 

Method Detail

setSpace

public void setSpace(Space s)

getSlice0

public java.lang.String getSlice0()
Get the String id of the slice 0 (s.0) of this space. Slice 0 is the "main" slice.


getSlices

public java.util.Set getSlices()
Get the String ids of the slices that are currently swapped in. Returns a Set of String ids.


export

public SliceVersion export(java.lang.String sliceId)
Create a SliceVersion for a given slice. Returns the current version of a slice, as a serializable object.

NOTE: The SliceVersion returned may contain unsaved spans; the SliceVersion will not be serializable if not all spans in it are saved first.

See Also:
gzz.SliceVersion

exportAll

public java.util.Map exportAll()
Create SliceVersions for all slices. Returns a Map from slice String ids to serializable SliceVersion representation of the respective slice.

NOTE: The SliceVersion returned may contain unsaved spans; the SliceVersion will not be serializable if not all spans in it are saved first.

See Also:
gzz.SliceVersion