Großmarkt

market
Class SProcessCustomer

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

public class SProcessCustomer
extends SProcessMarket

The customer process. This process handles a customer's purchase.

See Also:
Serialized Form

Field Summary
 
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
SProcessCustomer(User user)
           
 
Method Summary
 Gate getCommitGate()
          Attaches FSCustomerConfirmSelection, its actions and the menu to #uig_commit.
protected  Gate getInitialGate()
          Attaches FSCustomerOfferTable, its actions and the menu to #uig_selection.
 Gate getOkGate()
          Attaches a MsgForm and its OK-action to #uig_ok.
 
Methods inherited from class market.SProcessMarket
setAction, setTransition
 
Methods inherited from class sale.SaleProcess
attach, attach, canQuit, detachBasket, detachContext, error, error, error, getBasket, 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
 

Constructor Detail

SProcessCustomer

public SProcessCustomer(User user)
Parameters:
user - the customer who performs the purchase.
Method Detail

getInitialGate

protected Gate getInitialGate()
Attaches FSCustomerOfferTable, its actions and the menu to #uig_selection.

Specified by:
getInitialGate in class SaleProcess
Returns:
the set up #uig_selection.

getCommitGate

public Gate getCommitGate()
Attaches FSCustomerConfirmSelection, its actions and the menu to #uig_commit.

Overrides:
getCommitGate in class SaleProcess
Returns:
the set up #uig_commit.

getOkGate

public Gate getOkGate()
Attaches a MsgForm and its OK-action to #uig_ok.

Returns:
the set up #uig_ok.

Großmarkt