|
||||||||
| 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.collection.steppers.Stepper
|
+--org.abora.gold.spaces.integers.IntegerEdgeStepper
A single instance of this class is cached. To take advantage of this, a method
that uses IntegerEdgeSteppers should explicitly destroy at least one of them.
| Field Summary | |
protected int |
myCount
|
protected IntegerVarArray |
myEdges
|
protected boolean |
myEntering
|
protected int |
myIndex
|
protected static InstanceCache |
SomeEdgeSteppers
|
| Fields inherited from class org.abora.gold.collection.steppers.Stepper |
TheEmptyStepper |
| 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 | |
IntegerEdgeStepper(boolean entering,
int count,
IntegerVarArray edges)
|
|
IntegerEdgeStepper(boolean entering,
int index,
int count,
IntegerVarArray edges)
|
|
| Method Summary | |
Stepper |
copy()
Return a new stepper which steps independently of me, but whose current value is the same as mine, and which must produce a future history of values which satisfies the same obligation that my contract obligates me to produce now. |
void |
destroy()
|
IntegerVar |
edge()
the current transition |
Heaper |
fetch()
If I am exhausted (i.e., if (!! this->hasValue())), then return NULL. |
boolean |
hasValue()
Iff I have a current value (i.e. |
static void |
initTimeNonInherited()
|
boolean |
isEntering()
whether the current transition is entering or leaving the set |
static void |
linkTimeNonInherited()
|
static Heaper |
make(boolean entering,
int count,
IntegerVarArray edges)
|
static void |
outOfBounds()
|
void |
printOn(java.io.PrintWriter oo)
|
void |
step()
Essential. |
| Methods inherited from class org.abora.gold.collection.steppers.Stepper |
actualHashForEqual, asArray, atEnd, emptyStepper, forEach, forEachPromise, get, info, isEqual, itemStepper, stepMany, stepMany, theOne |
| 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 boolean myEntering
protected int myIndex
protected int myCount
protected IntegerVarArray myEdges
protected static InstanceCache SomeEdgeSteppers
| Constructor Detail |
public IntegerEdgeStepper(boolean entering,
int count,
IntegerVarArray edges)
public IntegerEdgeStepper(boolean entering,
int index,
int count,
IntegerVarArray edges)
| Method Detail |
public Heaper fetch()
Stepper
fetch in class Stepperpublic boolean hasValue()
Stepper
hasValue in class Stepperpublic void step()
Stepper
step in class Stepperpublic IntegerVar edge()
public boolean isEntering()
public void destroy()
destroy in class Heaperpublic Stepper copy()
Stepper
copy in class Stepperpublic void printOn(java.io.PrintWriter oo)
printOn in class Heaperpublic static void outOfBounds()
public static Heaper make(boolean entering,
int count,
IntegerVarArray edges)
public static void initTimeNonInherited()
public static void linkTimeNonInherited()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||