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

Public Member Functions | |
| SumWeightCloneable (IntVarCloneable[] list, int[] weights, IntVarCloneable sum) | |
| Constructor. | |
| SumWeightCloneable (IntVarCloneable[] list, int[] weights, int equalTo) | |
| Constructor. | |
| SumWeightCloneable (List<? extends IntVarCloneable > variables, List< Integer > weights, IntVarCloneable sum) | |
| Constructor. | |
| SumWeightCloneable (ArrayList<? extends IntVarCloneable > list, ArrayList< Integer > weights, IntVarCloneable sum) | |
| Constructor. | |
| SumWeightCloneable | cloneInto (StoreCloneable targetStore) throws FailException |
| Public Member Functions inherited from org.jacop.constraints.ConstraintCloneableInterface< SumWeightCloneable > | |
| 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 | |
| final IntVarCloneable | list [] |
| It specifies a list of variables being summed. | |
| final int | weights [] |
| It specifies a list of weights associated with the variables being summed. | |
| final IntVarCloneable | sum |
| The sum variable originally passed to the constructor. | |
| final long | equalTo |
| It specifies value to which SumWeight is equal to. | |
A cloneable version of the SumWeight constraint.
| org.jacop.constraints.SumWeightCloneable.SumWeightCloneable | ( | IntVarCloneable[] | list, |
| int[] | weights, | ||
| IntVarCloneable | sum ) |
Constructor.
| list | the list of variables |
| weights | the list of weights |
| sum | the total sum variable |
References list, sum, and weights.
Referenced by cloneInto().
| org.jacop.constraints.SumWeightCloneable.SumWeightCloneable | ( | IntVarCloneable[] | list, |
| int[] | weights, | ||
| int | equalTo ) |
| org.jacop.constraints.SumWeightCloneable.SumWeightCloneable | ( | List<? extends IntVarCloneable > | variables, |
| List< Integer > | weights, | ||
| IntVarCloneable | sum ) |
| org.jacop.constraints.SumWeightCloneable.SumWeightCloneable | ( | ArrayList<? extends IntVarCloneable > | list, |
| ArrayList< Integer > | weights, | ||
| IntVarCloneable | sum ) |
| SumWeightCloneable org.jacop.constraints.SumWeightCloneable.cloneInto | ( | StoreCloneable | targetStore | ) | throws FailException |
|
private |
It specifies value to which SumWeight is equal to.
Referenced by SumWeightCloneable().
|
private |
It specifies a list of variables being summed.
Referenced by SumWeightCloneable(), SumWeightCloneable(), and SumWeightCloneable().
|
private |
The sum variable originally passed to the constructor.
Referenced by SumWeightCloneable(), SumWeightCloneable(), and SumWeightCloneable().
|
private |
It specifies a list of weights associated with the variables being summed.
Referenced by SumWeightCloneable(), SumWeightCloneable(), SumWeightCloneable(), and SumWeightCloneable().