|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Message MessageCallForBids
public class MessageCallForBids
This class represents an call for bids sent by the auctioneer
AuctionTags
Field Summary |
---|
Fields inherited from class Message |
---|
TO_ALL_BIDDERS |
Constructor Summary | |
---|---|
MessageCallForBids(int auctionID,
int protocol,
double price,
int round)
Constructor |
|
MessageCallForBids(int auctionID,
int protocol,
float price)
Constructor |
Method Summary | |
---|---|
int |
getAuctioneer()
Returns the auctioneer that sent the CFP |
double |
getPrice()
Returns the price of the CFP |
int |
getRound()
Returns the round the CFP refers to |
boolean |
setAuctioneer(int auctioneer)
Sets the auctioneer or source of the CFP |
boolean |
setPrice(float price)
Sets the price of the CFP |
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 MessageCallForBids(int auctionID, int protocol, double price, int round)
auctionID
- the this CFP belongs toprotocol
- the protocol usedprice
- the price of this CFPround
- the round this CFP refers topublic MessageCallForBids(int auctionID, int protocol, float price)
auctionID
- the this CFP belongs toprotocol
- the protocol usedprice
- the price of this CFPMethod Detail |
---|
public boolean setPrice(float price)
price
- the price
public double getPrice()
public int getRound()
public boolean setAuctioneer(int auctioneer)
auctioneer
- the auctioneer's ID
public int getAuctioneer()
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 |