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

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< BidgetBidsList ()
double getReservePrice ()
void setReservePrice (double reservePrice)
String toString ()

Private Attributes

int goodID
 Unique ID of the good.
List< BidbidsList
 List of bids placed on this good.
double reservePrice
 Minimal price for this good.

Detailed Description

This class represents a good sold in the auction.

Author
Andreas Schaedeli

Constructor & Destructor Documentation

◆ Good()

frodo2.benchmarks.auctions.cats.Good.Good ( int goodID)

The constructor assigns the ID to the good and initializes an empty list for the bids.

Parameters
goodIDID of the good

References bidsList, goodID, and reservePrice.

Member Function Documentation

◆ addBid()

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

This method adds a bid placed on this good.

Parameters
bidBid in which this good appears

References bidsList.

◆ getBidsList()

List< Bid > frodo2.benchmarks.auctions.cats.Good.getBidsList ( )
Returns
List of bids containing this good

References bidsList.

Referenced by frodo2.benchmarks.auctions.xcsp.Instance.getBiddersScopeByGood().

◆ getGoodID()

int frodo2.benchmarks.auctions.cats.Good.getGoodID ( )
Returns
This good's ID

References goodID.

Referenced by frodo2.benchmarks.auctions.xcsp.Constraints.getVarNamesFromGood().

◆ getReservePrice()

double frodo2.benchmarks.auctions.cats.Good.getReservePrice ( )
Returns
The reserve price of this good

References reservePrice.

◆ setReservePrice()

void frodo2.benchmarks.auctions.cats.Good.setReservePrice ( double reservePrice)
Parameters
reservePricethe new reserve price for the good

References reservePrice.

◆ toString()

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

Member Data Documentation

◆ bidsList

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

List of bids placed on this good.

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

◆ goodID

int frodo2.benchmarks.auctions.cats.Good.goodID
private

Unique ID of the good.

Referenced by getGoodID(), and Good().

◆ reservePrice

double frodo2.benchmarks.auctions.cats.Good.reservePrice
private

Minimal price for this good.

Referenced by getReservePrice(), Good(), and setReservePrice().


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