|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.spaces.basic.CoordinateSpace
A coordinate space represents (among other things) the domain space of a table.
Corresponding to each coordinate space will be a set of objects of the following kinds:
Position -- The elements of the coordinate space.
Mapping -- (Add a description.)
OrderSpec -- The ways of specifying partial orders of this coordinate space''s Positions.
XuRegion -- An XuRegion represents a set of Positions. The domain of a table is an
XuRegion.
When defining a new coordinate space class, one generally defines new corresponing
subclasses of each of the above classes. A kind of any of the above classes knows what
coordinate space it is a part of (the "coordinateSpace()" message will yield an
appropriate kind of CoordinateSpace). CoordinateSpace objects exist mostly just to
represent this commonality. Coordinate spaces are disjoint--it is an error to use any of
the generic protocol of any of the above classes if the objects in question are of two
different coordinate spaces. For example, "dsp->of (pos)" is not an error iff
"dsp->coordinateSpace()->isEqual (pos->coordinateSpace())".
Note that this class is not COPY or even PSEUDO_COPY. All of the instance variables for
CoordinateSpace are basically cached
quantities that require vary little actual state from the derived classes in order to be
constructed. This realization allows a knot
to be untangled when reading these objects from external storage.
| Field Summary | |
protected OrderSpec |
myAscending
|
protected OrderSpec |
myDescending
|
protected XnRegion |
myEmptyRegion
|
protected XnRegion |
myFullRegion
|
protected Dsp |
myIdentityDsp
|
| Fields inherited from class org.abora.gold.xpp.basic.Heaper |
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes |
| Fields inherited from class org.abora.gold.java.AboraHeaper |
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag |
| Constructor Summary | |
CoordinateSpace()
|
|
CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp)
|
|
CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending)
|
|
CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending,
OrderSpec descending)
|
|
| Method Summary | |
int |
actualHashForEqual()
|
OrderSpec |
ascending()
Essential. |
Mapping |
completeMapping(XnRegion range)
Essential. |
OrderSpec |
descending()
The mirror image of the partial order returned by 'CoordinateSpace::ascending'. |
XnRegion |
emptyRegion()
Essential. |
OrderSpec |
fetchAscending()
The natural full-ordering of the coordinate space. |
OrderSpec |
fetchDescending()
The mirror image of the partial order returned by 'CoordinateSpace::fetchAscending'. |
void |
finishCreate(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending,
OrderSpec descending)
|
XnRegion |
fullRegion()
A full region in this coordinate space |
OrderSpec |
getAscending()
Essential. |
OrderSpec |
getDescending()
The mirror image of the partial order returned by 'CoordinateSpace::getAscending'. |
Dsp |
identityDsp()
A Dsp which maps all positions in the coordinate space onto themselves |
Mapping |
identityMapping()
Essential. |
Mapping |
importMapping(PrimArray data,
CoordinateSpace rangeSpace)
|
OrderSpec |
importOrderSpec(PrimArray data)
|
XnRegion |
importRegion(PrimArray data)
|
static void |
info()
{OrderSpec CLIENT} ascending {Mapping CLIENT} completeMapping: range {XuRegion} {OrderSpec CLIENT} descending {XuRegion CLIENT} emptyRegion {XuRegion CLIENT} fullRegion {Mapping CLIENT} identityMapping |
boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
Mapping |
mapping(PrimArray data)
|
Mapping |
mapping(PrimArray data,
CoordinateSpace rangeSpace)
|
OrderSpec |
orderSpec(PrimArray data)
|
XnRegion |
region(PrimArray data)
|
boolean |
verify(Heaper thing)
tell whether this is a valid Position/XuRegion/Dsp/OrderSpec for this space |
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected XnRegion myEmptyRegion
protected XnRegion myFullRegion
protected Dsp myIdentityDsp
protected OrderSpec myAscending
protected OrderSpec myDescending
| Constructor Detail |
public CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp)
public CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending)
public CoordinateSpace()
public CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending,
OrderSpec descending)
| Method Detail |
public int actualHashForEqual()
actualHashForEqual in class Heaperpublic OrderSpec ascending()
public Mapping completeMapping(XnRegion range)
public OrderSpec descending()
public XnRegion emptyRegion()
public OrderSpec fetchAscending()
public OrderSpec fetchDescending()
public XnRegion fullRegion()
public OrderSpec getAscending()
public OrderSpec getDescending()
public Dsp identityDsp()
public Mapping identityMapping()
public boolean isEqual(Heaper other)
Heaper
isEqual in class Heaperpublic boolean verify(Heaper thing)
public void finishCreate(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending,
OrderSpec descending)
public Mapping importMapping(PrimArray data,
CoordinateSpace rangeSpace)
public OrderSpec importOrderSpec(PrimArray data)
public XnRegion importRegion(PrimArray data)
public Mapping mapping(PrimArray data)
public Mapping mapping(PrimArray data,
CoordinateSpace rangeSpace)
public OrderSpec orderSpec(PrimArray data)
public XnRegion region(PrimArray data)
public static void info()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||