Policy Spec
Serializable description of an inventory replenishment policy on an InventorySpec. Maps to the three concrete policy factory methods on the framework's Inventory:
| variant | framework factory |
|---|---|
| SQ | addReorderPointReorderQuantityInventory(item, s, Q, initialOnHand) |
| SS | addReorderPointOrderUpToLevelInventory(item, s, S, initialOnHand) |
| SSPeriodic | periodic (s, S) review policy |
The builder (D2) maps each variant to its factory; initialOnHand comes from the enclosing InventorySpec.
Inheritors
Types
Link copied to clipboard
@Serializable
@SerialName(value = "sQ" )
Continuous-review reorder-point / reorder-quantity (s, Q): when the inventory position drops to reorderPoint (s), order reorderQty (Q) units.
Link copied to clipboard
@Serializable
@SerialName(value = "sS" )
Continuous-review reorder-point / order-up-to-level (s, S): when the inventory position drops to reorderPoint (s), order up to orderUpToLevel (S).
Link copied to clipboard
@Serializable
@SerialName(value = "sSPeriodic" )
Periodic-review (s, S): every reviewInterval the policy checks the position and, if at or below reorderPoint, orders up to orderUpToLevel.