Attributes | Name and Description |
---|---|
|
caplin.trading.workbench.model.StateMachineMonitor(Object oStateModel)
|
Attributes | Name and Description |
---|---|
|
Array
getAllStates()
Returns all the states from the state model. |
|
caplin.trading.statemachine.State
getCurrentState()
Returns the current state. |
|
caplin.trading.statemachine.StateModel
getStateModel()
Returns the state model. |
|
void
setStateChangedListener( fListener, bFireImediately)
Allows the user to register a listener that will be fired any time there is a state change. |
|
void
setStateMachine(Object oStateMachine)
Sets the state machine we will be monitoring. |
|
void
setStateOrder(Array pStateOrder)
Sets the order of the states in the state monitor. |
|
void
stateChanged( oState, eventName)
|
►
caplin.trading.workbench.model.StateMachineMonitor(Object oStateModel)
Object | oStateModel | the state model. |
►
Array
getAllStates()
Returns all the states from the state model.
►
caplin.trading.statemachine.State
getCurrentState()
Returns the current state.
►
caplin.trading.statemachine.StateModel
getStateModel()
Returns the state model.
►
void
setStateChangedListener( fListener, bFireImediately)
Allows the user to register a listener that will be fired any time there is a state change.
fListener | ||
bFireImediately |
►
void
setStateMachine(Object oStateMachine)
Sets the state machine we will be monitoring.
Object | oStateMachine |
►
void
setStateOrder(Array pStateOrder)
Sets the order of the states in the state monitor. Use this method only if you are using the caplin.trading.workbench.ui.StateModelVisualiser, it is not needed any more for the caplin.trading.workbench.TradeStateVisualiser.
Array | pStateOrder | an ordered array of the list of the states for the state monitor. |
►
void
stateChanged( oState, eventName)
oState | ||
eventName |