org.abora.white.spaces.basic
Class BasicSpace
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.spaces.basic.CoordinateSpace
|
+--org.abora.white.spaces.basic.BasicSpace
- public class BasicSpace
- extends CoordinateSpace
BasicSpace versus CoordinateSpace is not a type distinction in that there is no difference
in contract with the client. BasicSpace exists as a convenience to the definer of new
CoordinateSpaces. A new subclass of CoordinateSpace should be a subclass of BasicSpace
iff there is only one coordinateSpace that corresponds to the new class. I.e., that the
instances are not parameterized to yield different coordinate spaces. BasicSpace provides
some conveniences (especially in Smalltalk) for defining a single canonical instance at
dynamic initialization time, and always using it.
As this class is irrelevent to CoordinateSpace clients, but is useful to those defining
other kinds of coordinate spaces, it is an exellent example of something that would be
classified as a "protected" class--something to be persued if we try to make modules more
like classes.
|
Method Summary |
int |
actualHashForEqual()
is equal to any basic space on the same category of positions |
boolean |
isEqual(Heaper anObject)
is equal to any basic space on the same category of positions |
| Methods inherited from class org.abora.white.spaces.basic.CoordinateSpace |
ascending, completeMapping, descending, emptyRegion, fetchAscending, fetchDescending, finishCreate, fullRegion, getAscending, getDescending, identityDsp, identityMapping, verify |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicSpace
protected BasicSpace()
BasicSpace
public BasicSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending,
OrderSpec descending)
BasicSpace
public BasicSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp)
BasicSpace
public BasicSpace(XnRegion emptyRegion,
XnRegion fullRegion,
Dsp identityDsp,
OrderSpec ascending)
actualHashForEqual
public int actualHashForEqual()
- is equal to any basic space on the same category of positions
- Overrides:
actualHashForEqual in class CoordinateSpace
isEqual
public boolean isEqual(Heaper anObject)
- is equal to any basic space on the same category of positions
- Specified by:
isEqual in class CoordinateSpace
Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.