action
Class Bid
java.lang.Object
action.Decision
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
-
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