| Package | Description |
|---|---|
| scpc | |
| scpc.model | |
| scpc.model.support |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.Collection<BonusItem<T>> |
Calculator.calcBonus(java.util.List<? extends IRule<T>> rules,
java.util.Set<? extends IItem<T>> cartItems)
Caculate bonus from rules and shopping cart items.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IChainRule<T> |
interface |
ILeafRule<T>
Promotion rule that result in bonus item.
|
| Modifier and Type | Method and Description |
|---|---|
IRule<T> |
IRule.containsCountInc()
Increase one count of items that is applicable to this rule.
|
IRule<T> |
IChainRule.getNext()
A chained-rule need to know where the next.
|
IRule<T> |
BonusItem.getRule()
The assoicate rule of this bonus.
|
IRule<T> |
IRule.resetSumOfSerialOriginalPrice()
Reset the summary original price of the same applicable items.
|
IRule<T> |
IRule.resetSumOfSerialSalePrice()
Reset the summary sale price of the same applicable items.
|
IRule<T> |
IRule.sumOfContainsOriginalPriceInc(java.math.BigDecimal salePrice)
Increase the summary original price of applicable items.
|
IRule<T> |
IRule.sumOfContainsSalePriceInc(java.math.BigDecimal salePrice)
Increase the summary sale price of applicable items.
|
IRule<T> |
IRule.sumOfSerialOriginalPriceInc(java.math.BigDecimal oriprice)
Increase the summary oringal price of the same applicable items.
|
IRule<T> |
IRule.sumOfSerialSalePriceInc(java.math.BigDecimal saleprice)
Increase the summary sale price of the same applicable items.
|
| Constructor and Description |
|---|
BonusItem(IRule<T> rule,
IItem<T> item) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractRuleBase<T>
Implement basic function of
IRule |
| Modifier and Type | Method and Description |
|---|---|
IRule<T> |
AbstractRuleBase.containsCountInc()
for
Calculator use only. |
IRule<T> |
AbstractRuleBase.resetSumOfSerialOriginalPrice() |
IRule<T> |
AbstractRuleBase.resetSumOfSerialSalePrice() |
IRule<T> |
AbstractRuleBase.sumOfContainsOriginalPriceInc(java.math.BigDecimal originalPrice) |
IRule<T> |
AbstractRuleBase.sumOfContainsSalePriceInc(java.math.BigDecimal salePrice) |
IRule<T> |
AbstractRuleBase.sumOfSerialOriginalPriceInc(java.math.BigDecimal saleprice) |
IRule<T> |
AbstractRuleBase.sumOfSerialSalePriceInc(java.math.BigDecimal saleprice) |
| Modifier and Type | Method and Description |
|---|---|
EvalHelper<T> |
EvalHelper.bindVaribles(IRule<T> rule) |
EvalHelper<T> |
SpelEvalHelper.bindVaribles(IRule<T> rule,
SingleItem<T> item) |
EvalHelper<T> |
EvalHelper.bindVaribles(IRule<T> rule,
SingleItem<T> item)
Bind rule and item into evaluation context.
|
Copyright © 2018. All rights reserved.