public interface CalculationScaleLookupCmd extends CalculationCmd
Set a calculation scale and a list of items first. 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:
QuantityCalculationScaleLookupCmd
WeightCalculationScaleLookupCmd
QuantitySpreadByNetPriceCalculationScaleLookupCmd
WeightSpreadByNetPriceCalculationScaleLookupCmd
NonDiscountedPriceCalculationScaleLookupCmd
NetPriceCalculationScaleLookupCmd
UnitPriceCalculationScaleLookupCmd
TaxableNetPriceCalculationScaleLookupCmd
TaxableUnitPriceCalculationScaleLookupCmd
TaxableNetPricePlusNetShippingCalculationScaleLookupCmd
TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
static java.lang.String |
NAME
The name of this interface.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
java.math.BigDecimal getBaseMonetaryValue()
java.math.BigDecimal getLookupNumber()
java.math.BigDecimal getResultMultiplier()
java.math.BigDecimal[] getWeights()
void setItems(Item[] aItems)
aItems
- the items.void setRule(CalculationRuleAccessBean aabRule)
aabRule
- the calculation rule.void setScale(CalculationScaleAccessBean aabScale)
aabScale
- the calculation scale.