|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A cloneable version of the AmongVar constraint. More...

Public Member Functions | |
| AmongVarCloneable (IntVarCloneable[] xList, IntVarCloneable[] yList, IntVarCloneable nVar) | |
| Constructor. | |
| AmongVarCloneable (ArrayList< IntVarCloneable > listOfX, ArrayList< IntVarCloneable > listOfY, IntVarCloneable n) | |
| It constructs an AmongVar constraint. | |
| AmongVarCloneable | cloneInto (StoreCloneable targetStore) throws FailException |
| void | impose (Store store) |
| void | consistency (Store store) |
| void | consistencyForX (Store store) |
| void | queueVariable (int level, Var var) |
| void | consistencyForY (Store store) |
| void | consistencyWhen_LB0_EQ_UB0 (Store store) |
| boolean | satisfied () |
| void | removeLevel (int level) |
| Public Member Functions inherited from org.jacop.constraints.ConstraintCloneableInterface< AmongVarCloneable > | |
| abstract C | cloneInto (StoreCloneable targetStore) throws CloneNotSupportedException, FailException |
| Creates a new constraint that is a (state-less) clone of this one, but expressed on the variables with the same names found in the input store. | |
Private Attributes | |
| Map< IntVar, Integer > | xIndex |
| Map< IntVar, Integer > | yIndex |
| MutableVar | lbS |
| MutableVar | futureLbS |
| TimeStamp< Integer > | lb0TS |
| TimeStamp< Integer > | ub0TS |
| TimeStamp< Integer > | xGrounded |
| TimeStamp< Integer > | yGrounded |
| LinkedHashSet< Integer > | variableQueueY = new LinkedHashSet<Integer>() |
A cloneable version of the AmongVar constraint.
| org.jacop.constraints.AmongVarCloneable.AmongVarCloneable | ( | IntVarCloneable[] | xList, |
| IntVarCloneable[] | yList, | ||
| IntVarCloneable | nVar ) |
Constructor.
| xList | the x variables |
| yList | the y variables |
| nVar | the n variable |
Referenced by cloneInto().
| org.jacop.constraints.AmongVarCloneable.AmongVarCloneable | ( | ArrayList< IntVarCloneable > | listOfX, |
| ArrayList< IntVarCloneable > | listOfY, | ||
| IntVarCloneable | n ) |
It constructs an AmongVar constraint.
| listOfX | the list of variables whose equality to other set of variables we count |
| listOfY | the list of variable to which equality is counted. |
| n | how many variables from list x are equal to at least one variable from list y. |
| AmongVarCloneable org.jacop.constraints.AmongVarCloneable.cloneInto | ( | StoreCloneable | targetStore | ) | throws FailException |
| void org.jacop.constraints.AmongVarCloneable.consistency | ( | Store | store | ) |
References consistencyForX(), consistencyForY(), consistencyWhen_LB0_EQ_UB0(), futureLbS, lb0TS, lbS, satisfied(), ub0TS, variableQueueY, xGrounded, xIndex, yGrounded, and yIndex.

| void org.jacop.constraints.AmongVarCloneable.consistencyForX | ( | Store | store | ) |
References lb0TS, lbS, ub0TS, and xIndex.
Referenced by consistency().
| void org.jacop.constraints.AmongVarCloneable.consistencyForY | ( | Store | store | ) |
References futureLbS, and lbS.
Referenced by consistency().
| void org.jacop.constraints.AmongVarCloneable.consistencyWhen_LB0_EQ_UB0 | ( | Store | store | ) |
References futureLbS, lbS, and yGrounded.
Referenced by consistency().
| void org.jacop.constraints.AmongVarCloneable.impose | ( | Store | store | ) |
| void org.jacop.constraints.AmongVarCloneable.queueVariable | ( | int | level, |
| Var | var ) |
References variableQueueY, xGrounded, and yIndex.
| void org.jacop.constraints.AmongVarCloneable.removeLevel | ( | int | level | ) |
| boolean org.jacop.constraints.AmongVarCloneable.satisfied | ( | ) |
References lb0TS, ub0TS, xGrounded, and yGrounded.
Referenced by consistency().
|
private |
Referenced by consistency(), consistencyForY(), consistencyWhen_LB0_EQ_UB0(), and impose().
|
private |
Referenced by consistency(), consistencyForX(), impose(), and satisfied().
|
private |
Referenced by consistency(), consistencyForX(), consistencyForY(), consistencyWhen_LB0_EQ_UB0(), and impose().
|
private |
Referenced by consistency(), consistencyForX(), impose(), and satisfied().
|
private |
Referenced by consistency(), and queueVariable().
|
private |
Referenced by consistency(), impose(), queueVariable(), and satisfied().
|
private |
Referenced by consistency(), consistencyForX(), and impose().
|
private |
Referenced by consistency(), consistencyWhen_LB0_EQ_UB0(), impose(), and satisfied().
|
private |
Referenced by consistency(), impose(), and queueVariable().