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

This class is used to generate the 'variables' tag in the output XML file. More...

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

Public Member Functions

 Variables ()
 The constructor first calls the super class constructor to define the name of the tag this class represents, then initializes an empty list of variables.
void create (Auction auction, int methodID)
 This method generates all the variables used to solve this DCOP.
List< VariablegetVariables ()

Private Attributes

List< Variablevariables
 List of variables of this DCOP.

Static Private Attributes

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

Detailed Description

This class is used to generate the 'variables' tag in the output XML file.

Author
Andreas Schaedeli

Constructor & Destructor Documentation

◆ Variables()

frodo2.benchmarks.auctions.xcsp.Variables.Variables ( )

The constructor first calls the super class constructor to define the name of the tag this class represents, then initializes an empty list of variables.

References variables.

Member Function Documentation

◆ create()

void frodo2.benchmarks.auctions.xcsp.Variables.create ( Auction auction,
int methodID )

This method generates all the variables used to solve this DCOP.

As the number and types of the variables depend on the method, there is a switch on the method ID

Parameters
auctionAuction instance
methodIDID of conversion method to be applied

References frodo2.benchmarks.auctions.cats.Auction.getBidders(), frodo2.benchmarks.auctions.xcsp.Instance.getBiddersScopeByGood(), frodo2.benchmarks.auctions.cats.Auction.getBids(), frodo2.benchmarks.auctions.cats.Auction.getGoods(), frodo2.benchmarks.auctions.xcsp.Instance.getGoodsScopeByBidder(), and variables.

Referenced by frodo2.benchmarks.auctions.xcsp.Instance.create().

Here is the call graph for this function:

◆ getVariables()

List< Variable > frodo2.benchmarks.auctions.xcsp.Variables.getVariables ( )
Returns
List of variables

References variables.

Referenced by frodo2.benchmarks.auctions.xcsp.Instance.create().

Member Data Documentation

◆ serialVersionUID

final long frodo2.benchmarks.auctions.xcsp.Variables.serialVersionUID = -4886368853280176832L
staticprivate

Classes extending Element should declare a serial Version UID.

◆ variables

List<Variable> frodo2.benchmarks.auctions.xcsp.Variables.variables
private

List of variables of this DCOP.

Referenced by create(), getVariables(), and Variables().


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