com.ibm.etill.kitcashcassette
Class KitCashFSM

java.lang.Object
  |
  +--com.ibm.etill.framework.supervisor.FSM
        |
        +--com.ibm.etill.kitcashcassette.KitCashFSM
All Implemented Interfaces:
KitCashFSMConstants

public class KitCashFSM
extends com.ibm.etill.framework.supervisor.FSM
implements KitCashFSMConstants

This derived FSM class defines the state machine logic as represented in the FSM project (.prj) file. The project file is created by FSMEdit. FSMEdit can be used to generate an html representation of this state machine matrix from the project file. This class extends the Framework's FSM class. When the base class method processEvent() is called, the following logic is invoked: row = determineInputRow(input) state = currentState currentState = (matrix [row] [state]).getNextState action = (matrix [row] [state]).getAction And last, the FSMUser class' action method is called.


Fields inherited from class com.ibm.etill.framework.supervisor.FSM
myState
 
Fields inherited from interface com.ibm.etill.kitcashcassette.KitCashFSMConstants
actionStrings, BatchClosed, CloseOrder, ContinuePayment, Deposit, EndOfConsumerFlow, Error, ErrorState, INVALID_INPUT, KitCashMsg, MarkPaymentAsComplete, MarkPaymentAsReceived, MarkPaymentForDeposit, NO_STATE_CHANGE, OrderClosed, PaymentAddedToBatch, PaymentComplete, PaymentPending, PaymentReceived, PaymentRequested, ReceivePayment, ReportError, SendInitiationMsg, Start, StartPayment, stateStrings, UNREACHABLE_STATE_ACTION
 
Constructor Summary
KitCashFSM(KitCashFSMUser fsmUser, int state)
           
 
Method Summary
protected  int determineInputRow(int input)
           
protected  int getAction(int row, int state)
           
protected  int getNextState(int row, int state)
           
protected  java.lang.Integer performAction(int row, int state)
           
 boolean validState(int input)
           
 
Methods inherited from class com.ibm.etill.framework.supervisor.FSM
getState, processEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KitCashFSM

public KitCashFSM(KitCashFSMUser fsmUser,
                  int state)
Method Detail

determineInputRow

protected int determineInputRow(int input)
Overrides:
determineInputRow in class com.ibm.etill.framework.supervisor.FSM

performAction

protected java.lang.Integer performAction(int row,
                                          int state)
                                   throws com.ibm.etill.framework.payapi.ETillAbortOperation
Overrides:
performAction in class com.ibm.etill.framework.supervisor.FSM

getNextState

protected int getNextState(int row,
                           int state)
Overrides:
getNextState in class com.ibm.etill.framework.supervisor.FSM

getAction

protected int getAction(int row,
                        int state)

validState

public boolean validState(int input)
Overrides:
validState in class com.ibm.etill.framework.supervisor.FSM