|
||||||||
| 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.Mapping
|
+--org.abora.gold.spaces.basic.Dsp
|
+--org.abora.gold.spaces.unordered.IdentityDsp
An implementation sharing convenience for Dsp classes which only provide the identity
mapping functionality for their coordinate spaces. This provides everything except the
coordinate space itself (which must be provided by the subclass). Will eventually be
declared NOT_A_TYPE, so don''t use it in type declarations.
Assumes that if a given space uses it as its identity Dsp, then the one cached instance
will be the only identity Dsp for that space. I.e., I do equality comparison as an EQ
object. If this assumpsion isn''t true, please override isEqual and hashForEqual. See
PathDsp.
IdentityDsp is in module "unorder" because typically unordered spaces will only have an
identity Dsp and so want to subclass this class. Non-unordered spaces should also feel
free to use this as appropriate.
| Field Summary |
| 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 | |
IdentityDsp()
|
|
| Method Summary | |
int |
actualHashForEqual()
|
Dsp |
compose(Dsp other)
Return the composition of the two Dsps. |
CoordinateSpace |
coordinateSpace()
the coordinate space of the domain and range of the Dsp |
static void |
initTimeInherited()
|
Mapping |
inverse()
Return the inverse of this transformation. |
Dsp |
inverseCompose(Dsp other)
Return the composition of my inverse with the other. a->inverseCompose(b) ->isEqual (a->inverse()->compose(b)) |
Position |
inverseOf(Position pos)
Since Dsps always represent a unique mapping in either direction, the permission to BLAST in the Mapping constract no longer applies. a->inverseOf(b) ->isEqual (a->inverse()->of(b)) |
XnRegion |
inverseOfAll(XnRegion reg)
Inverse transform a region. |
boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
boolean |
isIdentity()
Says whether this Dsp maps every Position onto itself |
static void |
linkTimeInherited()
|
Dsp |
minus(Dsp other)
Return the difference of the two Dsps. (a->compose(b) ->minus(b))->isEqual (a) |
Position |
of(Position pos)
Since Dsps always represent a unique mapping in either direction, the permission to BLAST in the Mapping constract no longer applies. |
XnRegion |
ofAll(XnRegion reg)
If 'reg' is a simple region, then the result must also be simple |
void |
printOn(java.io.PrintWriter oo)
|
static void |
suppressInitTimeInherited()
|
static void |
suppressLinkTimeInherited()
|
| Methods inherited from class org.abora.gold.spaces.basic.Dsp |
appliedAfter, domain, fetchCombine, fetchDsp, isComplete, preCompose, range, rangeSpace, restrict, restrictRange, simpleMappings, simpleRegionMappings, transformedBy |
| Methods inherited from class org.abora.gold.spaces.basic.Mapping |
combine, domainSpace, export, info, inverseOfInt, make, make, make, make, make, ofInt, simplerMappings, unrestricted |
| 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 |
| Constructor Detail |
public IdentityDsp()
| Method Detail |
public Position inverseOf(Position pos)
Dsp
inverseOf in class Dsppublic XnRegion inverseOfAll(XnRegion reg)
Dsp
inverseOfAll in class Dsppublic Position of(Position pos)
Dsp
of in class Dsppublic XnRegion ofAll(XnRegion reg)
Dsp
ofAll in class Dsppublic Dsp compose(Dsp other)
Dsp
compose in class Dsppublic Mapping inverse()
Dsp
inverse in class Dsppublic Dsp inverseCompose(Dsp other)
Dsp
inverseCompose in class Dsppublic Dsp minus(Dsp other)
Dsp
minus in class Dsppublic void printOn(java.io.PrintWriter oo)
printOn in class Heaperpublic boolean isIdentity()
Dsp
isIdentity in class Dsppublic CoordinateSpace coordinateSpace()
Dsp
coordinateSpace in class Dsppublic int actualHashForEqual()
actualHashForEqual in class Mappingpublic boolean isEqual(Heaper other)
Heaper
isEqual in class Heaperpublic static void initTimeInherited()
public static void linkTimeInherited()
public static void suppressInitTimeInherited()
public static void suppressLinkTimeInherited()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||