Class AbstractEntriesSelectionStrategy
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.calculation.impl.AbstractEntriesSelectionStrategy
-
- All Implemented Interfaces:
EntriesSelectionStrategy
- Direct Known Subclasses:
CheapestEntriesSelectionStrategy
,DefaultEntriesSelectionStrategy
,MostExpensiveEntriesSelectionStrategy
public abstract class AbstractEntriesSelectionStrategy extends java.lang.Object implements EntriesSelectionStrategy
Default implementation ofEntriesSelectionStrategy
.
-
-
Constructor Summary
Constructors Constructor Description AbstractEntriesSelectionStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.List<OrderEntryRAO>
getOrderEntriesToProcess(EntriesSelectionStrategyRPD strategy)
Provides ordered list of Order Entriesjava.util.Map<java.lang.Integer,java.lang.Integer>
pickup(EntriesSelectionStrategyRPD strategy, java.util.Map<java.lang.Integer,java.lang.Integer> consumableQuantities)
Evaluates what Order Entries and how many units of each of them should be picked up to be used.
-
-
-
Method Detail
-
pickup
public java.util.Map<java.lang.Integer,java.lang.Integer> pickup(EntriesSelectionStrategyRPD strategy, java.util.Map<java.lang.Integer,java.lang.Integer> consumableQuantities)
Description copied from interface:EntriesSelectionStrategy
Evaluates what Order Entries and how many units of each of them should be picked up to be used.- Specified by:
pickup
in interfaceEntriesSelectionStrategy
- Parameters:
strategy
- defines how many total units and from which Order Entries the ones should be picked up.consumableQuantities
- map, containing the consumable order entry quantities- Returns:
- Map with entries having orderEntry.entryNumber as a key and number of Items To Consumed as value
-
getOrderEntriesToProcess
protected abstract java.util.List<OrderEntryRAO> getOrderEntriesToProcess(EntriesSelectionStrategyRPD strategy)
Provides ordered list of Order Entries
-
-