market
Class SProcessWorker
java.lang.Object
|
+--sale.SaleProcess
|
+--market.SProcessMarket
|
+--market.SProcessWorker
- All Implemented Interfaces:
- LogContext, Loggable, ProcessErrorCodes, Serializable
- public class SProcessWorker
- extends SProcessMarket
The worker process. This process handles execution of the orders.
- See Also:
- Serialized Form
Methods inherited from class sale.SaleProcess |
attach, attach, canQuit, detachBasket, detachContext, error, error, error, getBasket, getContext, getCurrentGate, getErrorGate, getErrorMsg, getLogData, getLogGate, 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 |
BUYPROCESS
public static final int BUYPROCESS
- See Also:
- Constant Field Values
TILLQUEUE
public static final int TILLQUEUE
- See Also:
- Constant Field Values
WAREHOUSEQUEUE
public static final int WAREHOUSEQUEUE
- See Also:
- Constant Field Values
OLDOFFER
public static final int OLDOFFER
- See Also:
- Constant Field Values
SProcessWorker
public SProcessWorker(String sName)
- Parameters:
sName
- the name of the process.
getInitialGate
protected Gate getInitialGate()
- Attaches
FSWorkerDefault
, its actions and the menu to #uig_initial
.
- Specified by:
getInitialGate
in class SaleProcess
- Returns:
- the set up
#uig_initial
.
getCommitGate
public Gate getCommitGate()
- Overrides:
getCommitGate
in class SaleProcess
- Returns:
- the Gate to jump to if the current order is complete.
getRollbackGate
public Gate getRollbackGate()
- Overrides:
getRollbackGate
in class SaleProcess
- Returns:
- the Gate to jump to if the current order has to be rolled back.
addDatabaseCount
public void addDatabaseCount(int value,
int type)
- Adds a given value to the value at the specified position,
used by different implementations of OfferEventListener
to find out the count of an article considering all datastructures of the market.
- Parameters:
value
- the value that will be added.type
- the index of the array at which the value will be added,
use BUYPROCESS
to OLDOFFER
.