Transport Delay
open class TransportDelay @JvmOverloads constructor(parent: ModelElement, transportTime: RVariableIfc = ConstantRV.ZERO, name: String? = null) : ModelElement(source)
Models a transport delay: when startDelay is called for a demand, the demand is placed in SHIPPED, a delay is scheduled, and at the end of the delay the demand is placed in DELIVERED. Per-shipment statistics — transit time, amount in transit, number of shipments — are collected automatically.
Parameters
parent
the parent model element
transport Time
caller-supplied transport-time distribution. Defaults to ConstantRV.ZERO for zero-delay transport.
name
optional model-element name
See sc.transportlayer.TransportDelay
Constructors
Link copied to clipboard
constructor(parent: ModelElement, transportTime: RVariableIfc = ConstantRV.ZERO, name: String? = null)
Properties
Functions
Link copied to clipboard
Sample a single transport-time value.
Link copied to clipboard
Swap the underlying transport-time source between replications.
Link copied to clipboard
Place demand in transit. Increments the in-transit counter, transitions the demand to SHIPPED, and schedules the delivery event at the sampled delay.