TransportDelay

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

transportTime

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

Link copied to clipboard

Read-only view of the amount-in-transit response.

Link copied to clipboard

Read-only view of the shipment counter.

Link copied to clipboard

Read-only view of the transit-time response.

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.

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