|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.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
|
| Constructor Summary | |
protected |
CoordinateSpace()
|
protected |
CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp)
|
protected |
CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending)
|
protected |
CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending,
OrderSpec descending)
|
| Method Summary | |
int |
actualHashForEqual()
Defined by subclasses to produce the value returned by hashForEqual. |
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. |
abstract boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
boolean |
verify(Heaper thing)
tell whether this is a valid Position/XuRegion/Dsp/OrderSpec for this space |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, destruct, equals, hashForEqual, printContentsOn, printOn, sendSelfTo, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected XnRegion myEmptyRegion
protected XnRegion myFullRegion
protected Dsp myIdentityDsp
protected OrderSpec myAscending
protected OrderSpec myDescending
| Constructor Detail |
protected CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp)
protected CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending)
protected CoordinateSpace()
protected CoordinateSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending,
OrderSpec descending)
| Method Detail |
public int actualHashForEqual()
Heaper
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 abstract 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)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||