new module:ct-trading /workbench /model /State Machine Monitor(oState Model)
A Stub class for testing the trade model.
Parameters:
Name | Type | Description |
---|---|---|
oStateModel |
Object | the state model. |
Methods
get All States() → {Array}
Returns all the states from the state model.
Returns:
- Type
- Array
get Current State() → {module:ct-trading /statemachine /State}
Returns the current state.
Returns:
get State Model() → {module:ct-trading /statemachine /State Model}
Returns the state model.
Returns:
set State Changed Listener()
Allows the user to register a listener that will be fired any time there is a state change.
set State Machine(oState Machine)
Sets the state machine we will be monitoring.
Parameters:
Name | Type | Description |
---|---|---|
oStateMachine |
Object |
set State Order(pState Order)
Sets the order of the states in the state monitor.
Use this method only if you are using the deleted module:ct-trading/workbench/ui/StateModelVisualiser
, it is not needed
any more for the module:ct-trading/workbench/TradeStateVisualiser
.
Parameters:
Name | Type | Description |
---|---|---|
pStateOrder |
Array | an ordered array of the list of the states for the state monitor. |