InventoryCostCalculator

constructor(parent: ModelElement, inv: Inventory, paramsProvider: () -> CostParams, name: String? = null)(source)

Parameters

parent

the ModelElement parent (typically the owning CostFormulation)

inv

the Inventory this calculator observes — the calculator reads inv.itemType directly; no separate item constructor argument is needed

paramsProvider

supplies the cost-rate parameters, resolved at each replication end so rate changes made between replications (e.g. via controls on the owning formulation) take effect