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

This class represents a bid placed in an auction. More...

Public Member Functions

 Bid (int bidID, Bidder bidder, double price, List< Good > goodsList)
 The constructor assigns the instance variables of this object.
int getBidID ()
Bidder getBidder ()
double getPrice ()
List< GoodgetGoodsList ()
String toString ()

Private Attributes

int bidID
 ID of the bid; corresponds to position in source file.
Bidder bidder
 Bidder who has placed this bid.
double price
 Price the bidder is willing to pay when this bid wins.
List< GoodgoodsList
 List of goods contained in this bid.

Detailed Description

This class represents a bid placed in an auction.

Author
Andreas Schaedeli

Constructor & Destructor Documentation

◆ Bid()

frodo2.benchmarks.auctions.cats.Bid.Bid ( int bidID,
Bidder bidder,
double price,
List< Good > goodsList )

The constructor assigns the instance variables of this object.

Parameters
bidIDID of the bid
bidderBidder who has placed this bid
pricePrice the bidder would pay if this bid wins
goodsListList of goods contained in this bid

References bidder, bidID, goodsList, and price.

Member Function Documentation

◆ getBidder()

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

◆ getBidID()

int frodo2.benchmarks.auctions.cats.Bid.getBidID ( )

◆ getGoodsList()

List< Good > frodo2.benchmarks.auctions.cats.Bid.getGoodsList ( )

◆ getPrice()

double frodo2.benchmarks.auctions.cats.Bid.getPrice ( )
Returns
Price of this bid

References price.

◆ toString()

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

Member Data Documentation

◆ bidder

Bidder frodo2.benchmarks.auctions.cats.Bid.bidder
private

Bidder who has placed this bid.

Referenced by Bid(), and getBidder().

◆ bidID

int frodo2.benchmarks.auctions.cats.Bid.bidID
private

ID of the bid; corresponds to position in source file.

Referenced by Bid(), and getBidID().

◆ goodsList

List<Good> frodo2.benchmarks.auctions.cats.Bid.goodsList
private

List of goods contained in this bid.

Referenced by Bid(), and getGoodsList().

◆ price

double frodo2.benchmarks.auctions.cats.Bid.price
private

Price the bidder is willing to pay when this bid wins.

Referenced by Bid(), and getPrice().


The documentation for this class was generated from the following file:
  • src/frodo2/benchmarks/auctions/cats/Bid.java