Interface EntriesSelectionStrategy

All Known Implementing Classes:
AbstractEntriesSelectionStrategy, CheapestEntriesSelectionStrategy, MostExpensiveEntriesSelectionStrategy

public interface EntriesSelectionStrategy
Defines method(s) to pickup products to be used in a rule with a group of products.
  • Method Details

    • pickup

      Map<Integer,Integer> pickup(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.
      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