Class AbstractEntriesSelectionStrategy
java.lang.Object
de.hybris.platform.ruleengineservices.calculation.impl.AbstractEntriesSelectionStrategy
- All Implemented Interfaces:
EntriesSelectionStrategy
- Direct Known Subclasses:
CheapestEntriesSelectionStrategy,MostExpensiveEntriesSelectionStrategy
public abstract class AbstractEntriesSelectionStrategy
extends Object
implements EntriesSelectionStrategy
Default implementation of
EntriesSelectionStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<OrderEntryRAO>Provides ordered list of Order Entriespickup(EntriesSelectionStrategyRPD strategy, Map<Integer, Integer> consumableQuantities) Evaluates what Order Entries and how many units of each of them should be picked up to be used.
-
Constructor Details
-
AbstractEntriesSelectionStrategy
public AbstractEntriesSelectionStrategy()
-
-
Method Details
-
pickup
public Map<Integer,Integer> pickup(EntriesSelectionStrategyRPD strategy, Map<Integer, Integer> consumableQuantities) Description copied from interface:EntriesSelectionStrategyEvaluates what Order Entries and how many units of each of them should be picked up to be used.- Specified by:
pickupin 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 List<OrderEntryRAO> getOrderEntriesToProcess(EntriesSelectionStrategyRPD strategy) Provides ordered list of Order Entries
-