|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.constraints.impl.CommonBase
javax.constraints.impl.search.AbstractSearchStrategy
public abstract class AbstractSearchStrategy
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.constraints.SearchStrategy |
|---|
SearchStrategy.SearchStrategyType |
| Constructor Summary | |
|---|---|
AbstractSearchStrategy(Solver solver)
|
|
| Method Summary | |
|---|---|
Solver |
getSolver()
Returns a solver to which this strategy belongs. |
SearchStrategy.SearchStrategyType |
getType()
Returns a type of this Search Strategy |
ValueSelector |
getValueSelector()
Returns a value selector that was set for this strategy |
VarReal[] |
getVarReals()
Returns a an array of real variables that is in use by this strategy |
Var[] |
getVars()
Returns a an array of integer variables that is in use by this strategy |
VarSelector |
getVarSelector()
Returns a variable selector that was set for this strategy |
boolean |
run()
This method is used by CUSTOM strategies such as SearchStrategyLog to define its execution logic |
void |
setType(SearchStrategy.SearchStrategyType type)
Sets a type of this Search Strategy |
void |
setValueSelector(ValueSelector valueSelector)
Sets a value selector that may be used (or not) by this strategy |
void |
setValueSelectorType(ValueSelectorType valueSelectorType)
Sets a value selector type to be used by this strategy |
void |
setVarReals(VarReal[] varReals)
Defines an array of real variables that may be used (or not) by this strategy |
void |
setVars(Var[] vars)
Defines an array of integer variables that may be used (or not) by this strategy |
void |
setVars(VarList vars)
Defines an array of integer variables that may be used (or not) by this strategy |
void |
setVars(VarSet[] setVars)
Defines an array of set variables that may be used (or not) by this strategy. |
void |
setVarSelector(VarSelector varSelector)
Sets a variable selector that may be used (or not) by this strategy |
void |
setVarSelectorType(VarSelectorType varSelectorType)
Sets a variable selector type to be used by this strategy |
void |
trace()
Forces the solver to log information about this strategy every time when it is executed |
| Methods inherited from class javax.constraints.impl.CommonBase |
|---|
getImpl, getName, getObject, getProblem, setImpl, setName, setObject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.constraints.SearchStrategy |
|---|
getImpl, getName, getObject, setImpl, setName, setObject |
| Constructor Detail |
|---|
public AbstractSearchStrategy(Solver solver)
| Method Detail |
|---|
public Solver getSolver()
SearchStrategy
getSolver in interface SearchStrategypublic SearchStrategy.SearchStrategyType getType()
SearchStrategy
getType in interface SearchStrategypublic ValueSelector getValueSelector()
SearchStrategy
getValueSelector in interface SearchStrategypublic VarReal[] getVarReals()
SearchStrategy
getVarReals in interface SearchStrategypublic Var[] getVars()
SearchStrategy
getVars in interface SearchStrategypublic VarSelector getVarSelector()
SearchStrategy
getVarSelector in interface SearchStrategypublic boolean run()
run in interface SearchStrategypublic void setType(SearchStrategy.SearchStrategyType type)
SearchStrategy
setType in interface SearchStrategypublic void setValueSelector(ValueSelector valueSelector)
SearchStrategy
setValueSelector in interface SearchStrategypublic void setValueSelectorType(ValueSelectorType valueSelectorType)
setValueSelectorType in interface SearchStrategyvalueSelectorType - public void setVarReals(VarReal[] varReals)
SearchStrategy
setVarReals in interface SearchStrategypublic void setVars(Var[] vars)
SearchStrategy
setVars in interface SearchStrategyvars - an array of integer constrained variablespublic void setVars(VarList vars)
setVars in interface SearchStrategyvars - a list of integer constrained variablespublic void setVars(VarSet[] setVars)
setVars in interface SearchStrategysetVars - an array of set variablespublic void setVarSelector(VarSelector varSelector)
SearchStrategy
setVarSelector in interface SearchStrategypublic void setVarSelectorType(VarSelectorType varSelectorType)
setVarSelectorType in interface SearchStrategyvarSelectorType - public void trace()
SearchStrategy
trace in interface SearchStrategy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||