|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
This class represents a good sold in the auction. More...
Public Member Functions | |
| Good (int goodID) | |
| The constructor assigns the ID to the good and initializes an empty list for the bids. | |
| void | addBid (Bid bid) |
| This method adds a bid placed on this good. | |
| int | getGoodID () |
| List< Bid > | getBidsList () |
| double | getReservePrice () |
| void | setReservePrice (double reservePrice) |
| String | toString () |
Private Attributes | |
| int | goodID |
| Unique ID of the good. | |
| List< Bid > | bidsList |
| List of bids placed on this good. | |
| double | reservePrice |
| Minimal price for this good. | |
This class represents a good sold in the auction.
| frodo2.benchmarks.auctions.cats.Good.Good | ( | int | goodID | ) |
The constructor assigns the ID to the good and initializes an empty list for the bids.
| goodID | ID of the good |
References bidsList, goodID, and reservePrice.
| void frodo2.benchmarks.auctions.cats.Good.addBid | ( | Bid | bid | ) |
| List< Bid > frodo2.benchmarks.auctions.cats.Good.getBidsList | ( | ) |
References bidsList.
Referenced by frodo2.benchmarks.auctions.xcsp.Instance.getBiddersScopeByGood().
| int frodo2.benchmarks.auctions.cats.Good.getGoodID | ( | ) |
References goodID.
Referenced by frodo2.benchmarks.auctions.xcsp.Constraints.getVarNamesFromGood().
| double frodo2.benchmarks.auctions.cats.Good.getReservePrice | ( | ) |
References reservePrice.
| void frodo2.benchmarks.auctions.cats.Good.setReservePrice | ( | double | reservePrice | ) |
| reservePrice | the new reserve price for the good |
References reservePrice.
| String frodo2.benchmarks.auctions.cats.Good.toString | ( | ) |
|
private |
List of bids placed on this good.
Referenced by addBid(), getBidsList(), and Good().
|
private |
Unique ID of the good.
Referenced by getGoodID(), and Good().
|
private |
Minimal price for this good.
Referenced by getReservePrice(), Good(), and setReservePrice().