|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 node
stateId
- state ID of system at beginning of transformation containing
node
threadId
- thread executing node
bis
- 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 IBacktrackingInfo
public ISchedulingStrategyInfo getSchedulingStrategyInfo()
getSchedulingStrategyInfo
in interface IBacktrackingInfo
public int getStateId()
IBacktrackingInfo
getStateId
in interface IBacktrackingInfo
public int getThreadId()
IBacktrackingInfo
getThreadId
in interface IBacktrackingInfo
public void backtrack(IState state)
backtrack
in interface IBacktrackingInfo
public IBacktrackingInfo clone(Map<Object,Object> cloneMap)
clone
in interface IBacktrackingInfo
public void dispose()
Disposable
dispose
in interface Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |