Given a calculation range, a calculation range lookup result, a lookup number and a base monetary value, commands that extend this interface will calculate the resulting value.
This is the base interface that commands registered as calculation methods of type "CalculationRange" must extend. These commands include:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The IBM copyright notice field. |
static java.lang.String |
NAME The name of this interface. |
Method Summary | |
---|---|
java.math.BigDecimal |
getValue() Returns the resulting value. |
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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
Method Detail |
---|
public java.math.BigDecimal getValue()
public void setBaseMonetaryValue(java.math.BigDecimal adBaseMonetaryValue)
adBaseMonetaryValue
- the base monetary
value.public void setLookupNumber(java.math.BigDecimal adLookupNumber)
adLookupNumber
- the lookup number.public void setLookupResult(CalculationRangeLookupResultAccessBean aabLookupResult)
aabLookupResult
- the calculation range lookup
result.public void setRange(CalculationRangeAccessBean aabRange)
aabRange
- the calculation range.