Caplin Trader 4.7.1

Interface: module:caplin/trading/statemachine/TriggerActiveChangedListener

module:caplin/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.