public interface StockLevelSelectionStrategy
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<StockLevelModel,java.lang.Long> |
getStockLevelsForAllocation(java.util.Collection<StockLevelModel> stockLevels,
java.lang.Long quantityToAllocate)
Sorts and splits the
StockLevelModel and returns a Map of StockLevelModel to fulfill the quantity passed. |
java.util.Map<StockLevelModel,java.lang.Long> |
getStockLevelsForCancellation(java.util.Collection<AllocationEventModel> allocationEvents,
java.lang.Long quantityToCancel)
Extracts the stock levels out of the list
AllocationEventModel. |
java.util.Map<StockLevelModel,java.lang.Long> getStockLevelsForAllocation(java.util.Collection<StockLevelModel> stockLevels, java.lang.Long quantityToAllocate)
StockLevelModel and returns a Map of StockLevelModel to fulfill the quantity passed.stockLevels - collection of stock level modelquantityToAllocate - total quantity to be allocatedStockLevelModel and quantity to be allocated per stock leveljava.util.Map<StockLevelModel,java.lang.Long> getStockLevelsForCancellation(java.util.Collection<AllocationEventModel> allocationEvents, java.lang.Long quantityToCancel)
AllocationEventModel. Sorts, splits and returns a Map of StockLevelModel to
fulfill the quantity passed.allocationEvents - collection of allocation eventsquantityToCancel - total quantity to be cancelledStockLevelModel a the quantity to cancel for this stock level.Copyright © 2018 SAP SE. All Rights Reserved.