choco.search
Interface IGlobalSearchLimit

All Superinterfaces:
Entity
All Known Implementing Classes:
AbstractGlobalSearchLimit, NodeLimit, PalmTimeLimit, TimeLimit

public interface IGlobalSearchLimit
extends Entity

The interface of objects limiting the global search exploration


Method Summary
 boolean endNode(AbstractGlobalSearchSolver solver)
          notify the limit object whenever the search closes a node in the search tree
 boolean newNode(AbstractGlobalSearchSolver solver)
          notify the limit object whenever a new node is created in the search tree
 void reset(boolean first)
          resets the limit (the counter run from now on)
 
Methods inherited from interface choco.Entity
getProblem, pretty
 

Method Detail

reset

void reset(boolean first)
resets the limit (the counter run from now on)

Parameters:
first - true for the very first initialization, false for subsequent ones

newNode

boolean newNode(AbstractGlobalSearchSolver solver)
notify the limit object whenever a new node is created in the search tree

Parameters:
solver - the controller of the search exploration, managing the limit
Returns:
true if the limit accepts the creation of the new node, false otherwise

endNode

boolean endNode(AbstractGlobalSearchSolver solver)
notify the limit object whenever the search closes a node in the search tree

Parameters:
solver - the controller of the search exploration, managing the limit
Returns:
true if the limit accepts the death of the new node, false otherwise