Bid
Bid is the class that contains all the information about a bid.
new Bid(int auction)
Creates a bid that will be submitted to the auction 'auction'.
void addBidPoint(int quantity, float unitPrice)
adds a new bid point to this bid. Note that an exception will be
thrown if you add a bid point with a negative price or
a negative quantity for an auction that does not allow sell bids.
int getNoBidPoints()
returns the number of bid points in this bid.
int getQuantity(int index)
returns the quantity for bid point at index 'index'.
float getPrice(int index)
returns the quantity for bid point at index 'index'.
int getAuction()
returns the auction that this bid is (should be) submitted to.
int getID()
returns the id of this bid. Can be -1 if no ID is set.
boolean isRejected()
true if this bid has been rejected.
int getRejectReason()
returns the reject reason for this bid.
Copyright © 2001-2005
SICS AB. All Rights Reserved.
For more information about the TAC AgentWare
please email tac-dev@sics.se.