com.ibm.commerce.order.calculation
Interface CalculationScaleLookupCmd

All Superinterfaces:
BusinessPolicyCommand, CalculationCmd, TaskCommand
All Known Subinterfaces:
NetPriceCalculationScaleLookupCmd, NetPriceWithQuantityAsResultMultiplierCalculationScaleLookupCmd, NetShippingCalculationScaleLookupCmd, NonDiscountedPriceCalculationScaleLookupCmd, QuantityCalculationScaleLookupCmd, QuantitySpreadByNetPriceCalculationScaleLookupCmd, TaxableNetPriceCalculationScaleLookupCmd, TaxableNetPricePlusNetShippingCalculationScaleLookupCmd, TaxableUnitPriceCalculationScaleLookupCmd, TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmd, UnitPriceCalculationScaleLookupCmd, UnitShippingCalculationScaleLookupCmd, WeightCalculationScaleLookupCmd, WeightSpreadByNetPriceCalculationScaleLookupCmd
All Known Implementing Classes:
NetPriceCalculationScaleLookupCmdImpl, NetPriceWithQuantityAsResultMultiplierCalculationScaleLookupCmdImpl, NetShippingCalculationScaleLookupCmdImpl, NonDiscountedPriceCalculationScaleLookupCmdImpl, QuantityCalculationScaleLookupCmdImpl, QuantitySpreadByNetPriceCalculationScaleLookupCmdImpl, TaxableNetPriceCalculationScaleLookupCmdImpl, TaxableNetPricePlusNetShippingCalculationScaleLookupCmdImpl, TaxableUnitPriceCalculationScaleLookupCmdImpl, TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl, UnitPriceCalculationScaleLookupCmdImpl, UnitShippingCalculationScaleLookupCmdImpl, WeightCalculationScaleLookupCmdImpl, WeightSpreadByNetPriceCalculationScaleLookupCmdImpl

public interface CalculationScaleLookupCmd
extends CalculationCmd

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:


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
The IBM copyright notice field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of this interface.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
Deprecated.  
See Also:
Constant Field Values
Method Detail

getBaseMonetaryValue

public java.math.BigDecimal getBaseMonetaryValue()
Returns the base monetary value.
Returns:
the base monetary value.

getLookupNumber

public java.math.BigDecimal getLookupNumber()
Returns the lookup number.
Returns:
the lookup number.

getResultMultiplier

public java.math.BigDecimal getResultMultiplier()
Returns the result multiplier.
Returns:
the result multiplier.

getWeights

public java.math.BigDecimal[] getWeights()
Returns the mathematical weights of the items for distributing values.
Returns:
the mathematical weights.

setItems

public void setItems(Item[] aItems)
Sets the items.
Parameters:
aItems - the items.

setRule

public void setRule(CalculationRuleAccessBean aabRule)
Sets the calculation rule.
Parameters:
aabRule - the calculation rule.

setScale

public void setScale(CalculationScaleAccessBean aabScale)
Sets the calculation scale.
Parameters:
aabScale - the calculation scale.