T - type of variable being used in the search.public class InputOrderSelect<T extends Var> extends Object implements SelectChoicePoint<T>
| Modifier and Type | Field and Description |
|---|---|
Map<T,Integer> |
position
It stores the original positions of variables to be used for input order
tie-breaking.
|
| Constructor and Description |
|---|
InputOrderSelect(Store store,
T[] variables,
Indomain<T> indomain)
It constructs an input order selection procedure.
|
| Modifier and Type | Method and Description |
|---|---|
PrimitiveConstraint |
getChoiceConstraint(int index)
It always returns null as choice point is obtained by getChoiceVariable
and getChoiceValue.
|
int |
getChoiceValue()
It returns a value which is the base of the next choice point.
|
T |
getChoiceVariable(int index)
It returns the variable which is the base on the next choice point.
|
int |
getIndex()
It returns the current index.
|
Map<T,Integer> |
getVariablesMapping()
It returns the variables for which assignment in the solution is given.
|
String |
toString() |
public InputOrderSelect(Store store, T[] variables, Indomain<T> indomain)
store - a constraint store in which variables resides.variables - a list of variables which must be assigned a value by search.indomain - the indomain heuristic for assigning values to variables.public T getChoiceVariable(int index)
getChoiceVariable in interface SelectChoicePoint<T extends Var>index - the position of the last variable in selection choice point heuristic.public int getChoiceValue()
getChoiceValue in interface SelectChoicePoint<T extends Var>public PrimitiveConstraint getChoiceConstraint(int index)
getChoiceConstraint in interface SelectChoicePoint<T extends Var>index - the position of the last variable returned by selection choice point heuristic.public Map<T,Integer> getVariablesMapping()
getVariablesMapping in interface SelectChoicePoint<T extends Var>public int getIndex()
getIndex in interface SelectChoicePoint<T extends Var>Copyright © 2022. All rights reserved.