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

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

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

Public Member Functions

 Instance ()
 Constructor calls the super class constructor with the name for the XML tag.
Document create (Auction auction, int methodID, boolean discsp, boolean sumDecomposition, boolean intensional)
 This method builds the content of the "instance" tag.

Static Public Member Functions

static int findMaxConstraintArity (Auction auction, int method)
 This method finds the maximum arity of any constraints in this DCOP.
static List< Integer > getGoodsScopeByBidder (Bidder bidder)
static List< Integer > getBiddersScopeByGood (Good good)

Static Private Attributes

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

Detailed Description

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

Author
Andreas Schaedeli

Constructor & Destructor Documentation

◆ Instance()

frodo2.benchmarks.auctions.xcsp.Instance.Instance ( )

Constructor calls the super class constructor with the name for the XML tag.

Referenced by findMaxConstraintArity().

Member Function Documentation

◆ create()

Document frodo2.benchmarks.auctions.xcsp.Instance.create ( Auction auction,
int methodID,
boolean discsp,
boolean sumDecomposition,
boolean intensional )

This method builds the content of the "instance" tag.

This tag contains an attribute and some child elements.

Parameters
auctionAuction to be transformed into a DCOP
methodIDID of the conversion method to be used
discspwhether bid prices should be ignored, and the output should be a pure DisCSP instance
sumDecompositiontrue if sum constraints should be intensional instead of extensional
intensionalwhether all constraints should be intensional
Returns
Document object that can be written as XML formatted file

References frodo2.benchmarks.auctions.xcsp.Constraints.create(), frodo2.benchmarks.auctions.xcsp.Domains.create(), frodo2.benchmarks.auctions.xcsp.Presentation.create(), frodo2.benchmarks.auctions.xcsp.Relations.create(), frodo2.benchmarks.auctions.xcsp.Variables.create(), frodo2.benchmarks.auctions.xcsp.Constraints.getConstraints(), and frodo2.benchmarks.auctions.xcsp.Variables.getVariables().

Referenced by frodo2.benchmarks.auctions.main.CATSToXCSP.toXCSP().

Here is the call graph for this function:

◆ findMaxConstraintArity()

int frodo2.benchmarks.auctions.xcsp.Instance.findMaxConstraintArity ( Auction auction,
int method )
static

This method finds the maximum arity of any constraints in this DCOP.

This number depends on the conversion method, as each method creates different constraints.

Parameters
auctionAuction instance
methodID of conversion method to be applied
Returns
Maximum constraint arity

References frodo2.benchmarks.auctions.cats.Auction.getBidders(), frodo2.benchmarks.auctions.cats.Auction.getGoods(), getGoodsScopeByBidder(), and Instance().

Referenced by frodo2.benchmarks.auctions.xcsp.Presentation.create(), and frodo2.benchmarks.auctions.xcsp.Relations.create().

Here is the call graph for this function:

◆ getBiddersScopeByGood()

List< Integer > frodo2.benchmarks.auctions.xcsp.Instance.getBiddersScopeByGood ( Good good)
static
Parameters
goodGood instance
Returns
List of IDs of all the bidders having placed at least one bid containing the given good

References frodo2.benchmarks.auctions.cats.Good.getBidsList().

Referenced by frodo2.benchmarks.auctions.xcsp.Constraints.create(), and frodo2.benchmarks.auctions.xcsp.Variables.create().

Here is the call graph for this function:

◆ getGoodsScopeByBidder()

List< Integer > frodo2.benchmarks.auctions.xcsp.Instance.getGoodsScopeByBidder ( Bidder bidder)
static
Parameters
bidderBidder instance
Returns
List of IDs of all the goods that are contained in at least one bid placed by the given bidder

References frodo2.benchmarks.auctions.cats.Bidder.getBidsList().

Referenced by frodo2.benchmarks.auctions.xcsp.Constraints.addEqualityConstraintsOnGoods(), frodo2.benchmarks.auctions.xcsp.Constraints.create(), frodo2.benchmarks.auctions.xcsp.Relations.create(), frodo2.benchmarks.auctions.xcsp.Variables.create(), and findMaxConstraintArity().

Here is the call graph for this function:

Member Data Documentation

◆ serialVersionUID

final long frodo2.benchmarks.auctions.xcsp.Instance.serialVersionUID = -3048277817601121098L
staticprivate

Classes extending Element should declare a serial Version UID.


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