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