Interface StrategyDetailsGenerator

  • All Known Implementing Classes:
    FxMotifStrategyDetailsGenerator

    public interface StrategyDetailsGenerator
    An interface for working with StrategyBuilders.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void initialise​(OrderDetailsGenerator.Context context)
      This notifies the StrategyDetailsGenerator 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 new StrategyBuilder and populates it with fields from the given StrategyTree.
      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 an OrderEvent.
      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 from OrderEventHistories.
    • 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 new StrategyBuilder and populates it with fields from the given StrategyTree.
        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 an OrderEvent.
      • 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 from OrderEventHistories.