Class AllocationRule
java.lang.Object
org.openwms.wms.inventory.allocation.spi.AllocationRule
- All Implemented Interfaces:
Serializable
An AllocationRule encapsulates the demanded amount of
Product
items.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAllocationRule
(org.openwms.core.units.api.Measurable quantity, Product product, List<String> sourceLocationGroupNames) Create a new AllocationRule. -
Method Summary
Modifier and TypeMethodDescriptionGet the product.org.openwms.core.units.api.Measurable
Get the quantity.Get the names of LocationGroups where to search for the material.
-
Field Details
-
quantity
@NotNull private final @NotNull org.openwms.core.units.api.Measurable quantity -
product
-
sourceLocationGroupNames
-
-
Constructor Details
-
AllocationRule
public AllocationRule(org.openwms.core.units.api.Measurable quantity, Product product, List<String> sourceLocationGroupNames) Create a new AllocationRule.- Parameters:
quantity
- The amount of Product items - non-nullableproduct
- The demanded Product - non-nullablesourceLocationGroupNames
- List of LocationGroup names where to search material in
-
-
Method Details
-
getQuantity
public org.openwms.core.units.api.Measurable getQuantity()Get the quantity.- Returns:
- the quantity.
-
getProduct
Get the product.- Returns:
- the product.
-
getSourceLocationGroupNames
Get the names of LocationGroups where to search for the material.- Returns:
- List of names
-