com.ibm.commerce.order.calculation
Interface CalculationRangeCmd

All Superinterfaces:
BusinessPolicyCommand, CalculationCmd, TaskCommand
All Known Subinterfaces:
FixedAmountCalculationRangeCmd, PercentageCalculationRangeCmd, PerUnitAmountCalculationRangeCmd
All Known Implementing Classes:
FixedAmountCalculationRangeCmdImpl, PercentageCalculationRangeCmdImpl, PerUnitAmountCalculationRangeCmdImpl

public interface CalculationRangeCmd
extends CalculationCmd

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
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
Method Detail

getValue

public java.math.BigDecimal getValue()
Returns the resulting value.
Returns:
the resulting value.

setBaseMonetaryValue

public void setBaseMonetaryValue(java.math.BigDecimal adBaseMonetaryValue)
Sets the base monetary value.
Parameters:
adBaseMonetaryValue - the base monetary value.

setLookupNumber

public void setLookupNumber(java.math.BigDecimal adLookupNumber)
Sets the lookup number.
Parameters:
adLookupNumber - the lookup number.

setLookupResult

public void setLookupResult(CalculationRangeLookupResultAccessBean aabLookupResult)
Sets the calculation range lookup result.
Parameters:
aabLookupResult - the calculation range lookup result.

setRange

public void setRange(CalculationRangeAccessBean aabRange)
Sets the calculation range.
Parameters:
aabRange - the calculation range.