|
||||||||
| 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.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.
| Constructor Summary | |
protected |
Mapping()
|
protected |
Mapping(Rcvr rcvr)
|
| Method Summary | |
int |
actualHashForEqual()
Defined by subclasses to produce the value returned by hashForEqual. |
abstract 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. |
abstract CoordinateSpace |
coordinateSpace()
the coordinate space of the domain of the Mapping |
abstract XnRegion |
domain()
Essential. |
CoordinateSpace |
domainSpace()
The coordinate space of the domain of the Mapping |
abstract Mapping |
fetchCombine(Mapping mapping)
if I know how to combine the two into a single mapping, then I do so |
abstract 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 |
abstract Mapping |
inverse()
Essential. |
abstract Position |
inverseOf(Position after)
Inverse transform a position. |
abstract XnRegion |
inverseOfAll(XnRegion after)
Inverse transform of a region. |
IntegerValue |
inverseOfInt(IntegerValue pos)
Unboxed version of 'this->inverseOf (xuInteger(pos))'. |
abstract boolean |
isComplete()
Essential. |
abstract boolean |
isIdentity()
Essential. |
static Mapping |
make(CoordinateSpace cs,
CoordinateSpace rs)
Make an empty mapping from cs to rs. |
static Mapping |
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 Mapping |
make(CoordinateSpace cs,
XnRegion values)
Make a constant mapping from all positions in cs to all positions in values. |
abstract Position |
of(Position before)
Transform a position. |
abstract XnRegion |
ofAll(XnRegion before)
Essential. |
IntegerValue |
ofInt(IntegerValue pos)
Unboxed version of 'this->of (xuInteger(pos))'. |
abstract Mapping |
preCompose(Dsp dsp)
There is no sensible explanation for what this message does on Mappings which aren't Dsps. |
abstract XnRegion |
range()
Essential. |
abstract CoordinateSpace |
rangeSpace()
The coordinate space of the range of the transformation |
abstract Mapping |
restrict(XnRegion region)
Essential. |
abstract Mapping |
restrictRange(XnRegion region)
Restrict the range. |
abstract ImmuSet |
simpleMappings()
return a set of simple mappings that would combine to this one |
abstract ImmuSet |
simpleRegionMappings()
return a set of mappings with simple regions as their domains that would combine to this one. |
Stepper |
simplerMappings()
Essential. |
abstract 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.white.xpp.basic.Heaper |
destroy, destruct, equals, hashForEqual, isEqual, printContentsOn, printOn, sendSelfTo, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected Mapping()
protected Mapping(Rcvr rcvr)
| Method Detail |
public abstract CoordinateSpace coordinateSpace()
public abstract XnRegion domain()
public CoordinateSpace domainSpace()
public abstract Dsp fetchDsp()
public abstract boolean isComplete()
public abstract boolean isIdentity()
public abstract XnRegion range()
public abstract CoordinateSpace rangeSpace()
public abstract ImmuSet simpleMappings()
public abstract ImmuSet simpleRegionMappings()
public Stepper simplerMappings()
public Mapping unrestricted()
public abstract Position inverseOf(Position after)
public abstract XnRegion inverseOfAll(XnRegion after)
public IntegerValue inverseOfInt(IntegerValue pos)
public abstract Position of(Position before)
public abstract XnRegion ofAll(XnRegion before)
public IntegerValue ofInt(IntegerValue pos)
public abstract Mapping appliedAfter(Dsp dsp)
public Mapping combine(Mapping other)
public abstract Mapping inverse()
public abstract Mapping preCompose(Dsp dsp)
public abstract Mapping restrict(XnRegion region)
public abstract Mapping restrictRange(XnRegion region)
public abstract Mapping transformedBy(Dsp dsp)
public abstract Mapping fetchCombine(Mapping mapping)
public int actualHashForEqual()
Heaper
actualHashForEqual in class Heaper
public static Mapping make(CoordinateSpace cs,
CoordinateSpace rs)
public static Mapping make(CoordinateSpace cs,
XnRegion values)
public static Mapping make(CoordinateSpace cs,
CoordinateSpace rs,
ImmuSet mappings)
public static void info()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||