|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
This class is used to generate the 'instance' tag in the output XML file. More...

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. | |
This class is used to generate the 'instance' tag in the output XML file.
| frodo2.benchmarks.auctions.xcsp.Instance.Instance | ( | ) |
Constructor calls the super class constructor with the name for the XML tag.
Referenced by findMaxConstraintArity().
| 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.
| auction | Auction to be transformed into a DCOP |
| methodID | ID of the conversion method to be used |
| discsp | whether bid prices should be ignored, and the output should be a pure DisCSP instance |
| sumDecomposition | true if sum constraints should be intensional instead of extensional |
| intensional | whether all constraints should be intensional |
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().

|
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.
| auction | Auction instance |
| method | ID of conversion method to be applied |
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().

|
static |
| good | Good instance |
References frodo2.benchmarks.auctions.cats.Good.getBidsList().
Referenced by frodo2.benchmarks.auctions.xcsp.Constraints.create(), and frodo2.benchmarks.auctions.xcsp.Variables.create().

|
static |
| bidder | Bidder instance |
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().

|
staticprivate |
Classes extending Element should declare a serial Version UID.