Class BasePriceCalulation

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getMaxValue​(ITradable tradable, boolean buy)
      Retreive the maximal value from tradable dependent if we are buying or selling.
      protected int getMinValue​(ITradable tradable, boolean buy)
      Retreive the minimal value from tradable dependent if we are buying or selling.
      protected int getSaturation​(ITradable tradable, boolean buy)
      Retreive the saturation value from tradable dependent if we are buying or selling.
      • Methods inherited from class java.lang.Object

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

      • BasePriceCalulation

        public BasePriceCalulation()
    • Method Detail

      • getMinValue

        protected int getMinValue​(ITradable tradable,
                                  boolean buy)
        Retreive the minimal value from tradable dependent if we are buying or selling.
        Parameters:
        tradable - holding the min value
        buy - flag indicating if we are buying or selling
        Returns:
        appropriate value for min based on the buy flag.
      • getMaxValue

        protected int getMaxValue​(ITradable tradable,
                                  boolean buy)
        Retreive the maximal value from tradable dependent if we are buying or selling.
        Parameters:
        tradable - holding the max value
        buy - flag indicating if we are buying or selling
        Returns:
        appropriate value for max based on the buy flag.
      • getSaturation

        protected int getSaturation​(ITradable tradable,
                                    boolean buy)
        Retreive the saturation value from tradable dependent if we are buying or selling.
        Parameters:
        tradable - holding the max value
        buy - flag indicating if we are buying or selling
        Returns:
        appropriate value for saturation based on the buy flag.