CoCoME TestDriver for Reference Implementation

org.cocome.tradingsystem.testdriver
Class TestDriver

java.lang.Object
  extended by org.cocome.tradingsystem.testdriver.TestDriver
All Implemented Interfaces:
org.cocome.tradingsystem.systests.interfaces.ITestDriver

public class TestDriver
extends java.lang.Object
implements org.cocome.tradingsystem.systests.interfaces.ITestDriver

This is the test driver for the reference implementation of the system.

Version:
$Rev: 63 $
Author:
Benjamin Hummel, $Author: hummel $

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

bank

private Bank bank
The bank we are using.


currentStore

private int currentStore
The next used store id (= the number of stores created so far).


MAX_STORES

private static final int MAX_STORES
The maximal number of stores supported (as prepared in the properties files).

See Also:
Constant Field Values

storePCs

private StorePC[] storePCs
The preloaded store PCs.


currentCashdesk

private final int[] currentCashdesk
For each store the next used cash desk id (= number of cash desks of the store).


MAX_CASHDESKS

private static final int MAX_CASHDESKS
The maximal number of cash desks supported (as prepared in the properties files).

See Also:
Constant Field Values

enterprise

private Enterprise enterprise
The enterprise.

Constructor Detail

TestDriver

public TestDriver()
Method Detail

createCashDesk

public org.cocome.tradingsystem.systests.interfaces.ICashDesk createCashDesk(org.cocome.tradingsystem.systests.interfaces.IStorePC store)
                                                                      throws javax.naming.NamingException,
                                                                             javax.jms.JMSException

Specified by:
createCashDesk in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
Throws:
javax.naming.NamingException
javax.jms.JMSException

createStore

public org.cocome.tradingsystem.systests.interfaces.IStorePC createStore()

Specified by:
createStore in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver

initializeSystem

public org.cocome.tradingsystem.systests.interfaces.IEnterprise initializeSystem()
                                                                          throws java.lang.Exception

Specified by:
initializeSystem in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
Throws:
java.lang.Exception

shutdownSystem

public void shutdownSystem()

Specified by:
shutdownSystem in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver

getBank

public org.cocome.tradingsystem.systests.interfaces.IBank getBank()
                                                           throws java.lang.Exception

Specified by:
getBank in interface org.cocome.tradingsystem.systests.interfaces.ITestDriver
Throws:
java.lang.Exception

CoCoME TestDriver for Reference Implementation

CoCoME TestDriver for Reference Implementation - 0.1