action
Class Ask
java.lang.Object
action.Decision
action.Ask
public class Ask
- extends Decision
Ask objects are decisions designed just for sellers. When created a Seller, 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 |
Ask
public Ask(Seller s)
- Constructor
- Parameters:
s
-
Ask
public Ask(Seller s,
Good good,
java.lang.Double qty,
Currency currency,
java.lang.Double pr)
- Constructor
- Parameters:
s
- good
- qty
- currency
- pr
-
getCurrency
public Currency getCurrency()
- Returns:
- The Currency Used
getPrice
public double getPrice()
- Returns:
- The Price
getQuantity
public double getQuantity()
- Returns:
- The Quantity
getSeller
public Seller getSeller()
- Returns:
- The Seller
getTradedGood
public Good getTradedGood()
- Returns:
- Good Traded
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