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.Logger
private final PackagingUnitFinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocate
(@Valid @NotNull AllocationRule allocationRule) Allocate aPackagingUnit
by 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 aPackagingUnit
by following the givenAllocationRule
.- Specified by:
allocate
in interfaceAllocator
- Parameters:
allocationRule
- Holds the amount of Product items- Returns:
- The PackagingUnit if allocatable
- Throws:
AllocationException
- If not allocatable
-