|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.spaces.basic.Position
|
+--org.abora.gold.be.basic.ID
Implementation note:
An ID exists within a particular IDSpace, and is generated by a particular Server. It
holds onto the space and the Server which created it, along with a number identifying the
ID uniquely. If mySpace is NULL, then the ID is in the global IDSpace. If myBackend is
NULL, then this ID was generated by the current Server (unless myNumber is negative, in
which case it is considered to have been generated by the "global" backend). If myBackend
is non-NULL, then myNumber must be non-negative.
| Field Summary | |
protected Sequence |
myBackend
|
protected IntegerVar |
myNumber
|
protected IDSpace |
mySpace
|
| Fields inherited from class org.abora.gold.xpp.basic.Heaper |
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes |
| Fields inherited from class org.abora.gold.java.AboraHeaper |
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag |
| Constructor Summary | |
ID(IDSpace space,
Sequence backend,
IntegerVar number)
|
|
ID(Rcvr receiver)
|
|
| Method Summary | |
int |
actualHashForEqual()
since we redefine equal, subclasses had better redefine actualHashForEqual |
XnRegion |
asRegion()
Essential. |
Sequence |
backend()
Essential. |
CoordinateSpace |
coordinateSpace()
Essential. |
UInt8Array |
export()
Essential. |
static void |
exportIntegerRegion(SpecialistXmtr xmtr,
IntegerRegion integers)
Write a IntegerRegion onto a stream |
static void |
exportSequence(SpecialistXmtr xmtr,
Sequence sequence)
Write a Sequence onto a stream |
Sequence |
fetchBackend()
|
IDSpace |
fetchSpace()
|
Sequence |
identifier()
A sequence of numbers which uniquely identify this ID within its space |
static IntegerRegion |
importIntegerRegion(SpecialistRcvr rcvr)
Read a IntegerRegion from a stream |
static Sequence |
importSequence(SpecialistRcvr rcvr)
Read a Sequence from a stream |
static ID |
importx(PrimIntArray data)
Essential. |
static void |
info()
{UInt8Array CLIENT} export |
boolean |
isEqual(Heaper heaper)
Return true if the two objects are equal. |
static ID |
key(java.lang.String string)
ID key: 'test' |
static Heaper |
make(IDSpace space,
Sequence backend,
IntegerVar number)
|
static Heaper |
make(IntegerVar left,
IntegerVar right)
|
static Heaper |
make(PackOBits pakobits)
|
IntegerVar |
number()
Essential. |
void |
printOn(java.io.PrintWriter oo)
|
void |
sendSelfTo(Xmtr xmtr)
do nothing |
static ID |
usingx(IDSpace space,
Sequence backend,
IntegerVar number)
Special for IDStepper - checks whether it should make backend be NULL |
| Methods inherited from class org.abora.gold.spaces.basic.Position |
isAfterOrEqual, isGE |
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IDSpace mySpace
protected Sequence myBackend
protected IntegerVar myNumber
| Constructor Detail |
public ID(IDSpace space,
Sequence backend,
IntegerVar number)
public ID(Rcvr receiver)
| Method Detail |
public XnRegion asRegion()
Position
asRegion in class Positionpublic CoordinateSpace coordinateSpace()
Position
coordinateSpace in class Positionpublic UInt8Array export()
public int actualHashForEqual()
Position
actualHashForEqual in class Positionpublic boolean isEqual(Heaper heaper)
Heaper
isEqual in class Positionpublic void printOn(java.io.PrintWriter oo)
printOn in class Heaperpublic Sequence backend()
public Sequence fetchBackend()
public IDSpace fetchSpace()
public IntegerVar number()
public Sequence identifier()
public void sendSelfTo(Xmtr xmtr)
Heaper
sendSelfTo in class Heaper
public static Heaper make(IDSpace space,
Sequence backend,
IntegerVar number)
public static ID usingx(IDSpace space,
Sequence backend,
IntegerVar number)
public static ID key(java.lang.String string)
public static Heaper make(PackOBits pakobits)
public static Heaper make(IntegerVar left,
IntegerVar right)
public static void info()
public static ID importx(PrimIntArray data)
public static void exportIntegerRegion(SpecialistXmtr xmtr,
IntegerRegion integers)
public static void exportSequence(SpecialistXmtr xmtr,
Sequence sequence)
public static IntegerRegion importIntegerRegion(SpecialistRcvr rcvr)
public static Sequence importSequence(SpecialistRcvr rcvr)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||