com.bea.commerce.ebusiness.price.engine
Class AbstractDiscountCalculator
java.lang.Object
|
+--com.bea.commerce.ebusiness.price.engine.AbstractDiscountCalculator
- Direct Known Subclasses:
- DiscountCalculatorFixedOff, DiscountCalculatorFixedPrice, DiscountCalculatorPercentOff
- public abstract class AbstractDiscountCalculator
- extends java.lang.Object
- implements DiscountCalculator
Field Summary
|
static boolean |
DEBUG
|
Method Summary
|
protected void |
adjust(java.util.List poolObjects,
AdjustmentType type,
Money initialPrice,
Money endPrice,
java.lang.String reason,
QualificationDiscountId discountID)
|
protected void |
adjust(PoolObject poolObject,
AdjustmentType type,
Money initialPrice,
Money endPrice,
java.lang.String reason,
QualificationDiscountId discountID)
|
protected double |
computeNewPrice(PoolObject object)
Override this method to have processList() work. |
protected abstract java.lang.String |
getComputation()
|
protected void |
processList(java.util.List poolObjects,
AdjustmentType type,
java.lang.String reason,
QualificationDiscountId discountID)
possibly objects that dont represent the same line item. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DEBUG
public static final boolean DEBUG
AbstractDiscountCalculator
protected AbstractDiscountCalculator()
adjust
protected void adjust(java.util.List poolObjects,
AdjustmentType type,
Money initialPrice,
Money endPrice,
java.lang.String reason,
QualificationDiscountId discountID)
adjust
protected void adjust(PoolObject poolObject,
AdjustmentType type,
Money initialPrice,
Money endPrice,
java.lang.String reason,
QualificationDiscountId discountID)
processList
protected void processList(java.util.List poolObjects,
AdjustmentType type,
java.lang.String reason,
QualificationDiscountId discountID)
- possibly objects that dont represent the same line item.
Override the computeNewPrice() method for this to work.
computeNewPrice
protected double computeNewPrice(PoolObject object)
- Override this method to have processList() work.
getComputation
protected abstract java.lang.String getComputation()
Copyright © 2002 BEA Systems, Inc. All Rights Reserved