Given a calculation scale and a list of items, this command will calculate the corresponding lookup number, base monetary value and result multiplier, plus the mathematical weight of each item for distributing values.
For more information, see
CalculationRuleCalculateCmdImpl
.
This is the base interface that commands registered as calculation methods of type "CalculationScaleLookup" must extend. These commands include:
QuantityCalculationScaleLookupCmd
WeightCalculationScaleLookupCmd
QuantitySpreadByNetPriceCalculationScaleLookupCmd
WeightSpreadByNetPriceCalculationScaleLookupCmd
NonDiscountedPriceCalculationScaleLookupCmd
NetPriceCalculationScaleLookupCmd
UnitPriceCalculationScaleLookupCmd
TaxableNetPriceCalculationScaleLookupCmd
TaxableUnitPriceCalculationScaleLookupCmd
TaxableNetPricePlusNetShippingCalculationScaleLookupCmd
TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmd
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName Deprecated. |
static java.lang.String |
NAME The name of this interface. |
Method Summary | |
---|---|
java.math.BigDecimal |
getBaseMonetaryValue() Returns the base monetary value. |
java.math.BigDecimal |
getLookupNumber() Returns the lookup number. |
java.math.BigDecimal |
getResultMultiplier() Returns the result multiplier. |
java.math.BigDecimal[] |
getWeights() Returns the mathematical weights of the items for distributing values. |
void |
setItems(
Item[] aItems) Sets the items. |
void |
setRule(CalculationRuleAccessBean aabRule) Sets the calculation rule. |
void |
setScale(CalculationScaleAccessBean aabScale) Sets the calculation scale. |
Methods inherited from interface com.ibm.commerce.order.calculation. CalculationCmd |
getCurrency,
getCustomProperties,
getCustomProperty,
getTimestamp,
getUsageId,
setCurrency,
setCustomProperties,
setCustomProperty,
setTimestamp,
setUsageId |
Methods inherited from interface com.ibm.commerce.command. BusinessPolicyCommand |
getPolicyId,
getRequestProperties,
setPolicyId,
setRequestProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public java.math.BigDecimal getBaseMonetaryValue()
public java.math.BigDecimal getLookupNumber()
public java.math.BigDecimal getResultMultiplier()
public java.math.BigDecimal[] getWeights()
public void setItems(Item[] aItems)
aItems
- the items.public void setRule(CalculationRuleAccessBean aabRule)
aabRule
- the calculation rule.public void setScale(CalculationScaleAccessBean aabScale)
aabScale
- the calculation scale.