|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cocome.tradingsystem.systests.util.GeneratedStockItem
public final class GeneratedStockItem
Simple storage class for generated products.
Field Summary | |
---|---|
(package private) int |
amount
The amount currently on stock. |
(package private) int |
maxAmount
The amount theat could be at maximum in the store. |
(package private) int |
minAmount
The amount theat should be at least available in the store. |
(package private) GeneratedProduct |
product
The product this item is from. |
(package private) int |
salesPrice
The sales price in cents. |
Constructor Summary | |
---|---|
GeneratedStockItem(GeneratedProduct product,
int salesPrice,
int amount,
int minAmount,
int maxAmount)
Create a new instance. |
Method Summary | |
---|---|
int |
getAmount()
Returns the amount currently on stock. |
int |
getMaxAmount()
Returns the maximum amount of products possible to keep in stock |
int |
getMinAmount()
Returns the amount theat should be at least available in the store. |
GeneratedProduct |
getProduct()
Returns the product this item is from. |
int |
getSalesPrice()
Returns the sales price in cents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final GeneratedProduct product
final int salesPrice
final int amount
final int minAmount
final int maxAmount
Constructor Detail |
---|
GeneratedStockItem(GeneratedProduct product, int salesPrice, int amount, int minAmount, int maxAmount)
Method Detail |
---|
public int getAmount()
public int getMinAmount()
public GeneratedProduct getProduct()
public int getSalesPrice()
public int getMaxAmount()
|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |