ibspan.ecap.shared.ontology.negotiation
Class BidInfo

java.lang.Object
  extended by ibspan.ecap.shared.ontology.negotiation.BidInfo
All Implemented Interfaces:
jade.content.Concept, jade.content.Term, java.io.Serializable

public class BidInfo
extends java.lang.Object
implements jade.content.Concept

Author:
Micha³ Drozdowicz
See Also:
Serialized Form

Constructor Summary
BidInfo()
           
BidInfo(java.lang.String clientId, java.util.Date offerTime, int quantity, float price, boolean isWinning, ReservationInfo reservation)
           
 
Method Summary
 java.lang.String getClientId()
          Gets the id of the client who made the bid.
 java.util.Date getOfferTime()
          Gets the time the offer was made.
 float getPrice()
          Gets the price offered.
 int getQuantity()
          Gets the quantity offered.
 ReservationInfo getReservation()
          Gets the information about the reservation following the bid.
 boolean isWinning()
          Gets true if the bid was a winning bid and false otherwise.
 void setClientId(java.lang.String clientId)
          Sets the id of the client who made the bid.
 void setOfferTime(java.util.Date offerTime)
          Sets the time the offer was made
 void setPrice(float price)
          Sets the value of price offered.
 void setQuantity(int quantity)
          Sets the quantity offered.
 void setReservation(ReservationInfo reservation)
          Sets the information about the reservation following the bid.
 void setWinning(boolean isWinning)
          Sets whether the bid was a winning bid or not.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BidInfo

public BidInfo(java.lang.String clientId,
               java.util.Date offerTime,
               int quantity,
               float price,
               boolean isWinning,
               ReservationInfo reservation)

BidInfo

public BidInfo()
Method Detail

getOfferTime

public java.util.Date getOfferTime()
Gets the time the offer was made.

Returns:
the time the offer was made

setOfferTime

public void setOfferTime(java.util.Date offerTime)
Sets the time the offer was made

Parameters:
offerTime - the time the offer was made to set

getQuantity

public int getQuantity()
Gets the quantity offered.

Returns:
the quantity offered

setQuantity

public void setQuantity(int quantity)
Sets the quantity offered.

Parameters:
quantity - quantity offered to set

getPrice

public float getPrice()
Gets the price offered.

Returns:
the price offered

setPrice

public void setPrice(float price)
Sets the value of price offered.

Parameters:
price - the price to set

isWinning

public boolean isWinning()
Gets true if the bid was a winning bid and false otherwise.

Returns:
true if the bid was a winning bid and false otherwise.

setWinning

public void setWinning(boolean isWinning)
Sets whether the bid was a winning bid or not.

Parameters:
isWinning - a boolean value of whether the bid was a winning bid or not.

getReservation

public ReservationInfo getReservation()
Gets the information about the reservation following the bid. If the bid wasn't a winning bid, null is returned.

Returns:
the information about the reservation following the bid or null if the bid wasn't a winning bid

setReservation

public void setReservation(ReservationInfo reservation)
Sets the information about the reservation following the bid. If the bid wasn't a winning bid, null should be passed as an argument.

Parameters:
reservation - the information about the reservation following the bid or null if the bid wasn't a winning bid

getClientId

public java.lang.String getClientId()
Gets the id of the client who made the bid.

Returns:
the id of the client who made the bid

setClientId

public void setClientId(java.lang.String clientId)
Sets the id of the client who made the bid.

Parameters:
clientId - the id of the client who made the bid

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object