|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
This class represents a bidder in the auction. More...
Public Member Functions | |
| Bidder () | |
| The constructor just assigns a unique ID to the bidder. | |
| void | addBid (Bid bid) |
| This method adds a bid to the bidder's list of bids. | |
| int | getBidderID () |
| List< Bid > | getBidsList () |
| boolean | isFake () |
| void | setFake (boolean isFake) |
| String | toString () |
Static Package Attributes | |
| static int | NEXT_ID = 0 |
| Variable used to create a unique ID for each bidder. | |
Private Attributes | |
| int | bidderID |
| ID assigned to this bidder. | |
| List< Bid > | bidsList |
| List of bids this bidder has placed. | |
| boolean | isFake |
| True if this bidder is a fake bidder (owned by an auctioneer to set its reserve price). | |
This class represents a bidder in the auction.
| frodo2.benchmarks.auctions.cats.Bidder.Bidder | ( | ) |
| void frodo2.benchmarks.auctions.cats.Bidder.addBid | ( | Bid | bid | ) |
This method adds a bid to the bidder's list of bids.
| bid | Bid to add |
References bidsList.
Referenced by frodo2.benchmarks.auctions.cats.Auction.addBid().
| int frodo2.benchmarks.auctions.cats.Bidder.getBidderID | ( | ) |
References bidderID.
Referenced by frodo2.benchmarks.auctions.xcsp.Constraints.addEqualityConstraintsOnBids(), frodo2.benchmarks.auctions.xcsp.Constraints.addEqualityConstraintsOnGoods(), and frodo2.benchmarks.auctions.xcsp.Constraints.getVarNamesFromBidder().
| List< Bid > frodo2.benchmarks.auctions.cats.Bidder.getBidsList | ( | ) |
References bidsList.
Referenced by frodo2.benchmarks.auctions.xcsp.Relations.createUtilityMappingByBidder(), and frodo2.benchmarks.auctions.xcsp.Instance.getGoodsScopeByBidder().
| boolean frodo2.benchmarks.auctions.cats.Bidder.isFake | ( | ) |
References isFake.
| void frodo2.benchmarks.auctions.cats.Bidder.setFake | ( | boolean | isFake | ) |
| isFake | true if the bidder is a fake one |
References isFake.
Referenced by frodo2.benchmarks.auctions.main.CATSToXCSP.addBid().
| String frodo2.benchmarks.auctions.cats.Bidder.toString | ( | ) |
|
private |
ID assigned to this bidder.
Referenced by Bidder(), and getBidderID().
|
private |
List of bids this bidder has placed.
Referenced by addBid(), Bidder(), and getBidsList().
|
private |
|
staticpackage |
Variable used to create a unique ID for each bidder.
Referenced by frodo2.benchmarks.auctions.cats.Auction.Auction(), and Bidder().