|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.collection.steppers.Stepper
|
+--org.abora.white.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.white.collection.steppers.Stepper |
TheEmptyStepper |
| Constructor Summary | |
protected |
IntegerEdgeStepper(boolean entering,
int count,
IntegerVarArray edges)
|
protected |
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()
|
IntegerValue |
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. |
boolean |
isEntering()
whether the current transition is entering or leaving the set |
static IntegerEdgeStepper |
make(boolean entering,
int count,
IntegerVarArray edges)
|
static void |
outOfBounds()
|
void |
printOn(java.io.PrintWriter oo)
This should rarely be overridden. |
void |
step()
Essential. |
| Methods inherited from class org.abora.white.collection.steppers.Stepper |
actualHashForEqual, atEnd, emptyStepper, get, info, isEqual, itemStepper, stepMany, stepMany, theOne |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destruct, equals, hashForEqual, printContentsOn, sendSelfTo, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean myEntering
protected int myIndex
protected int myCount
protected IntegerVarArray myEdges
protected static InstanceCache SomeEdgeSteppers
| Constructor Detail |
protected IntegerEdgeStepper(boolean entering,
int count,
IntegerVarArray edges)
protected IntegerEdgeStepper(boolean entering,
int index,
int count,
IntegerVarArray edges)
| Method Detail |
public static IntegerEdgeStepper make(boolean entering,
int count,
IntegerVarArray edges)
public Heaper fetch()
Stepper
fetch in class Stepperpublic boolean hasValue()
Stepper
hasValue in class Stepperpublic void step()
Stepper
step in class Stepperpublic IntegerValue edge()
public boolean isEntering()
public void destroy()
destroy in class Heaperpublic Stepper copy()
Stepper
copy in class Stepperpublic void printOn(java.io.PrintWriter oo)
Heaper
printOn in class Heaperpublic static void outOfBounds()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||