jopt.csp.search
Interface SearchAction


public interface SearchAction

This class is used by the search tree to build search nodes. A search node wraps an action and executes the action when the node is activated. The action can return child nodes that allow further nodes to be attached to the search tree. If this action is a choice point, the child actions returned will each be inserted into the search tree as separate nodes. The child actions are used as alternate operations that may occur at this point in the tree. If this action is not a choice point, the child actions returned will be executed as a part of the current search node allowing multiple operations to be combined.

Author:
Nick Coleman

Method Summary
 SearchAction performAction()
          Executes this action and returns the next action to execute.
 

Method Detail

performAction

public SearchAction performAction()
                           throws PropagationFailureException
Executes this action and returns the next action to execute. Generally called when a search node is activated or reactivated. It is also called by CombinedAction when part of a combined action.

Returns:
Next action to execute in search
Throws:
PropagationFailureException