de.upb.swtpra05.group03.shuttle.messages
Class OfferPriceMessage

java.lang.Object
  extended byde.upb.swtpra.kernel.message.Message
      extended byde.upb.swtpra.kernel.message.ShuttleToShuttleMessage
          extended byde.upb.swtpra05.group03.shuttle.messages.OfferPriceMessage

public class OfferPriceMessage
extends de.upb.swtpra.kernel.message.ShuttleToShuttleMessage

Version:
$Revision: 1.3 $

Field Summary
(package private)  int offerPrice
          The selfcosts of the sender shuttle
(package private)  int orderId
          The id of the order
 
Fields inherited from class de.upb.swtpra.kernel.message.ShuttleToShuttleMessage
 
Fields inherited from class de.upb.swtpra.kernel.message.Message
ALLSHUTTLES
 
Constructor Summary
OfferPriceMessage(de.upb.swtpra.kernel.id.ID senderID, de.upb.swtpra.kernel.id.ID receiverID, int orderId, int offerPrice)
           
 
Method Summary
 int getOfferPrice()
           
 int getOrderId()
           
 
Methods inherited from class de.upb.swtpra.kernel.message.ShuttleToShuttleMessage
getMessage
 
Methods inherited from class de.upb.swtpra.kernel.message.Message
getReceiverID, getSenderID, isValid, setReceiverID, setSenderID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offerPrice

final int offerPrice
The selfcosts of the sender shuttle


orderId

final int orderId
The id of the order

Constructor Detail

OfferPriceMessage

public OfferPriceMessage(de.upb.swtpra.kernel.id.ID senderID,
                         de.upb.swtpra.kernel.id.ID receiverID,
                         int orderId,
                         int offerPrice)
Parameters:
senderID - The ShuttleAgentID of sender shuttle
receiverID - The ShuttleAgentID of receiver shuttle
orderId - The id of the order
offerPrice - The selfcosts of sender shuttle for the order
Method Detail

getOrderId

public int getOrderId()
Returns:
Returns the id of the order

getOfferPrice

public int getOfferPrice()
Returns:
Returns the selfcosts of the sender shuttle.