org.abora.white.spaces.integers
Class IntegerSpace

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.spaces.basic.CoordinateSpace
              |
              +--org.abora.white.spaces.integers.IntegerSpace

public class IntegerSpace
extends CoordinateSpace

The space of all integers. See the class comments in IntegerRegion, XuInteger, and IntegerDsp for interesting properties of this space. Especially IntegerRegion. IntegerSpaces are the most frequently used of the coordinate spaces. XuArrays are an efficient data structure which we provide as a table whose domain space is an integer space. In so doing, the notion of an array is made to be simply a particular case of a table indexed by the positions of a coordinate space. However, IntegerSpaces and XuArrays are both expected to be more efficient than other spaces and tables built on other spaces. See XuArray


Field Summary
protected static IntegerSpace TheIntegerSpace
           
 
Fields inherited from class org.abora.white.spaces.basic.CoordinateSpace
myAscending, myDescending, myEmptyRegion, myFullRegion, myIdentityDsp
 
Constructor Summary
IntegerSpace()
           
 
Method Summary
 IntegerRegion above(IntegerPos start, boolean inclusive)
          Essential.
 int actualHashForEqual()
          is equal to any basic space on the same category of positions
 IntegerRegion below(IntegerPos stop, boolean inclusive)
          Make a region that contains all integers less than (or equal if inclusive is true) to stop.
static IntegerSpace implicitReceiver()
          Get the receievr for wire requests.
 IntegerRegion interval(IntegerPos start, IntegerPos stop)
          Make a region that contains all integers greater than or equal to start and less than stop.
 boolean isEqual(Heaper anObject)
          is equal to any basic space on the same category of positions
static IntegerSpace make()
          return the one integer space
static Heaper make(Rcvr rcvr)
           
 IntegerPos position(IntegerValue value)
          Essential.
 void sendSelfTo(Xmtr xmtr)
           
 IntegerMapping translation(IntegerValue value)
          Essential.
 
Methods inherited from class org.abora.white.spaces.basic.CoordinateSpace
ascending, completeMapping, descending, emptyRegion, fetchAscending, fetchDescending, finishCreate, fullRegion, getAscending, getDescending, identityDsp, identityMapping, verify
 
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

TheIntegerSpace

protected static IntegerSpace TheIntegerSpace
Constructor Detail

IntegerSpace

public IntegerSpace()
Method Detail

above

public IntegerRegion above(IntegerPos start,
                           boolean inclusive)
Essential. Make a region that contains all integers greater than (or equal if inclusive is true) to start.


below

public IntegerRegion below(IntegerPos stop,
                           boolean inclusive)
Make a region that contains all integers less than (or equal if inclusive is true) to stop.


interval

public IntegerRegion interval(IntegerPos start,
                              IntegerPos stop)
Make a region that contains all integers greater than or equal to start and less than stop.


position

public IntegerPos position(IntegerValue value)
Essential. Make an integer Position object


translation

public IntegerMapping translation(IntegerValue value)
Essential. Make a Mapping which adds a fixed amount to any value. Should this just be supplanted by CoordinateSpace::mapping ()?


actualHashForEqual

public int actualHashForEqual()
is equal to any basic space on the same category of positions

Overrides:
actualHashForEqual in class CoordinateSpace

isEqual

public boolean isEqual(Heaper anObject)
is equal to any basic space on the same category of positions

Specified by:
isEqual in class CoordinateSpace

sendSelfTo

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

implicitReceiver

public static IntegerSpace implicitReceiver()
Get the receievr for wire requests.


make

public static IntegerSpace make()
return the one integer space


make

public static Heaper make(Rcvr rcvr)


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