com.apama.sor.strategy
Event StrategyHelperInterface
The StrategyHelperInterface object is created by the StrategyHelperFactory object.
This interface allows the User to either get a default implementation of the Strategy Helper behaviour, or to override that behaviour with their own implementation.
-
Since:
- CMF 2.1.0
createStrategy
action<string, context, context, com.apama.sor.utils.Auditor, com.apama.sor.strategy.StrategyHelperCallbacks > returns com.apama.sor.strategy.StrategyInterface createStrategy
This action is called by the User to create an instance of a Strategy.
- Parameters:
- strategyName - The name of the Strategy to create
- mainContext - The main context
- orderContext - The context that the Strategy should place Child orders to. This allows the Strategy to be executed in a separate context.
- auditor - An instance of an order Auditor object to be used by the Strategy
- callbacks - An instance of a StrategyHelperCallback object that is used by the Strategy to implement custom behaviours for specific actions in the Strategy.
- Returns:
- An interface for the Strategy instance created
getDefaultHelperCallbacks
action< > returns com.apama.sor.strategy.StrategyHelperCallbacks getDefaultHelperCallbacks
This action is called by the User prior to creation of the strategy to return the default implementations of the actions defined in the StrategyHelperCallbacks object.
With this default set of implementations the User can the choose to override specific action implementations.
- Returns:
- An interface that contains a set of default implementations of the callbacks that handle the Strategy