BuilderCostObservablesData

data class BuilderCostObservablesData(val builder: DemandLoadBuilder, val perItemUnitsOnHand: Map<ItemType, Double>, val totalLoadsShipped: Double) : BuilderCostObservables(source)

Concrete builder-observables snapshot. perItemUnitsOnHand captures the per-item TW averages for every item the builder is tracking; unitsOnHandAvg looks up by item (returning null for untracked items).

Constructors

Link copied to clipboard
constructor(builder: DemandLoadBuilder, perItemUnitsOnHand: Map<ItemType, Double>, totalLoadsShipped: Double)

Properties

Link copied to clipboard
open override val builder: DemandLoadBuilder
Link copied to clipboard
Link copied to clipboard
open override val totalLoadsShipped: Double

Count of loads this builder formed (and the carrier shipped).

Functions

Link copied to clipboard
open override fun unitsOnHandAvg(item: ItemType): Double?

Time-weighted on-hand units of item queued in this builder during the post-warmup window, or null if this builder is not tracking item.