Videoautomat

videoautomat
Class SaleProcessRent

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

public class SaleProcessRent
extends sale.SaleProcess

This class implements a SaleProcess used to rent videos.

See Also:
Serialized Form

Field Summary
static String MB_TEMP_KEY
          Key to the temp money bag for the porcess data of the process context
static String SUB_SHOP_MONEY
           
static String SUB_SHOP_VIDEO
           
static String SUB_TMP_MONEY
           
static String SUB_USER_VIDEO
           
static String SUM_KEY
           
 
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
SaleProcessRent()
          Constructs a new SaleProcessRent
 
Method Summary
 sale.Gate getConfirmGate()
           
protected  sale.Gate getInitialGate()
          Implementation of the inherited abstract method.
 sale.Gate getPayGate()
           
 sale.Gate restart()
           
 
Methods inherited from class sale.SaleProcess
attach, attach, canQuit, detachBasket, detachContext, error, error, error, getBasket, getCommitGate, getContext, getCurrentGate, getErrorGate, getErrorMsg, getLogData, getLogGate, 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

SUB_SHOP_VIDEO

public static final String SUB_SHOP_VIDEO
See Also:
Constant Field Values

SUB_USER_VIDEO

public static final String SUB_USER_VIDEO
See Also:
Constant Field Values

SUB_TMP_MONEY

public static final String SUB_TMP_MONEY
See Also:
Constant Field Values

SUB_SHOP_MONEY

public static final String SUB_SHOP_MONEY
See Also:
Constant Field Values

MB_TEMP_KEY

public static final String MB_TEMP_KEY
Key to the temp money bag for the porcess data of the process context

See Also:
Constant Field Values

SUM_KEY

public static final String SUM_KEY
See Also:
Constant Field Values
Constructor Detail

SaleProcessRent

public SaleProcessRent()
Constructs a new SaleProcessRent

Method Detail

getInitialGate

protected sale.Gate getInitialGate()
Implementation of the inherited abstract method.

Specified by:
getInitialGate in class sale.SaleProcess
Returns:
a Gate where the user makes a selection
See Also:
SaleProcess.getInitialGate()

restart

public sale.Gate restart()

getPayGate

public sale.Gate getPayGate()
Returns:
a Gate where the money gets inserted

getConfirmGate

public sale.Gate getConfirmGate()
Returns:
a Gate where the selected videos and the change money is shown

Videoautomat