Großmarkt

market
Class SProcessSeller

java.lang.Object
  extended by sale.SaleProcess
      extended by market.SProcessMarket
          extended by market.SProcessSeller
All Implemented Interfaces:
Serializable, LogContext, Loggable, ProcessErrorCodes

public class SProcessSeller
extends SProcessMarket

The seller process. This process handles the payment of the orders.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class sale.SaleProcess
SaleProcess.ProcessLogEntry
 
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
SProcessSeller(String name)
           
 
Method Summary
protected  Gate getCancelBuyGate()
          Attaches a MsgForm and its ok-action to uig_cancelBuy.
 Gate getCommitGate()
          Attaches FSSellerBill and its actions to uig_commit.
protected  Gate getInitialGate()
          Attaches FSSellerCustomerTable, its actions and the menu to uig_customerSelection.
 Gate getLogGate()
          Attaches MsgForm and its ok-action to uig_log.
protected  Gate getNoCustomerGate()
          Attaches a MsgForm and its ok-action to uig_noCustomer.
protected  Gate getOrderGate()
          Attaches FSSellerOrderTable and its actions to uig_order.
 Gate getRollbackGate()
           
 
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, getName, getQuitGate, 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

SProcessSeller

public SProcessSeller(String name)
Parameters:
name - the name of the process.
Method Detail

getInitialGate

protected Gate getInitialGate()
Attaches FSSellerCustomerTable, its actions and the menu to uig_customerSelection.

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

getCancelBuyGate

protected Gate getCancelBuyGate()
Attaches a MsgForm and its ok-action to uig_cancelBuy.

Returns:
the set up uig_cancelBuy.

getNoCustomerGate

protected Gate getNoCustomerGate()
Attaches a MsgForm and its ok-action to uig_noCustomer.

Returns:
the set up uig_noCustomer.

getOrderGate

protected Gate getOrderGate()
Attaches FSSellerOrderTable and its actions to uig_order.

Returns:
the set up uig_order.

getCommitGate

public Gate getCommitGate()
Attaches FSSellerBill and its actions to uig_commit.

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

getRollbackGate

public Gate getRollbackGate()
Overrides:
getRollbackGate in class SaleProcess
Returns:
the Gate to jump to if the selected customer has to be rolled back.

getLogGate

public Gate getLogGate()
Attaches MsgForm and its ok-action to uig_log.

Overrides:
getLogGate in class SaleProcess
Returns:
the set up uig_log.

Großmarkt