Package org.openwms.wms.shipping.spi
Class AllocationRule
java.lang.Object
org.openwms.wms.shipping.spi.AllocationRule
- All Implemented Interfaces:
Serializable
An AllocationRule encapsulates the demanded amount of
Product
items.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new AllocationRule.AllocationRule
(org.openwms.core.units.api.UnitType quantity, Product product) Create a new AllocationRule. -
Method Summary
Modifier and TypeMethodDescriptionGet the product.org.openwms.core.units.api.UnitType
Get the quantity.
-
Field Details
-
quantity
private org.openwms.core.units.api.UnitType quantity -
product
-
-
Constructor Details
-
AllocationRule
protected AllocationRule()Create a new AllocationRule. -
AllocationRule
Create a new AllocationRule.- Parameters:
quantity
- The amount of Product itemsproduct
- The demanded Product
-
-
Method Details
-
getQuantity
public org.openwms.core.units.api.UnitType getQuantity()Get the quantity.- Returns:
- the quantity.
-
getProduct
Get the product.- Returns:
- the product.
-