org.abora.white.tumbler
Class ExplicitArrangement

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.arrange.Arrangement
              |
              +--org.abora.white.tumbler.ExplicitArrangement

public class ExplicitArrangement
extends Arrangement


Field Summary
protected  PtrArray myPositions
           
 
Constructor Summary
protected ExplicitArrangement(PtrArray positions)
           
protected ExplicitArrangement(Rcvr receiver)
           
 
Method Summary
 int actualHashForEqual()
          Defined by subclasses to produce the value returned by hashForEqual.
 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 Arrangement make(PtrArray positions)
           
protected  PtrArray positions()
           
 XnRegion region()
          The region of positions in the arrangement
 void sendSelfTo(Xmtr xmtr)
           
 
Methods inherited from class org.abora.white.arrange.Arrangement
copyElements
 
Methods inherited from class org.abora.white.xpp.basic.Heaper
destroy, destruct, equals, printContentsOn, printOn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myPositions

protected PtrArray myPositions
Constructor Detail

ExplicitArrangement

protected ExplicitArrangement(PtrArray positions)

ExplicitArrangement

protected ExplicitArrangement(Rcvr receiver)
Method Detail

make

public static Arrangement make(PtrArray positions)

indexOf

public IntegerValue indexOf(Position position)
Description copied from class: Arrangement
Return the index of position into my Region according to my OrderSpec.

Specified by:
indexOf in class Arrangement

indicesOf

public IntegerRegion indicesOf(XnRegion region)
Description copied from class: Arrangement
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)
Description copied from class: Arrangement
Return the region that corresponds to a range of indices.

Specified by:
keysOf in class Arrangement

region

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

Specified by:
region in class Arrangement

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

positions

protected PtrArray positions()

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.