Class AllocationServiceImpl
java.lang.Object
org.openwms.wms.inventory.allocation.impl.AllocationServiceImpl
- All Implemented Interfaces:
AllocationService
A AllocationServiceImpl.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Allocator
private static final org.slf4j.Logger
private final PackagingUnitService
private final ProductService
-
Constructor Summary
ConstructorsConstructorDescriptionAllocationServiceImpl
(ProductService productService, PackagingUnitService packagingUnitService, Allocator allocation) -
Method Summary
-
Field Details
-
ALLOCATION_LOGGER
private static final org.slf4j.Logger ALLOCATION_LOGGER -
productService
-
packagingUnitService
-
allocation
-
-
Constructor Details
-
AllocationServiceImpl
AllocationServiceImpl(ProductService productService, PackagingUnitService packagingUnitService, Allocator allocation)
-
-
Method Details
-
allocate
@Measured public List<Allocation> allocate(@NotNull @NotNull org.openwms.core.units.api.Measurable amount, @NotEmpty @NotEmpty String sku, List<String> sourceLocationGroupNames) Allocate theamount
of products identified withsku
.- Specified by:
allocate
in interfaceAllocationService
- Parameters:
amount
- The amount to allocatesku
- The Products SKUsourceLocationGroupNames
- The list of LocationGroup names wherein the article shall be allocated- Returns:
- A list with all possible Allocations
-