Interface
caplin.trading.statemachine

StateChangedListener

The StateChangedListeners stateChanged method will be called when the state of the trade changes. StateChangedListener's are added with caplin.trading.trademodel.Trade#addStateChangedListener and removed with caplin.trading.trademodel.Trade#removeStateChangedListener.

Constructor Summary

Attributes Name and Description
caplin.trading.statemachine.StateChangedListener()

Method Summary

Attributes Name and Description
void stateChanged(caplin.trading.statemachine.State oState, String sEventName)

Called when the state of the trade changes.

Constructor Detail

caplin.trading.statemachine.StateChangedListener()

Method Detail

void stateChanged(caplin.trading.statemachine.State oState, String sEventName)

Called when the state of the trade changes.

Parameters
caplin.trading.statemachine.State oState The new state that we have just transitioned to. Will not be null or undefined.
String sEventName The name of the transition that was used to enter the new state. If the state has timed out the event will be '__TIMEOUT'. Will not be null or undefined.