Class InputOrder<V extends Variable>
- java.lang.Object
-
- org.chocosolver.solver.search.strategy.selectors.variables.InputOrder<V>
-
- All Implemented Interfaces:
VariableSelector<V>
public class InputOrder<V extends Variable> extends Object implements VariableSelector<V>
Input order variable selector. It chooses variables in order they appears (instantiated variables are ignored).- Since:
- 2 juil. 2010
- Author:
- Charles Prud'homme
-
-
Constructor Summary
Constructors Constructor Description InputOrder(Model model)
Input order variable selector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getVariable(V[] variables)
Provides access to the current selected variable amongvariables
.
-
-
-
Constructor Detail
-
InputOrder
public InputOrder(Model model)
Input order variable selector. It chooses variables in order they appears (instantiated variables are ignored).- Parameters:
model
- reference to the model (does not define the variable scope)
-
-
Method Detail
-
getVariable
public V getVariable(V[] variables)
Description copied from interface:VariableSelector
Provides access to the current selected variable amongvariables
. If there is no variable left, returnnull
.- Specified by:
getVariable
in interfaceVariableSelector<V extends Variable>
- Returns:
- the current selected variable if any,
null
otherwise.
-
-