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

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

Inheritance diagram for org.jacop.constraints.ElementVariableCloneable:

Public Member Functions

 ElementVariableCloneable (IntVarCloneable index, ArrayList<? extends IntVarCloneable > list, IntVarCloneable value)
 It constructs an element constraint.
 ElementVariableCloneable (IntVarCloneable index, IntVarCloneable[] list, IntVarCloneable value)
 It constructs an element constraint.
 ElementVariableCloneable (IntVarCloneable index, IntVarCloneable[] list, IntVarCloneable value, int indexOffset)
 Constructor.
 ElementVariableCloneable (IntVarCloneable index, ArrayList<? extends IntVarCloneable > list, IntVarCloneable value, int indexOffset)
 It constructs an element constraint.
ElementVariableCloneable cloneInto (StoreCloneable targetStore) throws FailException
Public Member Functions inherited from org.jacop.constraints.ConstraintCloneableInterface< ElementVariableCloneable >
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 ElementVariable constraint.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ ElementVariableCloneable() [1/4]

org.jacop.constraints.ElementVariableCloneable.ElementVariableCloneable ( IntVarCloneable index,
ArrayList<? extends IntVarCloneable > list,
IntVarCloneable value )

It constructs an element constraint.

Parameters
indexvariable index
listlist of variables from which an index-th element is taken
valuea value of the index-th element from list

Referenced by cloneInto().

◆ ElementVariableCloneable() [2/4]

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

It constructs an element constraint.

Parameters
indexvariable index
listlist of variables from which an index-th element is taken
valuea value of the index-th element from list

◆ ElementVariableCloneable() [3/4]

org.jacop.constraints.ElementVariableCloneable.ElementVariableCloneable ( IntVarCloneable index,
IntVarCloneable[] 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

◆ ElementVariableCloneable() [4/4]

org.jacop.constraints.ElementVariableCloneable.ElementVariableCloneable ( IntVarCloneable index,
ArrayList<? extends IntVarCloneable > list,
IntVarCloneable value,
int indexOffset )

It constructs an element constraint.

Parameters
indexvariable index
listlist of variables from which an index-th element is taken
valuea value of the index-th element from list
indexOffsetshift applied to index variable.

Member Function Documentation

◆ cloneInto()

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

References ElementVariableCloneable().

Here is the call graph for this function:

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