CostLine

sealed class CostLine(val displayName: String)(source)

Identifier for a single line item produced by a CostFormulation. Used as a key in CostCalculator.lineResponses and as the index into CostFormulation.byLineResponse for per-line rollup queries.

The complete list of v1 line items is exposed via all so formulations can iterate over every line when building rollup aggregates. v2 line items (introduced by Phase 5 — backorder, stockout, lost-sale, unit-shortage) are included here from the start so the formulation infrastructure does not need to grow as those calculators land.

Inheritors

Constructors

Link copied to clipboard
protected constructor(displayName: String)

Types

Link copied to clipboard

Continuous-rate backorder cost (per IHP).

Link copied to clipboard
object Companion
Link copied to clipboard

ES-tier outbound loading cost.

Link copied to clipboard
object Holding : CostLine

On-hand inventory holding cost (per (IHP, item)).

Link copied to clipboard

Goods-in-transit holding cost (per (IHP, item)).

Link copied to clipboard
object Loading : CostLine

Per-edge outbound shipment loading cost.

Link copied to clipboard

Per-event lost-sale cost (per (IHP, item)).

Link copied to clipboard

Replenishment ordering cost (per (IHP, item)).

Link copied to clipboard

Shipment-builder on-hand holding cost (per (IHP / CD, builder, item) when shipment formation is enabled).

Link copied to clipboard

Per-edge outbound shipment transport cost.

Link copied to clipboard

Per-event stockout cost (per (IHP, item)).

Link copied to clipboard

Per-unit-short shortage cost (per (IHP, item)).

Link copied to clipboard

Per-edge inbound shipment unloading cost (per IHP / CD).

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String