|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.AbstractEntity
choco.search.AbstractGlobalSearchLimit
public abstract class AbstractGlobalSearchLimit
An abstract class for limiting tree search (imposing conditions on depth, ...)
Field Summary | |
---|---|
protected int |
nb
a counter who is limited to values below max |
protected int |
nbMax
maximal value limitting the search exploration |
protected int |
nbTot
counting for successive tree search |
protected AbstractGlobalSearchSolver |
solver
the solver that delegates the limit checking task to such AbstractGlobalSearchLimit objects |
protected java.lang.String |
unit
for pretty printing |
Fields inherited from class choco.AbstractEntity |
---|
hook, problem |
Constructor Summary | |
---|---|
AbstractGlobalSearchLimit(AbstractGlobalSearchSolver theSolver,
int theLimit)
|
Method Summary | |
---|---|
int |
getNb()
get the current counter |
int |
getNbMax()
|
int |
getNbTot()
get the total counter |
java.lang.String |
pretty()
pretty printing of the object. |
void |
reset(boolean first)
resets the limit (the counter run from now on) |
void |
setNbMax(int nbMax)
Sets the limits |
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.search.IGlobalSearchLimit |
---|
endNode, newNode |
Methods inherited from interface choco.Entity |
---|
getProblem |
Field Detail |
---|
protected AbstractGlobalSearchSolver solver
protected java.lang.String unit
protected int nbMax
protected int nb
protected int nbTot
Constructor Detail |
---|
public AbstractGlobalSearchLimit(AbstractGlobalSearchSolver theSolver, int theLimit)
Method Detail |
---|
public void reset(boolean first)
IGlobalSearchLimit
reset
in interface IGlobalSearchLimit
first
- true for the very first initialization, false for subsequent onespublic java.lang.String pretty()
Entity
pretty
in interface Entity
pretty
in class AbstractEntity
public int getNb()
public int getNbTot()
public int getNbMax()
public void setNbMax(int nbMax)
nbMax
- new value of the limit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |