InnerDemandFiller

Internal demand-filler used to route demands on incoming orders. Extends LeadTimeDemandFiller and also serves as the DemandFillerFinderIfc (returns this for every demand).

Diverges from the parent's LeadTimeDemandFiller.fillDemand in one way: does not register the parent's filledListener. The order, not the filler, handles post-fill behavior via the order-level filled listener.

(The Java InnerDemandFiller also skipped incrementing the parent's "in process" counters — a Java oversight that JSL tolerated because its TimeWeighted accepted negative values. KSL's TWResponse rejects negative values, so the counters are incremented here to keep them balanced with the decrement that runs inside the inherited LeadTimeAction.action.)

Constructors

Link copied to clipboard
constructor(parent: ModelElement, name: String)

Functions

Link copied to clipboard
open override fun fillDemand(demand: SupplyChainModel.Demand)

Fill a previously received demand. Must be called at the same simulation time as the receipt — no time may elapse between receive and fillDemand.

Link copied to clipboard

Returns a filler for demand, or null if no suitable filler is available. The caller will typically throw NoDemandFillerFoundException on null.