FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
org.jacop.constraints.SumWeightCloneable Class Reference

A cloneable version of the SumWeight constraint. More...

Inheritance diagram for org.jacop.constraints.SumWeightCloneable:

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.

Detailed Description

A cloneable version of the SumWeight constraint.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ SumWeightCloneable() [1/4]

org.jacop.constraints.SumWeightCloneable.SumWeightCloneable ( IntVarCloneable[] list,
int[] weights,
IntVarCloneable sum )

Constructor.

Parameters
listthe list of variables
weightsthe list of weights
sumthe total sum variable

References list, sum, and weights.

Referenced by cloneInto().

◆ SumWeightCloneable() [2/4]

org.jacop.constraints.SumWeightCloneable.SumWeightCloneable ( IntVarCloneable[] list,
int[] weights,
int equalTo )

Constructor.

Parameters
listthe list of varibales
weightsthe list of weights
equalTothe value to which SumWeight is equal to.

References equalTo, list, and weights.

◆ SumWeightCloneable() [3/4]

org.jacop.constraints.SumWeightCloneable.SumWeightCloneable ( List<? extends IntVarCloneable > variables,
List< Integer > weights,
IntVarCloneable sum )

Constructor.

Parameters
variablesvariables which are being multiplied by weights.
weightsweight for each variable.
sumvariable containing the sum of weighted variables.

References sum, and weights.

◆ SumWeightCloneable() [4/4]

org.jacop.constraints.SumWeightCloneable.SumWeightCloneable ( ArrayList<? extends IntVarCloneable > list,
ArrayList< Integer > weights,
IntVarCloneable sum )

Constructor.

Parameters
listthe list of variables
weightsthe list of weights
sumthe total sum variable

References list, sum, and weights.

Member Function Documentation

◆ cloneInto()

SumWeightCloneable org.jacop.constraints.SumWeightCloneable.cloneInto ( StoreCloneable targetStore) throws FailException
See also
ConstraintCloneableInterface.cloneInto(StoreCloneable)

References SumWeightCloneable().

Here is the call graph for this function:

Member Data Documentation

◆ equalTo

final long org.jacop.constraints.SumWeightCloneable.equalTo
private

It specifies value to which SumWeight is equal to.

Referenced by SumWeightCloneable().

◆ list

final IntVarCloneable org.jacop.constraints.SumWeightCloneable.list[]
private

It specifies a list of variables being summed.

Referenced by SumWeightCloneable(), SumWeightCloneable(), and SumWeightCloneable().

◆ sum

final IntVarCloneable org.jacop.constraints.SumWeightCloneable.sum
private

The sum variable originally passed to the constructor.

Referenced by SumWeightCloneable(), SumWeightCloneable(), and SumWeightCloneable().

◆ weights

final int org.jacop.constraints.SumWeightCloneable.weights[]
private

It specifies a list of weights associated with the variables being summed.

Referenced by SumWeightCloneable(), SumWeightCloneable(), SumWeightCloneable(), and SumWeightCloneable().


The documentation for this class was generated from the following file: