|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.module.backtrack.CompoundBacktrackingInfo
public final class CompoundBacktrackingInfo
An aggregator for backtracking actions. This is the acceptable mechanism
for composing smaller, reusable actions when implementing an
actiondef extension.
| Constructor Summary | |
|---|---|
CompoundBacktrackingInfo(Node node,
ISchedulingStrategyInfo ssi,
int stateId,
int threadId,
List<IBacktrackingInfo> bis)
|
|
| Method Summary | |
|---|---|
void |
backtrack(IState state)
|
IBacktrackingInfo |
clone(Map<Object,Object> cloneMap)
|
void |
dispose()
Remove references. |
Node |
getNode()
The point from which re-searching should start, if this reverse delta corresponds to a choice point. |
ISchedulingStrategyInfo |
getSchedulingStrategyInfo()
|
int |
getStateId()
Fingerprint of state most recently stored in current DFS descent |
int |
getThreadId()
The descriptor of the thread which took the forward version of this action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundBacktrackingInfo(Node node,
ISchedulingStrategyInfo ssi,
int stateId,
int threadId,
List<IBacktrackingInfo> bis)
node - node whose execution this backtracking action reversesssi - scheduling information used during execution of nodestateId - state ID of system at beginning of transformation containing
nodethreadId - thread executing nodebis - a series of backtracking infos which should be applied.
Chronologically, they will be applied in the reverse order of their
appearance in bis. That is,
bis.get(bis.size() - 1).backtrack(...);
bis.get(bis.size() - 2).backtrack(...);
...
bis.get(0).backtrack(...);
| Method Detail |
|---|
public Node getNode()
IBacktrackingInfo
getNode in interface IBacktrackingInfopublic ISchedulingStrategyInfo getSchedulingStrategyInfo()
getSchedulingStrategyInfo in interface IBacktrackingInfopublic int getStateId()
IBacktrackingInfo
getStateId in interface IBacktrackingInfopublic int getThreadId()
IBacktrackingInfo
getThreadId in interface IBacktrackingInfopublic void backtrack(IState state)
backtrack in interface IBacktrackingInfopublic IBacktrackingInfo clone(Map<Object,Object> cloneMap)
clone in interface IBacktrackingInfopublic void dispose()
Disposable
dispose in interface Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||