|
||||||||
| 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
A mapping is a general mapping from one coordinate space to another, with few of the
guarantees provided by Dsps. In particular, the source and destination coordinate spaces
can be different, and the mapping doesn''t have to be everywhere defined (but it has to
say where it is defined via "domain" and "range" messages). A mapping doesn''t have to be
unique--the same domain position may map to multiple range positions and vice versa. A
mapping of a XuRegion must yield another XuRegion, but a mapping of a simple region
doesn''t have to yield a simple region.
A useful and valid way to think of a Mapping is as a (possibly infinite) set of pairs (a
mathematical set, not a ScruSet). The domain region consists of the first elements of
each pair, and the range region consists of the second elements.
A mapping is most useful as a representation of a version comparison of two different
organizations of common elements. The mapping would tell how positions in one
organization correspond to positions in the other.
| 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 | |
Mapping()
|
|
| Method Summary | |
int |
actualHashForEqual()
|
Mapping |
appliedAfter(Dsp dsp)
Defined by the equivalence: M->transformedBy(D)->of(R) isEqual (M->of(D->of(R))) for all regions R in the domainSpace of M. |
Mapping |
combine(Mapping other)
Essential. |
CoordinateSpace |
coordinateSpace()
the coordinate space of the domain of the Mapping |
XnRegion |
domain()
Essential. |
CoordinateSpace |
domainSpace()
The coordinate space of the domain of the Mapping |
PrimArray |
export()
|
Mapping |
fetchCombine(Mapping mapping)
if I know how to combine the two into a single mapping, then I do so |
Dsp |
fetchDsp()
if this is a Dsp or a Dsp retricted to some domain, return the underlying Dsp. |
static void |
info()
{Mapping CLIENT} combine: other {Mapping} {XuRegion CLIENT} domain {CoordinateSpace CLIENT} domainSpace {Mapping CLIENT} inverse {BooleanVar CLIENT} isComplete {BooleanVar CLIENT} isIdentity {Position CLIENT} of: before {Position} {XuRegion CLIENT} ofAll: before {XuRegion} {XuRegion CLIENT} range {CoordinateSpace CLIENT} rangeSpace {Mapping CLIENT} restrict: region {XuRegion} {Stepper CLIENT of: Mapping} simplerMappings {Mapping CLIENT} unrestricted |
Mapping |
inverse()
Essential. |
Position |
inverseOf(Position after)
Inverse transform a position. |
XnRegion |
inverseOfAll(XnRegion after)
Inverse transform of a region. 'a->isEqual (this->of (b))' iff 'b->isEqual (this->inverseOf (a))'. |
IntegerVar |
inverseOfInt(IntegerVar pos)
Unboxed version of 'this->inverseOf (xuInteger(pos))'. |
boolean |
isComplete()
Essential. |
boolean |
isIdentity()
Essential. |
static Heaper |
make(CoordinateSpace cs,
CoordinateSpace rs)
Make an empty mapping from cs to rs. |
static Heaper |
make(CoordinateSpace cs,
CoordinateSpace rs,
ImmuSet mappings)
The combine of all the mappings in 'mappings' All domains must be in cs and all ranges in rs. |
static Heaper |
make(CoordinateSpace cs,
XnRegion values)
Make a constant mapping from all positions in cs to all positions in values. |
static Heaper |
make(java.lang.Object a,
java.lang.Object b)
|
static Heaper |
make(XnRegion region,
Mapping mapping)
|
Position |
of(Position before)
Transform a position. |
XnRegion |
ofAll(XnRegion before)
Essential. |
IntegerVar |
ofInt(IntegerVar pos)
Unboxed version of 'this->of (xuInteger(pos))'. |
Mapping |
preCompose(Dsp dsp)
There is no sensible explanation for what this message does on Mappings which aren't Dsps. |
XnRegion |
range()
Essential. |
CoordinateSpace |
rangeSpace()
The coordinate space of the range of the transformation |
Mapping |
restrict(XnRegion region)
Essential. |
Mapping |
restrictRange(XnRegion region)
Restrict the range. |
ImmuSet |
simpleMappings()
return a set of simple mappings that would combine to this one |
ImmuSet |
simpleRegionMappings()
return a set of mappings with simple regions as their domains that would combine to this one. |
Stepper |
simplerMappings()
Essential. |
Mapping |
transformedBy(Dsp dsp)
Defined by the equivalence: M->transformedBy(D)->of(R) isEqual (D->of(M->of(R))) for all regions R in the domainSpace of M. |
Mapping |
unrestricted()
Essential. |
| 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 Mapping()
| Method Detail |
public CoordinateSpace coordinateSpace()
public XnRegion domain()
public CoordinateSpace domainSpace()
public Dsp fetchDsp()
public boolean isComplete()
public boolean isIdentity()
public XnRegion range()
public CoordinateSpace rangeSpace()
public ImmuSet simpleMappings()
public ImmuSet simpleRegionMappings()
public Stepper simplerMappings()
public Mapping unrestricted()
public Position inverseOf(Position after)
public XnRegion inverseOfAll(XnRegion after)
public IntegerVar inverseOfInt(IntegerVar pos)
public Position of(Position before)
public XnRegion ofAll(XnRegion before)
public IntegerVar ofInt(IntegerVar pos)
public Mapping appliedAfter(Dsp dsp)
public Mapping combine(Mapping other)
public Mapping inverse()
public Mapping preCompose(Dsp dsp)
public Mapping restrict(XnRegion region)
public Mapping restrictRange(XnRegion region)
public Mapping transformedBy(Dsp dsp)
public Mapping fetchCombine(Mapping mapping)
public PrimArray export()
public int actualHashForEqual()
actualHashForEqual in class Heaper
public static Heaper make(CoordinateSpace cs,
CoordinateSpace rs)
public static Heaper make(CoordinateSpace cs,
XnRegion values)
public static Heaper make(CoordinateSpace cs,
CoordinateSpace rs,
ImmuSet mappings)
public static Heaper make(java.lang.Object a,
java.lang.Object b)
public static Heaper make(XnRegion region,
Mapping mapping)
public static void info()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||