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

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

Inheritance diagram for org.jacop.constraints.ElementIntegerCloneable:

Public Member Functions

 ElementIntegerCloneable (IntVarCloneable index, ArrayList< Integer > values, IntVarCloneable value)
 Constructor.
 ElementIntegerCloneable (IntVarCloneable index, int[] list, IntVarCloneable value)
 Constructor.
 ElementIntegerCloneable (IntVarCloneable index, int[] list, IntVarCloneable value, int indexOffset)
 Constructor.
 ElementIntegerCloneable (IntVarCloneable index, ArrayList< Integer > values, IntVarCloneable value, int shift)
 Constructor.
 ElementIntegerCloneable (IntVarCloneable index, int[] values, IntVarCloneable value, int shift, boolean checkDuplicates)
 Constructor.
 ElementIntegerCloneable (IntVarCloneable index, ArrayList< Integer > values, IntVarCloneable value, int shift, boolean checkDuplicates)
 Constructor.
ElementIntegerCloneable cloneInto (StoreCloneable targetStore) throws FailException
Public Member Functions inherited from org.jacop.constraints.ConstraintCloneableInterface< ElementIntegerCloneable >
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.

Detailed Description

A cloneable version of the ElementInteger constraint.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ ElementIntegerCloneable() [1/6]

org.jacop.constraints.ElementIntegerCloneable.ElementIntegerCloneable ( IntVarCloneable index,
ArrayList< Integer > values,
IntVarCloneable value )

Constructor.

Parameters
indexthe index variable
valuesthe list of allowed values, indexed by the index variable
valuethe variable whose value is constrained to be = values[index]

Referenced by cloneInto().

◆ ElementIntegerCloneable() [2/6]

org.jacop.constraints.ElementIntegerCloneable.ElementIntegerCloneable ( IntVarCloneable index,
int[] list,
IntVarCloneable value )

Constructor.

Parameters
indexthe index variable
listthe list of allowed values, indexed by the index variable
valuethe variable whose value is constrained to be = list[index - indexOffset]

◆ ElementIntegerCloneable() [3/6]

org.jacop.constraints.ElementIntegerCloneable.ElementIntegerCloneable ( IntVarCloneable index,
int[] list,
IntVarCloneable value,
int indexOffset )

Constructor.

Parameters
indexthe index variable
listthe list of allowed values, indexed by the index variable
valuethe variable whose value is constrained to be = list[index - indexOffset]
indexOffsetthe index offset

◆ ElementIntegerCloneable() [4/6]

org.jacop.constraints.ElementIntegerCloneable.ElementIntegerCloneable ( IntVarCloneable index,
ArrayList< Integer > values,
IntVarCloneable value,
int shift )

Constructor.

Parameters
indexthe index variable
valuesthe list of allowed values, indexed by the index variable
valuethe variable whose value is constrained to be = values[index]
shiftthe index shift

◆ ElementIntegerCloneable() [5/6]

org.jacop.constraints.ElementIntegerCloneable.ElementIntegerCloneable ( IntVarCloneable index,
int[] values,
IntVarCloneable value,
int shift,
boolean checkDuplicates )

Constructor.

Parameters
indexthe index variable
valuesthe list of allowed values, indexed by the index variable
valuethe variable whose value is constrained to be = values[index - shift]
shiftthe index shift
checkDuplicatesinforms whether to create duplicates list for values from list (default = true).

◆ ElementIntegerCloneable() [6/6]

org.jacop.constraints.ElementIntegerCloneable.ElementIntegerCloneable ( IntVarCloneable index,
ArrayList< Integer > values,
IntVarCloneable value,
int shift,
boolean checkDuplicates )

Constructor.

Parameters
indexthe index variable
valuesthe list of allowed values, indexed by the index variable
valuethe variable whose value is constrained to be = values[index - shift]
shiftthe index shift
checkDuplicatesinforms whether to create duplicates list for values from list (default = true).

Member Function Documentation

◆ cloneInto()

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

References ElementIntegerCloneable().

Here is the call graph for this function:

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