|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SearchStrategy
| Nested Class Summary | |
|---|---|
static class |
SearchStrategy.SearchStrategyType
|
| Method Summary | |
|---|---|
java.lang.Object |
getImpl()
This method should be defined by a concrete solver implementation. |
java.lang.String |
getName()
Returns the name of this strategy. |
java.lang.Object |
getObject()
This method may be used to get an attached Business Object for this object. |
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 |
setImpl(java.lang.Object impl)
This method defines an Object that represents an actual implementation of this strategy inside a selected solver. |
void |
setName(java.lang.String name)
Sets the name of this strategy. |
void |
setObject(java.lang.Object obj)
This method may be used to attach a business object to this object. |
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 integer 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 |
| Method Detail |
|---|
java.lang.Object getImpl()
java.lang.String getName()
java.lang.Object getObject()
Solver getSolver()
SearchStrategy.SearchStrategyType getType()
ValueSelector getValueSelector()
VarReal[] getVarReals()
Var[] getVars()
VarSelector getVarSelector()
boolean run()
void setImpl(java.lang.Object impl)
impl - the Object that represents an actual implementation of this
strategy inside a selected solver.void setName(java.lang.String name)
name - the name for this strategy.void setObject(java.lang.Object obj)
obj - the business object being attached.void setType(SearchStrategy.SearchStrategyType type)
void setValueSelector(ValueSelector valueSelector)
valueSelector - void setValueSelectorType(ValueSelectorType valueSelectorType)
valueSelectorType - void setVarReals(VarReal[] varReals)
varReals - void setVars(Var[] vars)
vars - an array of integer constrained variablesvoid setVars(VarList vars)
vars - a list of integer constrained variablesvoid setVars(VarSet[] setVars)
setVars - an array of set variablesvoid setVarSelector(VarSelector varSelector)
varSelector - void setVarSelectorType(VarSelectorType varSelectorType)
varSelectorType - void trace()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||