InventoryCostObservablesData

data class InventoryCostObservablesData(val item: ItemType, val avgOnHand: Double, val avgOnOrder: Double, val avgBacklog: Double, val orderCount: Double, val totalUnitsOrdered: Double, val stockoutCount: Double, val lostSaleCount: Double, val totalUnitsShort: Double) : InventoryCostObservables(source)

Concrete snapshot of an Inventory's cost observables at the moment of construction. Snapshot semantics: every field is read eagerly so the object is immutable and safe to retain after the replication ends.

Constructors

Link copied to clipboard
constructor(item: ItemType, avgOnHand: Double, avgOnOrder: Double, avgBacklog: Double, orderCount: Double, totalUnitsOrdered: Double, stockoutCount: Double, lostSaleCount: Double, totalUnitsShort: Double)

Properties

Link copied to clipboard
open override val avgBacklog: Double

Time-weighted backlog units, sourced from the inventory's backlog policy. 0.0 when the inventory has no backlog policy attached.

Link copied to clipboard
open override val avgOnHand: Double

Time-weighted on-hand units over the post-warmup window.

Link copied to clipboard
open override val avgOnOrder: Double

Time-weighted on-order units.

Link copied to clipboard
open override val item: ItemType

Item type the source Inventory holds.

Link copied to clipboard
open override val lostSaleCount: Double

Count of lost-sale events (subset of stockouts).

Link copied to clipboard
open override val orderCount: Double

Count of replenishment orders placed (post-warmup).

Link copied to clipboard
open override val stockoutCount: Double

Count of stockout events.

Link copied to clipboard
open override val totalUnitsOrdered: Double

Sum of units ordered across all replenishment orders.

Link copied to clipboard
open override val totalUnitsShort: Double

Sum of (remainingDemand − amountOnHand) across stockouts.