|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.solver.search.limit.AbstractGlobalSearchLimit
public abstract class AbstractGlobalSearchLimit
An abstract class for limiting tree search (imposing conditions on depth, ...)
Field Summary | |
---|---|
protected int |
nbMax
maximal value limitting the search exploration |
protected AbstractGlobalSearchStrategy |
strategy
the strategy that delegates the limit checking task to such AbstractGlobalSearchLimit objects |
protected Limit |
type
type of limit |
protected String |
unit
for pretty printing |
Constructor Summary | |
---|---|
AbstractGlobalSearchLimit(AbstractGlobalSearchStrategy theStrategy,
int theLimit,
Limit type)
|
|
AbstractGlobalSearchLimit(AbstractGlobalSearchStrategy theStrategy,
int theLimit,
String unit)
|
Method Summary | |
---|---|
abstract int |
getNb()
get the current counter |
int |
getNbMax()
|
AbstractGlobalSearchStrategy |
getSearchStrategy()
|
Limit |
getType()
|
String |
getUnit()
|
String |
pretty()
pretty printing of the object. |
void |
setNbMax(int nbMax)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final AbstractGlobalSearchStrategy strategy
protected final String unit
protected final Limit type
protected int nbMax
Constructor Detail |
---|
public AbstractGlobalSearchLimit(AbstractGlobalSearchStrategy theStrategy, int theLimit, String unit)
public AbstractGlobalSearchLimit(AbstractGlobalSearchStrategy theStrategy, int theLimit, Limit type)
Method Detail |
---|
public final AbstractGlobalSearchStrategy getSearchStrategy()
public String toString()
toString
in class Object
public String pretty()
IPretty
pretty
in interface IPretty
public abstract int getNb()
public final int getNbMax()
public void setNbMax(int nbMax)
public final Limit getType()
public final String getUnit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |