com.ibm.commerce.price.utils

Class PriceConversionAlgorithm

  • java.lang.Object
    • com.ibm.commerce.price.utils.PriceConversionAlgorithm


  • public class PriceConversionAlgorithm
    extends java.lang.Object
    Algorithm to calculate the best price from a set of prices that need to be converted to the proper currency. Creation date: (9/19/00 10:01:55 AM)
    • Constructor Detail

      • PriceConversionAlgorithm

        public PriceConversionAlgorithm(MonetaryAmount[] theExistingPrices,
                                        java.lang.String aRequestedCurrency,
                                        com.ibm.commerce.common.objects.StoreAccessBean aStoreAB)
        PriceConversionAlgorithm constructor comment.
        Parameters:
        theExistingPrices - an array of the existing prices.
        aReqestedCurrency - the currency for the converted price.
        aStoreAB - the store under which the conversions are done..
    • Method Detail

      • calculateLowestPrice

        public boolean calculateLowestPrice()
                                     throws com.ibm.commerce.exception.ECSystemException
        Calculate the lowest price
        Returns:
        a flag indicating whether a converted price was calculated or not.
        Throws:
        com.ibm.commerce.exception.ECSystemException
      • getBasePrice

        public MonetaryAmount getBasePrice()
        Get the base price used to convert to the lowest price. Creation date: (9/19/00 10:16:34 AM)
        Returns:
        the base price.
      • getBestPrice

        public MonetaryAmount getBestPrice()
        Get the best price. Creation date: (9/19/00 10:18:23 AM)
        Returns:
        the best price.