|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionListener
Interface for classes which listen to transactions in market
Method Summary | |
---|---|
void |
logPurchase(GoodsType goodsType,
int amount,
int price)
Logs a purchase |
void |
logSale(GoodsType goodsType,
int amount,
int price,
int tax)
Logs a sale |
Method Detail |
---|
void logPurchase(GoodsType goodsType, int amount, int price)
goodsType
- The type of goods which have been purchasedamount
- The amount of goods which have been purchasedprice
- The unit price of the goodsvoid logSale(GoodsType goodsType, int amount, int price, int tax)
goodsType
- The type of goods which have been soldamount
- The amount of goods which have been soldprice
- The unit price of the goodstax
- The tax which has been applied
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |