Class AggregatedBuyTradingOfficeTradeStep

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.product.ITradeStep

    public class AggregatedBuyTradingOfficeTradeStep
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.model.product.ITradeStep
    Aggregate multiple BuySteps for the trading office.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 21, 2016
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBuyStep​(ch.sahits.game.openpatrician.model.product.IWare ware, int maxPrice)  
      boolean execute()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AggregatedBuyTradingOfficeTradeStep

        public AggregatedBuyTradingOfficeTradeStep()
    • Method Detail

      • addBuyStep

        public void addBuyStep​(ch.sahits.game.openpatrician.model.product.IWare ware,
                               int maxPrice)
      • execute

        public boolean execute()
        Specified by:
        execute in interface ch.sahits.game.openpatrician.model.product.ITradeStep
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object