Interface StrategyDetailsGenerator
- All Known Implementing Classes:
FxMotifStrategyDetailsGenerator
public interface StrategyDetailsGenerator
An interface for working with
StrategyBuilder
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialise
(OrderDetailsGenerator.Context context) This notifies theStrategyDetailsGenerator
that it is about to be loaded.populateStrategyBuilder
(com.caplin.ret.trapi.fx.order.strategy.StrategyTree tree, StrategyBuilder builder) Creates a newStrategyBuilder
and populates it with fields from the givenStrategyTree
.void
updateStrategyBuilderWithDeletedOrder
(StrategyBuilder strategyBuilder, com.caplin.ret.trapi.fx.order.OrderEvent event) Updates an existing StrategyBuilder with fields from anOrderEvent
.void
updateStrategyBuilderWithOrderHistory
(StrategyBuilder strategyBuilder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory) Updates an existing StrategyBuilder with fields fromOrderEventHistories
.
-
Method Details
-
initialise
This notifies the
StrategyDetailsGenerator
that 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
StrategyDetailsGenerator
is loaded by the system. -
populateStrategyBuilder
StrategyBuilder populateStrategyBuilder(com.caplin.ret.trapi.fx.order.strategy.StrategyTree tree, StrategyBuilder builder) throws OrderConfigurationException Creates a newStrategyBuilder
and 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
.
-