Class FxMotifStrategyDetailsGenerator

    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • initialise

        public void initialise​(OrderDetailsGenerator.Context context)
        Description copied from interface: StrategyDetailsGenerator

        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.

        Specified by:
        initialise in interface StrategyDetailsGenerator
      • populateStrategyBuilder

        public 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
        Description copied from interface: StrategyDetailsGenerator
        Creates a new StrategyBuilder and populates it with fields from the given StrategyTree.
        Specified by:
        populateStrategyBuilder in interface StrategyDetailsGenerator
        Throws:
        com.caplin.motif.fx.trading.orders.OrderConfigurationException
      • updateStrategyBuilderWithDeletedOrder

        public void updateStrategyBuilderWithDeletedOrder​(com.caplin.motif.fx.trading.orders.details.StrategyBuilder strategyBuilder,
                                                          com.caplin.ret.trapi.fx.order.OrderEvent event)
        Description copied from interface: StrategyDetailsGenerator
        Updates an existing StrategyBuilder with fields from an OrderEvent.
        Specified by:
        updateStrategyBuilderWithDeletedOrder in interface StrategyDetailsGenerator
      • updateStrategyBuilderWithOrderHistory

        public void updateStrategyBuilderWithOrderHistory​(com.caplin.motif.fx.trading.orders.details.StrategyBuilder strategyBuilder,
                                                          com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory)
        Description copied from interface: StrategyDetailsGenerator
        Updates an existing StrategyBuilder with fields from OrderEventHistories.
        Specified by:
        updateStrategyBuilderWithOrderHistory in interface StrategyDetailsGenerator