jopt.csp.spi.search.limit
Class ChoiceLimit

java.lang.Object
  extended byjopt.csp.spi.search.limit.ChoiceLimit
All Implemented Interfaces:
java.lang.Cloneable, jopt.csp.search.SearchLimit

public class ChoiceLimit
extends java.lang.Object
implements jopt.csp.search.SearchLimit

Search limit that will stop activating search nodes after a configurable number of choicepoints have been activated


Constructor Summary
ChoiceLimit(int maxChoices)
          Creates a new choicepoint limit search limit
 
Method Summary
 java.lang.Object clone()
           
 void init(jopt.csp.search.SearchNode node)
           
 boolean isOkToContinue(jopt.csp.search.SearchNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceLimit

public ChoiceLimit(int maxChoices)
Creates a new choicepoint limit search limit

Parameters:
maxChoices - Maximum numbere of choicepoints allowed
Method Detail

init

public void init(jopt.csp.search.SearchNode node)
Specified by:
init in interface jopt.csp.search.SearchLimit

isOkToContinue

public boolean isOkToContinue(jopt.csp.search.SearchNode node)
Specified by:
isOkToContinue in interface jopt.csp.search.SearchLimit

clone

public java.lang.Object clone()
Specified by:
clone in interface jopt.csp.search.SearchLimit