|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectMessage
MessageInformOutcome
public class MessageInformOutcome
This class represents an message that informs the outcome of an auction
AuctionTags| Field Summary |
|---|
| Fields inherited from class Message |
|---|
TO_ALL_BIDDERS |
| Constructor Summary | |
|---|---|
MessageInformOutcome(int auctionID,
int protocol,
int winner,
double price)
Constructor |
|
| Method Summary | |
|---|---|
int |
getAuctioneer()
Returns the auctioneer that sent the message |
double |
getPrice()
Returns the price of the outcome |
int |
getWinnerID()
Returns the winner's ID |
boolean |
setAuctioneer(int auctioneer)
Sets the auctioneer that sent the message |
boolean |
setPrice(float price)
Sets the price of the outcome |
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 MessageInformOutcome(int auctionID,
int protocol,
int winner,
double price)
auctionID - the auction this message belongs toprotocol - the auction protocol in usewinner - the winner of the auctionprice - the price paid| Method Detail |
|---|
public boolean setPrice(float price)
price - the price
public double getPrice()
public int getWinnerID()
public boolean setAuctioneer(int auctioneer)
auctioneer - the auctioneer 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 | |||||||||