PolicySpec

@Serializable
sealed class PolicySpec(source)

Serializable description of an inventory replenishment policy on an InventorySpec. Maps to the three concrete policy factory methods on the framework's Inventory:

variantframework factory
SQaddReorderPointReorderQuantityInventory(item, s, Q, initialOnHand)
SSaddReorderPointOrderUpToLevelInventory(item, s, S, initialOnHand)
SSPeriodicperiodic (s, S) review policy

The builder (D2) maps each variant to its factory; initialOnHand comes from the enclosing InventorySpec.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
@Serializable
@SerialName(value = "sQ")
data class SQ(val reorderPoint: Int, val reorderQty: Int) : PolicySpec

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")
data class SS(val reorderPoint: Int, val orderUpToLevel: Int) : PolicySpec

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")
data class SSPeriodic(val reorderPoint: Int, val orderUpToLevel: Int, val reviewInterval: RVSpec) : PolicySpec

Periodic-review (s, S): every reviewInterval the policy checks the position and, if at or below reorderPoint, orders up to orderUpToLevel.