|
CoCoME TestDriver for Reference Implementation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cocome.tradingsystem.testdriver.TestDriver
public class TestDriver
This is the test driver for the reference implementation of the system.
| Field Summary | |
|---|---|
private Bank |
bank
The bank we are using. |
private int[] |
currentCashdesk
For each store the next used cash desk id (= number of cash desks of the store). |
private int |
currentStore
The next used store id (= the number of stores created so far). |
private Enterprise |
enterprise
The enterprise. |
private static int |
MAX_CASHDESKS
The maximal number of cash desks supported (as prepared in the properties files). |
private static int |
MAX_STORES
The maximal number of stores supported (as prepared in the properties files). |
private StorePC[] |
storePCs
The preloaded store PCs. |
| Constructor Summary | |
|---|---|
TestDriver()
|
|
| Method Summary | |
|---|---|
org.cocome.tradingsystem.systests.interfaces.ICashDesk |
createCashDesk(org.cocome.tradingsystem.systests.interfaces.IStorePC store)
|
org.cocome.tradingsystem.systests.interfaces.IStorePC |
createStore()
|
org.cocome.tradingsystem.systests.interfaces.IBank |
getBank()
|
org.cocome.tradingsystem.systests.interfaces.IEnterprise |
initializeSystem()
|
void |
shutdownSystem()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Bank bank
private int currentStore
private static final int MAX_STORES
private StorePC[] storePCs
private final int[] currentCashdesk
private static final int MAX_CASHDESKS
private Enterprise enterprise
| Constructor Detail |
|---|
public TestDriver()
| Method Detail |
|---|
public org.cocome.tradingsystem.systests.interfaces.ICashDesk createCashDesk(org.cocome.tradingsystem.systests.interfaces.IStorePC store)
throws javax.naming.NamingException,
javax.jms.JMSException
createCashDesk in interface org.cocome.tradingsystem.systests.interfaces.ITestDriverjavax.naming.NamingException
javax.jms.JMSExceptionpublic org.cocome.tradingsystem.systests.interfaces.IStorePC createStore()
createStore in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
public org.cocome.tradingsystem.systests.interfaces.IEnterprise initializeSystem()
throws java.lang.Exception
initializeSystem in interface org.cocome.tradingsystem.systests.interfaces.ITestDriverjava.lang.Exceptionpublic void shutdownSystem()
shutdownSystem in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
public org.cocome.tradingsystem.systests.interfaces.IBank getBank()
throws java.lang.Exception
getBank in interface org.cocome.tradingsystem.systests.interfaces.ITestDriverjava.lang.Exception
|
CoCoME TestDriver for Reference Implementation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||