|
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.UpdateReceiver
org.cocome.tradingsystem.testdriver.CashBox
public class CashBox
Glue code for the cash box.
Field Summary | |
---|---|
private javax.jms.TopicPublisher |
publisher
Publisher for sending events. |
private javax.jms.TopicSession |
session
Session used for creating object messages. |
Constructor Summary | |
---|---|
CashBox(javax.jms.TopicPublisher publisher,
javax.jms.TopicSession session,
javax.jms.TopicSubscriber subscriber)
Constructor. |
Method Summary | |
---|---|
private org.cocome.tradingsystem.cashdeskline.datatypes.KeyStroke |
charToStroke(char c)
Convert characters to keystrokes. |
void |
enterReceivedCash(int centAmount)
|
void |
finishSale()
|
void |
manuallyEnableCreditCardReader()
|
private void |
publish(java.io.Serializable message)
Publish a serializable message. |
void |
setCashboxStatus(boolean closed)
|
void |
startCashPayment()
|
void |
startCreditCardPayment()
|
void |
startNewSale()
|
boolean |
wasOpenSignalSent()
|
Methods inherited from class org.cocome.tradingsystem.testdriver.UpdateReceiver |
---|
expectMessage, getLastRelevantMessage, onMessage, waitForUpdate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.cocome.tradingsystem.systests.interfaces.IUpdateReceiver |
---|
waitForUpdate |
Field Detail |
---|
private final javax.jms.TopicPublisher publisher
private final javax.jms.TopicSession session
Constructor Detail |
---|
public CashBox(javax.jms.TopicPublisher publisher, javax.jms.TopicSession session, javax.jms.TopicSubscriber subscriber) throws javax.jms.JMSException
javax.jms.JMSException
Method Detail |
---|
private void publish(java.io.Serializable message) throws javax.jms.JMSException
javax.jms.JMSException
public void enterReceivedCash(int centAmount) throws javax.jms.JMSException
enterReceivedCash
in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
javax.jms.JMSException
private org.cocome.tradingsystem.cashdeskline.datatypes.KeyStroke charToStroke(char c)
public void finishSale() throws javax.jms.JMSException
finishSale
in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
javax.jms.JMSException
public void setCashboxStatus(boolean closed) throws javax.jms.JMSException
setCashboxStatus
in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
javax.jms.JMSException
public void startCashPayment() throws javax.jms.JMSException
startCashPayment
in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
javax.jms.JMSException
public void startCreditCardPayment() throws javax.jms.JMSException
startCreditCardPayment
in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
javax.jms.JMSException
public void startNewSale() throws javax.jms.JMSException
startNewSale
in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
javax.jms.JMSException
public boolean wasOpenSignalSent()
wasOpenSignalSent
in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
public void manuallyEnableCreditCardReader() throws javax.jms.JMSException
manuallyEnableCreditCardReader
in interface org.cocome.tradingsystem.systests.interfaces.ICashBox
javax.jms.JMSException
|
CoCoME TestDriver for Reference Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |