|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjopt.csp.spi.solver.ReversibleNumberArray
An array of numbers that is reversible with the choicepoint stack. The stack must be set on the array for this functionality to work properly. Note that classes extending ReversibleNumberArray use primitive arrays to store the actual data (for efficiency purposes).
Constructor Summary | |
ReversibleNumberArray()
|
Method Summary | |
abstract void |
adjValue(int idx,
java.lang.Number val)
Adds the specified val to the value of the reversible array at a particular index |
void |
afterChoicePointPopEvent()
Indicates that the current choice point has been rolled back and domain data must be reset |
void |
afterChoicePointPushEvent()
Indicates that current choice point has been updated and domain data must be restored |
void |
beforeChoicePointPopEvent()
Indicates that the current choice point is about to be rolled back and domain data must be reset |
void |
beforeChoicePointPushEvent()
Indicates that current choice point is about to be pushed to allow data to be recorded in stack |
abstract void |
clear()
|
abstract java.lang.Number |
getValue(int idx)
Returns the value of the reversible array at a particular index |
void |
setChoicePointStack(ChoicePointStack cps)
Sets the choicepoint stack associated with this array. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReversibleNumberArray()
Method Detail |
public abstract void adjValue(int idx, java.lang.Number val)
public abstract java.lang.Number getValue(int idx)
public void beforeChoicePointPopEvent()
ChoicePointEntryListener
beforeChoicePointPopEvent
in interface ChoicePointEntryListener
public void afterChoicePointPopEvent()
ChoicePointEntryListener
afterChoicePointPopEvent
in interface ChoicePointEntryListener
public void beforeChoicePointPushEvent()
ChoicePointEntryListener
beforeChoicePointPushEvent
in interface ChoicePointEntryListener
public void afterChoicePointPushEvent()
ChoicePointEntryListener
afterChoicePointPushEvent
in interface ChoicePointEntryListener
public void setChoicePointStack(ChoicePointStack cps)
public abstract void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |