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

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

Inheritance diagram for org.jacop.constraints.StretchCloneable:

Public Member Functions

 StretchCloneable (int[] dom, int[] minSubSegLength, int[] maxSubSegLength, IntVarCloneable[] vars)
 Constructor.
String toString ()
StretchCloneable cloneInto (StoreCloneable targetStore) throws FailException
List< IntVar > arguments ()
String id ()
List< Constraint > decompose (Store store)
Public Member Functions inherited from org.jacop.constraints.ConstraintCloneableInterface< StretchCloneable >
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 String id
 This constraint's ID/name.

Static Private Attributes

static int idNbr = 0
 Used to increment the id of constraints.

Detailed Description

A cloneable version of the Stretch constraint.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ StretchCloneable()

org.jacop.constraints.StretchCloneable.StretchCloneable ( int[] dom,
int[] minSubSegLength,
int[] maxSubSegLength,
IntVarCloneable[] vars )

Constructor.

Parameters
domthe domain of values allowed for the variables
minSubSegLengthfor each allowed variable value, the minimum length of any sequence of this value
maxSubSegLengthfor each allowed variable value, the maximum length of any sequence of this value
varsthe variables being stretched

References idNbr.

Referenced by cloneInto().

Member Function Documentation

◆ arguments()

List< IntVar > org.jacop.constraints.StretchCloneable.arguments ( )

◆ cloneInto()

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

References StretchCloneable().

Here is the call graph for this function:

◆ decompose()

List< Constraint > org.jacop.constraints.StretchCloneable.decompose ( Store store)
See also
org.jacop.constraints.Stretch#decompose(org.jacop.core.Store)

◆ id()

String org.jacop.constraints.StretchCloneable.id ( )

◆ toString()

String org.jacop.constraints.StretchCloneable.toString ( )
See also
java.lang.Object#toString()

Member Data Documentation

◆ id

final String org.jacop.constraints.StretchCloneable.id
private

This constraint's ID/name.

◆ idNbr

int org.jacop.constraints.StretchCloneable.idNbr = 0
staticprivate

Used to increment the id of constraints.

Referenced by StretchCloneable().


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