Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.commerce.ebusiness.price.engine
Class AbstractDiscountCalculator

    java.lang.Object
      com.bea.commerce.ebusiness.price.engine.AbstractDiscountCalculator

All Implemented Interfaces:
  DiscountCalculator

Direct Known Subclasses:
  DiscountCalculatorFixedOff, DiscountCalculatorFixedPrice, DiscountCalculatorPercentOff

public abstract class AbstractDiscountCalculator
extends Object
implements DiscountCalculator

Field Summary
`static boolean` | `DEBUG`

Fields inherited from interface com.bea.commerce.ebusiness.price.engine.DiscountCalculator
`calcMethod`

Constructor Summary
`protected` | `AbstractDiscountCalculator()`

Method Summary
`protected void` | `adjust(List poolObjects, AdjustmentType type, Money initialPrice, Money endPrice, String reason, QualificationDiscountId discountID)`
`protected void` | `adjust(PoolObject poolObject, AdjustmentType type, Money initialPrice, Money endPrice, String reason, QualificationDiscountId discountID)`
`protected double` | `computeNewPrice(PoolObject object)` Override this method to have processList() work.
`protected abstract String` | `getComputation()`
`protected void` | `processList(List poolObjects, AdjustmentType type, 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`

Methods inherited from interface com.bea.commerce.ebusiness.price.engine.DiscountCalculator
`calcNewPrice, calcNewPrice`

Field Detail

### DEBUG

    public static final boolean DEBUG

See Also:
  Constant Field Values

Constructor Detail

### AbstractDiscountCalculator

    protected AbstractDiscountCalculator()

Method Detail

### adjust

    protected void adjust(List poolObjects,
                          AdjustmentType type,
                          Money initialPrice,
                          Money endPrice,
                          String reason,
                          QualificationDiscountId discountID)

### adjust

    protected void adjust(PoolObject poolObject,
                          AdjustmentType type,
                          Money initialPrice,
                          Money endPrice,
                          String reason,
                          QualificationDiscountId discountID)

### computeNewPrice

    protected double computeNewPrice(PoolObject object)

  Override this method to have processList() work.

### getComputation

    protected abstract String getComputation()

### processList

    protected void processList(List poolObjects,
                               AdjustmentType type,
                               String reason,
                               QualificationDiscountId discountID)

  possibly objects that dont represent the same line item. Override the computeNewPrice() method for this to work.

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved