com.ibm.commerce.order.calculation
Interface CalculationRangeCmd
- All Superinterfaces:
- BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
- All Known Subinterfaces:
- FixedAmountCalculationRangeCmd, PercentageCalculationRangeCmd, PerUnitAmountCalculationRangeCmd
- public interface CalculationRangeCmd
- extends CalculationCmd
This command is called by CalculationRuleCalculate
to calculate the result of a particular calculation
range.
The specified task returns a MonetaryAmount result for a particular
CalculationRange.
Input parameters:
- The currency the result should be in.
- The RangeLookupResult object.
- The part of the "lookup number" used to lookup this range that is applicable to this calculation.
- The part of the "base monetary value" that is applicable to this calculation.
The task will return a MonetaryAmount in the specified currency.
If the RangeLookupResult represents a MonetaryAmount that is in a currency
that cannot be converted to the specified currency, a conversion exception is
thrown.
- See Also:
CalculationRuleCalculateCmd
Field Summary |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
NAME
|
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
NAME
public static final java.lang.String NAME
getValue
public java.math.BigDecimal getValue()
- Returns the result.
setBaseMonetaryValue
public void setBaseMonetaryValue(java.math.BigDecimal adBaseMonetaryValue)
- Sets the base monetary value.
setLookupNumber
public void setLookupNumber(java.math.BigDecimal adLookupNumber)
- Sets the lookup number.
setLookupResult
public void setLookupResult(CalculationRangeLookupResultAccessBean aabLookupResult)
- Sets the calculation range lookup result.
setRange
public void setRange(CalculationRangeAccessBean aabRange)
- Sets the calculation range.