|
||||||||
| 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.OrderSpec
An OrderSpec for a given coordinate space
represents a partial ordering of all the Positions of that coordinate space. The
fundamental ordering relationship is "follows". The response of Positions to isGE defines
the natural, "ascending" partial order among the positions. Every coordinate space will
have at least this ascending and the corresponding descending OrderSpecs. OrderSpecs are
useful to specify in what order a stepper produced for stepping over positions should do
so.
[documentation note: we need to hide the documentation about partial orders, but still warn that the orders may become partial].
| Constructor Summary | |
protected |
OrderSpec()
|
protected |
OrderSpec(Rcvr receiver)
|
| Method Summary | |
int |
actualHashForEqual()
Defined by subclasses to produce the value returned by hashForEqual. |
Arrangement |
arrange(XnRegion region)
Return an Arrangement of the positions in region according to the ordering of the receiver. |
OrderEnum |
compare(Position x,
Position y)
Say what the relative ordering relationship is between x and y |
abstract CoordinateSpace |
coordinateSpace()
Essential. |
abstract boolean |
follows(Position x,
Position y)
Essential. |
boolean |
followsInt(IntegerValue x,
IntegerValue y)
See discussion in XuInteger class comment about boxed vs unboxed integers |
abstract boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
boolean |
isFullOrder()
|
abstract boolean |
isFullOrder(XnRegion keys)
Essential. |
abstract boolean |
preceeds(XnRegion before,
XnRegion after)
Return true if some position in before is less than or equal to all positions in after. |
OrderSpec |
reversed()
Returns an OrderSpec representing the mirror image of my ordering. |
void |
sendSelfTo(Xmtr xmtr)
|
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, destruct, equals, hashForEqual, printContentsOn, printOn, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected OrderSpec()
protected OrderSpec(Rcvr receiver)
| Method Detail |
public int actualHashForEqual()
Heaper
actualHashForEqual in class Heaper
public OrderEnum compare(Position x,
Position y)
public abstract boolean follows(Position x,
Position y)
public boolean followsInt(IntegerValue x,
IntegerValue y)
public abstract boolean isEqual(Heaper other)
Heaper
isEqual in class Heaperpublic abstract boolean isFullOrder(XnRegion keys)
public boolean isFullOrder()
public abstract boolean preceeds(XnRegion before,
XnRegion after)
public Arrangement arrange(XnRegion region)
public abstract CoordinateSpace coordinateSpace()
public OrderSpec reversed()
public void sendSelfTo(Xmtr xmtr)
sendSelfTo in class Heaper
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||