org.abora.white.spaces.integers
Class IntegerArrangement

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.arrange.Arrangement
              |
              +--org.abora.white.spaces.integers.IntegerArrangement

public class IntegerArrangement
extends Arrangement


Field Summary
protected  OrderSpec myOrdering
           
protected  IntegerRegion myRegion
           
 
Constructor Summary
protected IntegerArrangement(Rcvr receiver)
           
protected IntegerArrangement(XnRegion region, OrderSpec ordering)
           
 
Method Summary
 int actualHashForEqual()
          Defined by subclasses to produce the value returned by hashForEqual.
 void copyElements(PrimArray toArray, Dsp toDsp, PrimArray fromArray, Arrangement fromArrange, XnRegion fromRegion)
          Copy elements into toArray arranged according to the receiver.
 int hashForEqual()
          The value returned does not change during the life of the object.
 IntegerValue indexOf(Position position)
          Return the index of position into my Region according to my OrderSpec.
 IntegerRegion indicesOf(XnRegion region)
          Return the region of all the indices corresponding to positions in region.
 boolean isEqual(Heaper other)
          Return true if the two objects are equal.
 XnRegion keysOf(int start, int stop)
          Return the region that corresponds to a range of indices.
static IntegerArrangement make(XnRegion region, OrderSpec ordering)
           
 OrderSpec ordering()
           
 void printOn(java.io.PrintWriter oo)
          This should rarely be overridden.
 XnRegion region()
          The region of positions in the arrangement
 void sendSelfTo(Xmtr xmtr)
           
 
Methods inherited from class org.abora.white.xpp.basic.Heaper
destroy, destruct, equals, printContentsOn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myOrdering

protected OrderSpec myOrdering

myRegion

protected IntegerRegion myRegion
Constructor Detail

IntegerArrangement

protected IntegerArrangement(XnRegion region,
                             OrderSpec ordering)

IntegerArrangement

protected IntegerArrangement(Rcvr receiver)
Method Detail

make

public static IntegerArrangement make(XnRegion region,
                                      OrderSpec ordering)

copyElements

public void copyElements(PrimArray toArray,
                         Dsp toDsp,
                         PrimArray fromArray,
                         Arrangement fromArrange,
                         XnRegion fromRegion)
Description copied from class: Arrangement
Copy elements into toArray arranged according to the receiver. Copy them from fromArray arranged according to fromArrange. The source region is fromRegion. It gets tranformed by toDsp into the toArray.

Overrides:
copyElements in class Arrangement

indexOf

public IntegerValue indexOf(Position position)
Return the index of position into my Region according to my OrderSpec.

Specified by:
indexOf in class Arrangement

indicesOf

public IntegerRegion indicesOf(XnRegion region)
Return the region of all the indices corresponding to positions in region.

Specified by:
indicesOf in class Arrangement

keysOf

public XnRegion keysOf(int start,
                       int stop)
Return the region that corresponds to a range of indices.

Specified by:
keysOf in class Arrangement

ordering

public OrderSpec ordering()

region

public XnRegion region()
Description copied from class: Arrangement
The region of positions in the arrangement

Specified by:
region in class Arrangement

printOn

public void printOn(java.io.PrintWriter oo)
Description copied from class: Heaper
This should rarely be overridden. In Tofu, it prints ClassName(...), where ... is either produced by printInsideOn or is ??? if printInsideOn it not overridden.

Overrides:
printOn in class Heaper

actualHashForEqual

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

Overrides:
actualHashForEqual in class Arrangement

hashForEqual

public int hashForEqual()
Description copied from class: Heaper
The value returned does not change during the life of the object.

Overrides:
hashForEqual in class Heaper

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 Arrangement


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