Class TradeStepFactory


  • public class TradeStepFactory
    extends java.lang.Object
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 21, 2016
    • Field Detail

      • context

        @Autowired
        private org.springframework.context.ApplicationContext context
    • Constructor Detail

      • TradeStepFactory

        public TradeStepFactory()
    • Method Detail

      • createAggregatedBuyTradingOfficeTradeStep

        public AggregatedBuyTradingOfficeTradeStep createAggregatedBuyTradingOfficeTradeStep​(ITradingOffice office,
                                                                                             ICity city,
                                                                                             java.util.List<IWare> waresToBuy)
        Create a trade step for buiyn wares into the trading office
        Parameters:
        office - trading office for which to buy the wares
        city - from which to buy the wares
        waresToBuy - wares to buy
        Returns:
        aggregate buy step for the trading offic