org.abora.white.cross
Class GenericCrossDsp

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.spaces.basic.Mapping
              |
              +--org.abora.white.spaces.basic.Dsp
                    |
                    +--org.abora.white.cross.CrossMapping
                          |
                          +--org.abora.white.cross.GenericCrossDsp

public class GenericCrossDsp
extends CrossMapping

Was NOT.A.TYPE but that obstructed compilation.


Field Summary
protected  CrossSpace mySpace
           
protected  PtrArray mySubDsps
           
 
Constructor Summary
GenericCrossDsp(CrossSpace space, PtrArray subDsps)
           
GenericCrossDsp(Rcvr receiver)
           
 
Method Summary
 int actualHashForEqual()
          Defined by subclasses to produce the value returned by hashForEqual.
 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 GenericCrossDsp identity(GenericCrossSpace space, PtrArray subSpaces)
          Only used during construction; must pass the array in explicitly since the space isnt initialized yet
 Mapping inverse()
          Return the inverse of this transformation.
 Dsp inverseCompose(Dsp other)
          Return the composition of my inverse with the other.
 Position inverseOf(Position position)
          Since Dsps always represent a unique mapping in either direction, the permission to BLAST in the Mapping constract no longer applies.
 XnRegion inverseOfAll(XnRegion region)
          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
 Dsp minus(Dsp other)
          Return the difference of the two Dsps.
 Position of(Position position)
          Since Dsps always represent a unique mapping in either direction, the permission to BLAST in the Mapping constract no longer applies.
 XnRegion ofAll(XnRegion region)
          If 'reg' is a simple region, then the result must also be simple
 PtrArray secretSubDsps()
          The actual array of sub Dsps.
 void sendSelfTo(Xmtr xmtr)
           
 Dsp subMapping(int index)
          The Dsp applied to Positions in the given subspace.
 PtrArray subMappings()
          The Mappings applied to Positions in each of the subspaces.
 
Methods inherited from class org.abora.white.cross.CrossMapping
info, make, make
 
Methods inherited from class org.abora.white.spaces.basic.Dsp
appliedAfter, domain, fetchCombine, fetchDsp, isComplete, preCompose, range, rangeSpace, restrict, restrictRange, simpleMappings, simpleRegionMappings, transformedBy
 
Methods inherited from class org.abora.white.spaces.basic.Mapping
combine, domainSpace, inverseOfInt, make, make, make, ofInt, simplerMappings, unrestricted
 
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
 

Field Detail

mySpace

protected CrossSpace mySpace

mySubDsps

protected PtrArray mySubDsps
Constructor Detail

GenericCrossDsp

public GenericCrossDsp(CrossSpace space,
                       PtrArray subDsps)

GenericCrossDsp

public GenericCrossDsp(Rcvr receiver)
Method Detail

coordinateSpace

public CoordinateSpace coordinateSpace()
Description copied from class: Dsp
the coordinate space of the domain and range of the Dsp

Specified by:
coordinateSpace in class CrossMapping

isIdentity

public boolean isIdentity()
Description copied from class: Dsp
Says whether this Dsp maps every Position onto itself

Specified by:
isIdentity in class CrossMapping

subMapping

public Dsp subMapping(int index)
Description copied from class: CrossMapping
The Dsp applied to Positions in the given subspace.

Specified by:
subMapping in class CrossMapping

subMappings

public PtrArray subMappings()
Description copied from class: CrossMapping
The Mappings applied to Positions in each of the subspaces. Each of these is already simple enough that it is either the identityMapping or a visible subclass like IntegerMapping.

Specified by:
subMappings in class CrossMapping

inverseOf

public Position inverseOf(Position position)
Description copied from class: Dsp
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))

Overrides:
inverseOf in class Dsp

inverseOfAll

public XnRegion inverseOfAll(XnRegion region)
Description copied from class: Dsp
Inverse transform a region. A simple region must yield a simple region. a->inverseOfAll(b) ->isEqual (a->inverseAll()->of(b))

Overrides:
inverseOfAll in class Dsp

of

public Position of(Position position)
Description copied from class: Dsp
Since Dsps always represent a unique mapping in either direction, the permission to BLAST in the Mapping constract no longer applies.

Overrides:
of in class Dsp

ofAll

public XnRegion ofAll(XnRegion region)
Description copied from class: Dsp
If 'reg' is a simple region, then the result must also be simple

Specified by:
ofAll in class CrossMapping

compose

public Dsp compose(Dsp other)
Description copied from class: Dsp
Return the composition of the two Dsps. Two Dsps of the same space are always composable. (a->compose(b) ->minus(b))->isEqual (a) (a->compose(b) ->of(pos))->isEqual (a->of (b->of (pos))

Specified by:
compose in class CrossMapping

inverse

public Mapping inverse()
Description copied from class: Dsp
Return the inverse of this transformation. Considering the Dsp as a set of pairs (see class comment), return the Dsp which has the mirror image of all my pairs.

Specified by:
inverse in class CrossMapping

inverseCompose

public Dsp inverseCompose(Dsp other)
Description copied from class: Dsp
Return the composition of my inverse with the other. a->inverseCompose(b) ->isEqual (a->inverse()->compose(b))

Overrides:
inverseCompose in class Dsp

minus

public Dsp minus(Dsp other)
Description copied from class: Dsp
Return the difference of the two Dsps. (a->compose(b) ->minus(b))->isEqual (a)

Specified by:
minus in class CrossMapping

secretSubDsps

public PtrArray secretSubDsps()
The actual array of sub Dsps. DO NOT MODIFY


actualHashForEqual

public int actualHashForEqual()
Description copied from class: Heaper
Defined by subclasses to produce the value returned by hashForEqual.

Overrides:
actualHashForEqual in class Mapping

isEqual

public boolean isEqual(Heaper other)
Description copied from class: Heaper
Return true if the two objects are equal.

Specified by:
isEqual in class Heaper

sendSelfTo

public void sendSelfTo(Xmtr xmtr)
Overrides:
sendSelfTo in class Heaper

identity

public static GenericCrossDsp identity(GenericCrossSpace space,
                                       PtrArray subSpaces)
Only used during construction; must pass the array in explicitly since the space isnt initialized yet



Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.