jopt.csp.search
Interface SearchLimit

All Superinterfaces:
java.lang.Cloneable

public interface SearchLimit
extends java.lang.Cloneable

This class is used by the search tree to limit the number of nodes of the search tree that are actually activated to keep the size of the search tree limited.


Method Summary
 java.lang.Object clone()
           
 void init(SearchNode node)
          Initializes search limit based on a starting search node
 boolean isOkToContinue(SearchNode node)
          Called before each search node is activated by search tree to determine if a search should continue
 

Method Detail

init

public void init(SearchNode node)
Initializes search limit based on a starting search node

Parameters:
node - Node that search tree starts with to initialize search limit

isOkToContinue

public boolean isOkToContinue(SearchNode node)
Called before each search node is activated by search tree to determine if a search should continue

Parameters:
node - Node to evaluate to determine if search should continue
Returns:
True if node is okay to activate, false if it search should end

clone

public java.lang.Object clone()