|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Message MessageBid
public class MessageBid
This class represents a bid made by a bidder to the auctioneer
AuctionTags
Field Summary |
---|
Fields inherited from class Message |
---|
TO_ALL_BIDDERS |
Constructor Summary | |
---|---|
MessageBid(int auctionID,
int protocol,
int cfpID,
int bidder)
Constructor |
|
MessageBid(int auctionID,
int protocol,
int cfpID,
int bidder,
int round)
Constructor |
Method Summary | |
---|---|
int |
getBidder()
Returns the bidder or source of this bid |
int |
getCfpID()
Returns the Call for Proposal's ID the bid refers to |
double |
getPrice()
Returns the price offered in the bid |
int |
getRound()
Returns the round the bid refers to |
boolean |
setBidder(int bidder)
Set the bidder or source of this bid |
boolean |
setPrice(double price)
Sets the price offered in the bid |
boolean |
setRound(int round)
Sets the round the bid refers to |
String |
toString()
Converts message to String |
Methods inherited from class Message |
---|
getAttribute, getAttributes, getAuctionID, getDestinationID, getMessageID, getProtocol, getScheduleTime, getSourceID, scheduleToBeSent, setAttribute, setAttributes, setAuctionID, setDestinationID, setMessageID, setProtocol, setSourceID |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageBid(int auctionID, int protocol, int cfpID, int bidder, int round)
auctionID
- the auction to which this bid belongsprotocol
- the protocol usedcfpID
- the call for proposal to which this bid is a responsebidder
- the bidder that is making this bidround
- the round the bid refers topublic MessageBid(int auctionID, int protocol, int cfpID, int bidder)
auctionID
- the auction to which this bid belongsprotocol
- the protocol usedcfpID
- the call for proposal to which this bid is a responsebidder
- the bidder that is making this bidMethod Detail |
---|
public boolean setPrice(double price)
price
- the price
public double getPrice()
public int getCfpID()
public boolean setRound(int round)
round
- the round
public int getRound()
public boolean setBidder(int bidder)
bidder
- the GridSim of the bidder
public int getBidder()
public String toString()
toString
in class Message
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |