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 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
           
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Method Summary
 java.math.BigDecimal getValue()
          Returns the result.
 void setBaseMonetaryValue(java.math.BigDecimal adBaseMonetaryValue)
          Sets the base monetary value.
 void setLookupNumber(java.math.BigDecimal adLookupNumber)
          Sets the lookup number.
 void setLookupResult(CalculationRangeLookupResultAccessBean aabLookupResult)
          Sets the calculation range lookup result.
 void setRange(CalculationRangeAccessBean aabRange)
          Sets the calculation range.
 
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
 
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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

NAME

public static final java.lang.String NAME
Method Detail

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.