Class GiveBackProcess

java.lang.Object
  |
  +--sale.SaleProcess
        |
        +--GiveBackProcess
All Implemented Interfaces:
LogContext, Loggable, ProcessErrorCodes, Serializable

public class GiveBackProcess
extends SaleProcess

Rückgabeprocess, der von einem registrierten Kunden am Automaten durchgeführt werden kann.

See Also:
Serialized Form
Source Code:
GiveBackProcess.java

Inner classes inherited from class sale.SaleProcess
SaleProcess.ProcessLogEntry
 
Field Summary
protected  UIGate capabilityGate
           
protected  UIGate giveRestGate
           
protected  Currency myCurrency
           
protected  UIGate selectionGate
           
protected  Transition toGetMoneyTransition
           
protected  Transition toSelectionTransition
           
 
Fields inherited from class sale.SaleProcess
LOGENTRYFILTER_PROCESSES_ONLY, m_gCurGate, m_tCurTransition
 
Fields inherited from interface sale.ProcessErrorCodes
DATABASKET_CONFLICT_ERROR, DUPLICATE_KEY_EXCEPTION, ERR_INTERNAL, ERR_LOWERBOUND, ERR_NOERROR, ERR_UPPERBOUND, NOT_ENOUGH_ELEMENTS_ERROR, REMOVE_VETO_EXCEPTION
 
Constructor Summary
GiveBackProcess()
          Erzeugt ein neues Objekt der Klasse GiveBackProcess.
 
Method Summary
 Gate getInitialGate()
          Gibt das Startgate des Prozesses zurück.
 Gate getLogGate()
          Übergibt das Log-Gate.
protected  void logSalesPointClosed()
          Beinhaltet den Logeintrag, der beim schließen des SalesPoints aufgerufen wird.
protected  void setupMachine()
          Baut die Oberfläche für den Rückgabevorgang auf.
 
Methods inherited from class sale.SaleProcess
attach, attach, canQuit, detachBasket, detachContext, error, error, error, getBasket, getCommitGate, getContext, getCurrentGate, getErrorGate, getErrorMsg, getLogData, getName, getQuitGate, getRollbackGate, getStopGate, isAlive, isResumed, isRunning, isSuspended, log, onFinished, onResumeOrStart, onSuspended, printErrorInfo, quit, resume, start, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

capabilityGate

protected UIGate capabilityGate

selectionGate

protected UIGate selectionGate

giveRestGate

protected UIGate giveRestGate

toSelectionTransition

protected Transition toSelectionTransition

toGetMoneyTransition

protected Transition toGetMoneyTransition

myCurrency

protected Currency myCurrency
Constructor Detail

GiveBackProcess

public GiveBackProcess()
Erzeugt ein neues Objekt der Klasse GiveBackProcess.
Method Detail

setupMachine

protected void setupMachine()
Baut die Oberfläche für den Rückgabevorgang auf.

logSalesPointClosed

protected void logSalesPointClosed()
Beinhaltet den Logeintrag, der beim schließen des SalesPoints aufgerufen wird.

getInitialGate

public Gate getInitialGate()
Gibt das Startgate des Prozesses zurück.
Overrides:
getInitialGate in class SaleProcess

getLogGate

public Gate getLogGate()
Übergibt das Log-Gate. Hier das Stop-Gate, da beim Beenden des Prozesses kein Log-Eintrag geschrieben werden soll.
Overrides:
getLogGate in class SaleProcess