Interface StrategyDetailsGenerator
- All Known Implementing Classes:
FxMotifStrategyDetailsGenerator
public interface StrategyDetailsGenerator
An interface for working with
StrategyBuilders.-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialise(OrderDetailsGenerator.Context context) This notifies theStrategyDetailsGeneratorthat it is about to be loaded.populateStrategyBuilder(com.caplin.ret.trapi.fx.order.strategy.StrategyTree tree, StrategyBuilder builder) Creates a newStrategyBuilderand populates it with fields from the givenStrategyTree.voidupdateStrategyBuilderWithDeletedOrder(StrategyBuilder strategyBuilder, com.caplin.ret.trapi.fx.order.OrderEvent event) Updates an existing StrategyBuilder with fields from anOrderEvent.voidupdateStrategyBuilderWithOrderHistory(StrategyBuilder strategyBuilder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory) Updates an existing StrategyBuilder with fields fromOrderEventHistories.
-
Method Details
-
initialise
This notifies the
StrategyDetailsGeneratorthat it is about to be loaded. This method will be called by the system once.You should use this method to perform any initialisation required before the
StrategyDetailsGeneratoris loaded by the system. -
populateStrategyBuilder
StrategyBuilder populateStrategyBuilder(com.caplin.ret.trapi.fx.order.strategy.StrategyTree tree, StrategyBuilder builder) throws OrderConfigurationException Creates a newStrategyBuilderand populates it with fields from the givenStrategyTree.- Throws:
OrderConfigurationException
-
updateStrategyBuilderWithDeletedOrder
void updateStrategyBuilderWithDeletedOrder(StrategyBuilder strategyBuilder, com.caplin.ret.trapi.fx.order.OrderEvent event) Updates an existing StrategyBuilder with fields from anOrderEvent. -
updateStrategyBuilderWithOrderHistory
void updateStrategyBuilderWithOrderHistory(StrategyBuilder strategyBuilder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory) Updates an existing StrategyBuilder with fields fromOrderEventHistories.
-