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

A cloneable LinearInt constraint. More...

Inheritance diagram for org.jacop.constraints.LinearIntCloneable:

Public Member Functions

 LinearIntCloneable (IntVarCloneable[] list, int[] weights, String rel, IntVarCloneable sum)
 Constructor.
 LinearIntCloneable (IntVarCloneable[] list, int[] weights, String rel, int sum)
 Constructor.
 LinearIntCloneable (ArrayList<? extends IntVarCloneable > vars, ArrayList< Integer > weights, String rel, int sum)
 Constructor.
LinearIntCloneable cloneInto (StoreCloneable targetStore) throws FailException
Public Member Functions inherited from org.jacop.constraints.ConstraintCloneableInterface< LinearIntCloneable >
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.

Protected Member Functions

 LinearIntCloneable (LinearIntCloneable o, StoreCloneable targetStore) throws FailException
 Constructor used by the cloneInto() method.

Detailed Description

A cloneable LinearInt constraint.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ LinearIntCloneable() [1/4]

org.jacop.constraints.LinearIntCloneable.LinearIntCloneable ( IntVarCloneable[] list,
int[] weights,
String rel,
IntVarCloneable sum )

Constructor.

Parameters
listthe list of variable being summed
weightsthe summation weights
relthe relation name
sumthe total sum variable

Referenced by cloneInto(), and LinearIntCloneable().

◆ LinearIntCloneable() [2/4]

org.jacop.constraints.LinearIntCloneable.LinearIntCloneable ( IntVarCloneable[] list,
int[] weights,
String rel,
int sum )

Constructor.

Parameters
listthe list of variable being summed
weightsthe summation weights
relthe relation name
sumthe total sum constant

◆ LinearIntCloneable() [3/4]

org.jacop.constraints.LinearIntCloneable.LinearIntCloneable ( ArrayList<? extends IntVarCloneable > vars,
ArrayList< Integer > weights,
String rel,
int sum )

Constructor.

Parameters
varsthe variables
weightsthe weights
relthe relation, one of "==", "@iliteral < @endiliteral ", "@iliteral > @endiliteral ", "@iliteral < @endiliteral =", "@iliteral > @endiliteral =", "!="
sumthe constant with which the weighted sum should be compared

◆ LinearIntCloneable() [4/4]

org.jacop.constraints.LinearIntCloneable.LinearIntCloneable ( LinearIntCloneable o,
StoreCloneable targetStore ) throws FailException
protected

Constructor used by the cloneInto() method.

Parameters
oa LinearIntCloneable constraint to be cloned
targetStorethe store to be cloned into
Exceptions
FailExceptionthrown if one of the variables has an empty domain

References LinearIntCloneable().

Here is the call graph for this function:

Member Function Documentation

◆ cloneInto()

LinearIntCloneable org.jacop.constraints.LinearIntCloneable.cloneInto ( StoreCloneable targetStore) throws FailException

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