|
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.scenarios.TestScenarioBase.StoreWrapper
protected class TestScenarioBase.StoreWrapper
Class holding a store and some management information.
Field Summary | |
---|---|
private java.util.List<ICashDesk> |
cashDesks
The list of cash desks for this store. |
private java.util.Random |
rng
|
private StockGenerator |
stockGenerator
The stock generator used for generator stock items. |
private IStorePC |
storePC
The store PC for the store. |
Constructor Summary | |
---|---|
TestScenarioBase.StoreWrapper(IStorePC storePC)
Creates a new instance. |
Method Summary | |
---|---|
void |
createCashDesk()
Creates a new cash line for this store. |
ICashDesk |
getCashDesk(int i)
Returns the cash desk of the given index. |
GeneratedStockItem |
getItemLowOnStock()
Returns a product which is low on stock (amount <= minAmount) |
int |
getNumberOfCashDesks()
Returns the number of cash desks for this store. |
GeneratedProduct |
getProductReadyForSale()
Returns a product which is ready for sale (amount in stock > 0) |
StockGenerator |
getStockGenerator()
Returns the stock generator used for generator stock items. |
IStorePC |
getStorePC()
Returns the store PC for the store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Random rng
private final IStorePC storePC
private final StockGenerator stockGenerator
private final java.util.List<ICashDesk> cashDesks
Constructor Detail |
---|
public TestScenarioBase.StoreWrapper(IStorePC storePC)
storePC
- the store PC for the store.Method Detail |
---|
public void createCashDesk() throws java.lang.Exception
java.lang.Exception
public int getNumberOfCashDesks()
public ICashDesk getCashDesk(int i)
public StockGenerator getStockGenerator()
public IStorePC getStorePC()
public GeneratedProduct getProductReadyForSale()
public GeneratedStockItem getItemLowOnStock()
|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |