jopt.csp.spi.search.tree
Interface TreeStateManager

All Known Implementing Classes:
DeltaStateManager, ProblemStateManager, RecalculatingStateManager

public interface TreeStateManager

Action that is performed by a search node when it is visited

Author:
Nick Coleman

Method Summary
 void ascendedToClosedNode(TreeNode previous, TreeNode current)
          Called by search tree when the current node is changed to a parent node of existing current node Node must have previously been activated.
 void descendedToClosedNode(TreeNode previous, TreeNode current)
          Called by search tree when the current node is changed to a child node of existing current node.
 void descendedToOpenNode(TreeNode previous, TreeNode current)
          Called by search tree when the node that is being moved to is a node that has not yet been activated
 void jumpedToClosedNode(TreeNode previous, TreeNode current)
          Called by search tree when the current node in the tree has changed from one node to another and no direct relationship between the two nodes may exist Node must have previously been activated.
 

Method Detail

descendedToClosedNode

public void descendedToClosedNode(TreeNode previous,
                                  TreeNode current)
Called by search tree when the current node is changed to a child node of existing current node. Node must have previously been activated.

Parameters:
previous - Node that was current in tree
current - Node that is now current in tree

ascendedToClosedNode

public void ascendedToClosedNode(TreeNode previous,
                                 TreeNode current)
Called by search tree when the current node is changed to a parent node of existing current node Node must have previously been activated.

Parameters:
previous - Node that was current in tree
current - Node that is now current in tree

jumpedToClosedNode

public void jumpedToClosedNode(TreeNode previous,
                               TreeNode current)
Called by search tree when the current node in the tree has changed from one node to another and no direct relationship between the two nodes may exist Node must have previously been activated.

Parameters:
previous - Node that was current in tree
current - Node that is now current in tree

descendedToOpenNode

public void descendedToOpenNode(TreeNode previous,
                                TreeNode current)
Called by search tree when the node that is being moved to is a node that has not yet been activated

Parameters:
previous - Node that was current in tree
current - Node that is now current in tree