action
Class Ask

java.lang.Object
  extended by action.Decision
      extended by 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

Constructor Summary
Ask(Seller s)
          Constructor
Ask(Seller s, Good good, java.lang.Double qty, Currency currency, java.lang.Double pr)
          Constructor
 
Method Summary
 Currency getCurrency()
           
 double getPrice()
           
 double getQuantity()
           
 Seller getSeller()
           
 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

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 -
Method Detail

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