|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.AbstractEntity
choco.search.AbstractGlobalSearchLimit
choco.search.TimeLimit
public class TimeLimit
Field Summary | |
---|---|
protected long |
starth
|
Fields inherited from class choco.search.AbstractGlobalSearchLimit |
---|
nb, nbMax, nbTot, solver, unit |
Fields inherited from class choco.AbstractEntity |
---|
hook, problem |
Constructor Summary | |
---|---|
TimeLimit(AbstractGlobalSearchSolver theSolver,
int theLimit)
|
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 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 |
Field Detail |
---|
protected long starth
Constructor Detail |
---|
public TimeLimit(AbstractGlobalSearchSolver theSolver, int theLimit)
Method Detail |
---|
public void reset(boolean first)
IGlobalSearchLimit
reset
in interface IGlobalSearchLimit
reset
in class AbstractGlobalSearchLimit
first
- true for the very first initialization, false for subsequent onespublic boolean newNode(AbstractGlobalSearchSolver solver)
IGlobalSearchLimit
solver
- the controller of the search exploration, managing the limit
public boolean endNode(AbstractGlobalSearchSolver solver)
IGlobalSearchLimit
solver
- the controller of the search exploration, managing the limit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |