GridSim 5.0 beta

gridsim.auction
Class MessageRejectCallForBid

Object
  extended by Message
      extended by MessageRejectCallForBid

public class MessageRejectCallForBid
extends Message

This class represents a reject of call for bids sent by the bidder to the auctioneer

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
MessageRejectCallForBid(int auctionID, int protocol, int cfpID, int bidder, int round)
          Constructor
 
Method Summary
 int getBidder()
          Returns the bidder's ID
 int getCfpID()
          Returns the CFP's ID
 int getRound()
          Returns the round
 boolean setBidder(int bidder)
          Sets the bidder's ID or source of the 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

MessageRejectCallForBid

public MessageRejectCallForBid(int auctionID,
                               int protocol,
                               int cfpID,
                               int bidder,
                               int round)
Constructor

Parameters:
auctionID - the auction this message refers to
protocol - the auction protocol in use
cfpID - the CFP this message is a response to
bidder - the bidder or source that is sending the message
round - the round it refers to
Method Detail

getCfpID

public int getCfpID()
Returns the CFP's ID

Returns:
the CFP's ID

getRound

public int getRound()
Returns the round

Returns:
the round

setBidder

public boolean setBidder(int bidder)
Sets the bidder's ID or source of the message

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

getBidder

public int getBidder()
Returns the bidder's ID

Returns:
the bidder'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