choco.palm.dbt.search
Class PalmTimeLimit

java.lang.Object
  extended by choco.AbstractEntity
      extended by choco.search.AbstractGlobalSearchLimit
          extended by choco.search.TimeLimit
              extended by choco.palm.dbt.search.PalmTimeLimit
All Implemented Interfaces:
Entity, IGlobalSearchLimit

public class PalmTimeLimit
extends TimeLimit


Field Summary
 
Fields inherited from class choco.search.TimeLimit
starth
 
Fields inherited from class choco.search.AbstractGlobalSearchLimit
nb, nbMax, nbTot, solver, unit
 
Fields inherited from class choco.AbstractEntity
hook, problem
 
Constructor Summary
PalmTimeLimit(AbstractGlobalSearchSolver theSolver, int theLimit)
           
 
Method Summary
 boolean endNode(AbstractGlobalSearchSolver solver)
          notify the limit object whenever the search closes a node in the search tree
 
Methods inherited from class choco.search.TimeLimit
newNode, reset
 
Methods inherited from class choco.search.AbstractGlobalSearchLimit
getNb, getNbMax, getNbTot, pretty, setNbMax
 
Methods inherited from class choco.AbstractEntity
getProblem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface choco.Entity
getProblem
 

Constructor Detail

PalmTimeLimit

public PalmTimeLimit(AbstractGlobalSearchSolver theSolver,
                     int theLimit)
Method Detail

endNode

public boolean endNode(AbstractGlobalSearchSolver solver)
Description copied from interface: IGlobalSearchLimit
notify the limit object whenever the search closes a node in the search tree

Specified by:
endNode in interface IGlobalSearchLimit
Overrides:
endNode in class TimeLimit
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