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

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< BidgetBidsList ()
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< BidbidsList
 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).

Detailed Description

This class represents a bidder in the auction.

Author
Andreas Schaedeli

Constructor & Destructor Documentation

◆ Bidder()

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

The constructor just assigns a unique ID to the bidder.

References bidderID, bidsList, isFake, and NEXT_ID.

Member Function Documentation

◆ addBid()

void frodo2.benchmarks.auctions.cats.Bidder.addBid ( Bid bid)

This method adds a bid to the bidder's list of bids.

Parameters
bidBid to add

References bidsList.

Referenced by frodo2.benchmarks.auctions.cats.Auction.addBid().

◆ getBidderID()

◆ getBidsList()

List< Bid > frodo2.benchmarks.auctions.cats.Bidder.getBidsList ( )

◆ isFake()

boolean frodo2.benchmarks.auctions.cats.Bidder.isFake ( )
Returns
true if the bidder is a fake bidder

References isFake.

◆ setFake()

void frodo2.benchmarks.auctions.cats.Bidder.setFake ( boolean isFake)
Parameters
isFaketrue if the bidder is a fake one

References isFake.

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

◆ toString()

String frodo2.benchmarks.auctions.cats.Bidder.toString ( )
See also
java.lang.Object#toString()
Author
Thomas Leaute

Member Data Documentation

◆ bidderID

int frodo2.benchmarks.auctions.cats.Bidder.bidderID
private

ID assigned to this bidder.

Referenced by Bidder(), and getBidderID().

◆ bidsList

List<Bid> frodo2.benchmarks.auctions.cats.Bidder.bidsList
private

List of bids this bidder has placed.

Referenced by addBid(), Bidder(), and getBidsList().

◆ isFake

boolean frodo2.benchmarks.auctions.cats.Bidder.isFake
private

True if this bidder is a fake bidder (owned by an auctioneer to set its reserve price).

Referenced by Bidder(), isFake(), and setFake().

◆ NEXT_ID

int frodo2.benchmarks.auctions.cats.Bidder.NEXT_ID = 0
staticpackage

Variable used to create a unique ID for each bidder.

Referenced by frodo2.benchmarks.auctions.cats.Auction.Auction(), and Bidder().


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