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

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

Inheritance diagram for org.jacop.constraints.SoftAlldifferentCloneable:

Classes

class  SoftAlldiffBuilderCloneable
 A NetworkBuilder for SoftAlldifferent. More...

Public Member Functions

 SoftAlldifferentCloneable (IntVarCloneable[] xVars, IntVarCloneable costVar, ViolationMeasure violationMeasure)
 Constructor.
SoftAlldifferentCloneable cloneInto (StoreCloneable targetStore) throws FailException
List< IntVar > arguments ()
String id ()
List< Constraint > decompose (Store store)
Public Member Functions inherited from org.jacop.constraints.ConstraintCloneableInterface< SoftAlldifferentCloneable >
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 SoftAllDifferent constraint.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ SoftAlldifferentCloneable()

org.jacop.constraints.SoftAlldifferentCloneable.SoftAlldifferentCloneable ( IntVarCloneable[] xVars,
IntVarCloneable costVar,
ViolationMeasure violationMeasure )

Constructor.

Parameters
xVarsthe variables that should all be different
costVarthe cost variable
violationMeasurethe violation measure

References idNbr.

Referenced by cloneInto().

Member Function Documentation

◆ arguments()

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

◆ cloneInto()

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

◆ decompose()

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

◆ id()

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

Member Data Documentation

◆ id

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

This constraint's ID/name.

◆ idNbr

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

Used to increment the id of constraints.

Referenced by SoftAlldifferentCloneable().


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