Class StockAllocatorImpl
java.lang.Object
org.openwms.wms.inventory.allocation.spi.StockAllocatorImpl
- All Implemented Interfaces:
Allocator
A StockAllocationImpl.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final PackagingUnitFinder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocate(@Valid @NotNull AllocationRule allocationRule) Allocate aPackagingUnitby following the givenAllocationRule.
-
Field Details
-
ALLOCATION_LOGGER
private static final org.slf4j.Logger ALLOCATION_LOGGER -
packagingUnitFinder
-
-
Constructor Details
-
StockAllocatorImpl
StockAllocatorImpl(PackagingUnitFinder packagingUnitFinder)
-
-
Method Details
-
allocate
@NotTransformed @Measured public List<PackagingUnit> allocate(@Valid @NotNull @Valid @NotNull AllocationRule allocationRule) throws AllocationException Allocate aPackagingUnitby following the givenAllocationRule.- Specified by:
allocatein interfaceAllocator- Parameters:
allocationRule- Holds the amount of Product items- Returns:
- The PackagingUnit if allocatable
- Throws:
AllocationException- If not allocatable
-