Interface Allocator
- All Known Implementing Classes:
 StockAllocatorImpl
public interface Allocator
An Allocation strategy is used to find the proper 
PackagingUnit of a Product with the given required amount.- Author:
 - Heiko Scherrer
 
- 
Method Summary
Modifier and TypeMethodDescriptionallocate(@Valid @NotNull AllocationRule allocationRule) Allocate aPackagingUnitby following the givenAllocationRule. 
- 
Method Details
- 
allocate
List<PackagingUnit> allocate(@Valid @NotNull @Valid @NotNull AllocationRule allocationRule) throws AllocationException Allocate aPackagingUnitby following the givenAllocationRule.- Parameters:
 allocationRule- Holds the amount of Product items- Returns:
 - The PackagingUnit if allocatable
 - Throws:
 AllocationException- If not allocatable
 
 -