|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.search.InputOrderSelect<T>
T - type of variable being used in the search.public class InputOrderSelect<T extends Var>
It is simple input order selector of variables.
| Field Summary | |
|---|---|
java.util.IdentityHashMap<T,java.lang.Integer> |
position
It stores the original positions of variables to be used for input order tie-breaking. |
| Constructor Summary | |
|---|---|
InputOrderSelect(Store store,
T[] variables,
Indomain<T> indomain)
It constructs an input order selection procedure. |
|
| Method Summary | |
|---|---|
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. |
java.util.IdentityHashMap<T,java.lang.Integer> |
getVariablesMapping()
It returns the variables for which assignment in the solution is given. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.IdentityHashMap<T extends Var,java.lang.Integer> position
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 java.util.IdentityHashMap<T,java.lang.Integer> getVariablesMapping()
getVariablesMapping in interface SelectChoicePoint<T extends Var>public int getIndex()
getIndex in interface SelectChoicePoint<T extends Var>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||