AggregateTransportResponse

class AggregateTransportResponse @JvmOverloads constructor(parent: ModelElement, baseName: String = parent.name)(source)

Aggregate transport statistics across multiple TransportDelay instances: amount-in-transit (time-weighted), transit time (per-shipment average), and number of shipments.

The transit-time aggregate is a plain Response without an observer chain (KSL has no chaining-aggregator for non-time-weighted responses; same Session-8 deviation as in AggregateInventoryResponse). Callers that want it filled must push values directly.

Parameters

parent

parent model element under which the aggregate responses live

baseName

name prefix for the aggregate responses

See sc.transportlayer.AggregateTransportResponse

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Transit-time aggregate. Plain Response — KSL has no chaining aggregator for non-time-weighted responses. Callers update directly.

Functions

Link copied to clipboard
fun subscribeTo(transportDelay: TransportDelay)

Wire transportDelay's responses into the aggregates. The time-weighted numInTransit and the counter chain via observe(). The transit-time aggregate is NOT chained.

Link copied to clipboard
fun unsubscribeFrom(transportDelay: TransportDelay)