com.ibm.commerce.order.calculation
Interface CalculationRuleCalculateCmd

All Superinterfaces:
BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
All Known Implementing Classes:
CalculationRuleCalculateCmdImpl

public interface CalculationRuleCalculateCmd
extends CalculationCmd

This command is called by CalculationRuleCombine to calculate the result of a particular calculation rule.
Given a CalculationRule, and one or more OrderItems in a particular Order, this method returns a MonetaryAmount result for each OrderItem. The currency of the MonetaryAmount result is the currency of the Order (the "Order currency").

See Also:
CalculationRuleCombineCmd, Item

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String NAME
           
 
Method Summary
 java.math.BigDecimal[] getValues()
          Returns the result.
 void setItems(Item[] aItems)
          Sets the items.
 void setRule(CalculationRuleAccessBean aabRule)
          Sets the calculation rule.
 
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

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME
Method Detail

getValues

public java.math.BigDecimal[] getValues()
Returns the result.

setItems

public void setItems(Item[] aItems)
Sets the items.

setRule

public void setRule(CalculationRuleAccessBean aabRule)
Sets the calculation rule.