|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.search.tree.CombinedAction
Special action that represents a combination of actions that should all be performed within the same search node
Constructor Summary | |
CombinedAction(java.util.List actions)
Creates a new combined action |
|
CombinedAction(jopt.csp.search.SearchAction action1,
jopt.csp.search.SearchAction action2)
Creates a new combined action |
|
CombinedAction(jopt.csp.search.SearchAction action1,
jopt.csp.search.SearchAction action2,
jopt.csp.search.SearchAction action3)
Creates a new combined action |
Method Summary | |
jopt.csp.search.SearchAction |
performAction()
Iteratively executed the actions stored in this CombinedAction . |
jopt.csp.search.SearchAction |
processChoicePoint(java.util.LinkedList workingStack,
jopt.csp.search.SearchAction searchAction)
This method handles creating combined choice point if additional actions exist that have not yet executed in the stack |
jopt.csp.search.SearchAction |
processSearchChange(java.util.LinkedList workingStack,
jopt.csp.search.SearchAction searchAction)
This method handles a search technique change encountered when there exist actions in the stack that have not yet executed. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CombinedAction(jopt.csp.search.SearchAction action1, jopt.csp.search.SearchAction action2)
action1
- First action to performaction2
- Second action to performpublic CombinedAction(jopt.csp.search.SearchAction action1, jopt.csp.search.SearchAction action2, jopt.csp.search.SearchAction action3)
action1
- First action to performaction2
- Second action to performaction3
- Third action to performpublic CombinedAction(java.util.List actions)
actions
- List of actions that should make up this combined action.
Actions will be performed in the order they exist in the list.Method Detail |
public jopt.csp.search.SearchAction performAction() throws jopt.csp.variable.PropagationFailureException
CombinedAction
. Handles
choice points and search technique changes appropriately so that all actions in the
combined action will eventually be executed.
performAction
in interface jopt.csp.search.SearchAction
jopt.csp.variable.PropagationFailureException
public jopt.csp.search.SearchAction processSearchChange(java.util.LinkedList workingStack, jopt.csp.search.SearchAction searchAction) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
public jopt.csp.search.SearchAction processChoicePoint(java.util.LinkedList workingStack, jopt.csp.search.SearchAction searchAction) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |