action
Class Bid

java.lang.Object
  extended by action.Decision
      extended by action.Bid

public class Bid
extends Decision

Bid objects are decisions designed just for Buyers. When created a Buyer, Good, amount of the Good, Currency and amount of the Currency must be specified.

Author:
tratch

Constructor Summary
Bid(Buyer b)
          Constructor
Bid(Buyer b, Good good, double qty, Currency currency, double pr)
          Constructor
 
Method Summary
 Buyer getBuyer()
           
 Currency getCurrency()
           
 double getPrice()
           
 double getQuantity()
           
 Good getTradedGood()
           
 void setCurrency(Currency c)
           
 void setPrice(double price)
           
 void setQuantity(double qty)
           
 void setTradedGood(Good g)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bid

public Bid(Buyer b)
Constructor

Parameters:
b -

Bid

public Bid(Buyer b,
           Good good,
           double qty,
           Currency currency,
           double pr)
Constructor

Parameters:
b -
good -
qty -
currency -
pr -
Method Detail

getBuyer

public Buyer getBuyer()
Returns:
The buyer

getCurrency

public Currency getCurrency()
Returns:
The currency used

getPrice

public double getPrice()
Returns:
The price chosen

getQuantity

public double getQuantity()
Returns:
The quantity

getTradedGood

public Good getTradedGood()
Returns:
The good being bidded for

setCurrency

public void setCurrency(Currency c)
Parameters:
c -

setPrice

public void setPrice(double price)
Parameters:
price -

setQuantity

public void setQuantity(double qty)
Parameters:
qty -

setTradedGood

public void setTradedGood(Good g)
Parameters:
g -

toString

public java.lang.String toString()
Specified by:
toString in class Decision