GridSim 5.0 beta

gridsim.auction
Class MessageInformStart

Object
  extended by Message
      extended by MessageInformStart

public class MessageInformStart
extends Message

This class represents a message that is sent by the auctioneer to bidders when an auction starts

Since:
GridSim Toolkit 4.0
Author:
Marcos Dias de Assuncao
See Also:
AuctionTags

Field Summary
 
Fields inherited from class Message
TO_ALL_BIDDERS
 
Constructor Summary
MessageInformStart(int auctionID, int protocol)
          Constructor
 
Method Summary
 int getAuctioneer()
          Returns the auctioneer or source of this message
 boolean setAuctioneer(int auctioneer)
          Sets the auctioneer or source of this message
 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

MessageInformStart

public MessageInformStart(int auctionID,
                          int protocol)
Constructor

Parameters:
auctionID - The auction this message belongs to
protocol - the auction protocol in use
Method Detail

setAuctioneer

public boolean setAuctioneer(int auctioneer)
Sets the auctioneer or source of this message

Parameters:
auctioneer - the auctioeer's ID
Returns:
true if the auctioneer is properly set
Pre Condition:
bidder == some GridSim entity's id

getAuctioneer

public int getAuctioneer()
Returns the auctioneer or source of this message

Returns:
the auctioneer's ID

toString

public String toString()
Converts message to String

Overrides:
toString in class Message
Returns:
the string representation of the message

GridSim 5.0 beta

The University of Melbourne, Australia, 2009