LeadTimeOrderFiller

open class LeadTimeOrderFiller @JvmOverloads constructor(parent: ModelElement, initialAvailability: Boolean = true, name: String? = null) : OrderFillerAbstract(source)

Concrete OrderFillerAbstract that fills incoming orders by routing each demand on the order through an internal LeadTimeDemandFiller. Filled orders are shipped via orderShipper (if set) or immediately transition through ship -> deliver.

Parameters

parent

the parent model element (typically a SupplyChainModel)

initialAvailability

availability at the start of each replication

name

optional model-element name

See sc.inventorylayer.LeadTimeOrderFiller

Constructors

Link copied to clipboard
constructor(parent: ModelElement, initialAvailability: Boolean = true, name: String? = null)

Types

Link copied to clipboard

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

Properties

Link copied to clipboard

Inner demand-filler used for every demand on every incoming order.

Link copied to clipboard
protected val myNumOnOrder: TWResponse

Time-weighted "number of orders currently in process" statistic.

Link copied to clipboard

Optional shipper for filled orders; null → zero-delay ship+deliver.

Functions

Link copied to clipboard
fun addLeadTime(itemType: ItemType, distribution: RVariableIfc)

Register a lead-time distribution; delegates to the inner filler.

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

True if this filler can fill the item type of demand.

Link copied to clipboard
open override fun fill(order: SupplyChainModel.Order)

Fill a previously received order. Must be called at the same simulation time as the receipt.

Link copied to clipboard

Java's negotiate is a TODO stub returning null; preserved.

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

Includes the model name, the id, the model element name, the parent name, and parent id