Caplin Trader 5.0.0

Interface: module:ct-trading/statemachine/TriggerActiveChangedListener

module:ct-trading/statemachine/TriggerActiveChangedListener

The super constructor of implementors of TriggerActiveChangedListener.

TriggerActiveChangedListeners wish to be notified whenever a specific trigger changes from active to inactive or inactive to active. A trigger is active if it would cause a state change - that is, with the supplied context all it's validators would validate, and it would match a transition.

Methods

triggerActiveChanged(bCanChange, oContext, sEvent)

Parameters:
Name Type Description
bCanChange boolean

true if the trigger has become active, false if it has become inactive.

oContext Object

the data context.

sEvent String

is the trigger that has changed its active state.