FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.benchmarks.auctions.xcsp.Constraint Class Reference

This class is used to generate 'constraint' tags in the output XML file. More...

Inheritance diagram for frodo2.benchmarks.auctions.xcsp.Constraint:

Public Member Functions

 Constraint (String name, String arity, String scope, String reference)
 The constructor calls the super class constructor to define the name of the tag this class represents, and assigns the instance variables.
 Constraint (String name, String arity, String scope, String reference, String owner)
 The constructor calls the super class constructor to define the name of the tag this class represents, and assigns the instance variables.
String getOwner ()
void create (boolean sumDecomposition)
 This method adds all the instance variables as attributes, so they will be included in the 'constraint' XML element.

Private Attributes

String name
 Name of the constraint.
String arity
 Arity of the constraint, i.e.
String scope
 Scope of the constraint, i.e.
String reference
 Name of the relation applied to this constraint.
String owner
 The owner agent, if any.

Static Private Attributes

static final long serialVersionUID = -486029672066351846L
 Classes extending Element should declare a serial Version UID.

Detailed Description

This class is used to generate 'constraint' tags in the output XML file.

Author
Andreas Schaedeli, Thomas Leaute

Constructor & Destructor Documentation

◆ Constraint() [1/2]

frodo2.benchmarks.auctions.xcsp.Constraint.Constraint ( String name,
String arity,
String scope,
String reference )

The constructor calls the super class constructor to define the name of the tag this class represents, and assigns the instance variables.

Parameters
nameName of the constraint
arityArity of the constraint
scopeScope of the constraint
referenceName of the relation applied to this constraint

References arity, name, reference, and scope.

◆ Constraint() [2/2]

frodo2.benchmarks.auctions.xcsp.Constraint.Constraint ( String name,
String arity,
String scope,
String reference,
String owner )

The constructor calls the super class constructor to define the name of the tag this class represents, and assigns the instance variables.

Parameters
nameName of the constraint
arityArity of the constraint
scopeScope of the constraint
referenceName of the relation applied to this constraint
ownerThe owner agent, if any

References arity, name, owner, reference, and scope.

Member Function Documentation

◆ create()

void frodo2.benchmarks.auctions.xcsp.Constraint.create ( boolean sumDecomposition)

This method adds all the instance variables as attributes, so they will be included in the 'constraint' XML element.

Parameters
sumDecompositiontrue if sum constraints should be intensional instead of extensional

References arity, frodo2.benchmarks.auctions.xcsp.SumParameters.create(), name, reference, and scope.

Here is the call graph for this function:

◆ getOwner()

String frodo2.benchmarks.auctions.xcsp.Constraint.getOwner ( )
Returns
the owner agent, if any

Member Data Documentation

◆ arity

String frodo2.benchmarks.auctions.xcsp.Constraint.arity
private

Arity of the constraint, i.e.

number of variables over which the constraint spans

Referenced by Constraint(), Constraint(), and create().

◆ name

String frodo2.benchmarks.auctions.xcsp.Constraint.name
private

Name of the constraint.

Referenced by Constraint(), Constraint(), and create().

◆ owner

String frodo2.benchmarks.auctions.xcsp.Constraint.owner
private

The owner agent, if any.

Referenced by Constraint().

◆ reference

String frodo2.benchmarks.auctions.xcsp.Constraint.reference
private

Name of the relation applied to this constraint.

Referenced by Constraint(), Constraint(), and create().

◆ scope

String frodo2.benchmarks.auctions.xcsp.Constraint.scope
private

Scope of the constraint, i.e.

names of the variables over which the constraint spans

Referenced by Constraint(), Constraint(), and create().

◆ serialVersionUID

final long frodo2.benchmarks.auctions.xcsp.Constraint.serialVersionUID = -486029672066351846L
staticprivate

Classes extending Element should declare a serial Version UID.


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