SinkStation

A SinkStation is the network's terminal egress: it disposes of the QObject instances it receives, decrementing the number in the system and recording the total time in the system. It is the self-contained special case of a NetworkEgress and generalizes DisposalStation by tying the disposal into the owning StationNetwork's system-level responses and event stream.

Typically created via StationNetwork.sink.

Parameters

network

the network this sink belongs to

name

the name of the station

Properties

Link copied to clipboard
open override val hasOnwardRouting: Boolean

True if this node has any onward routing configured (a static next receiver, a station-level sender, or a class route). A non-terminal node for which this is false — and which is not a non-terminal step of a registered route — is a dangling node and fails validation.

Link copied to clipboard
open override val portName: String

The name of this port, unique within its StationNetwork.

Functions

Link copied to clipboard
open override fun outlets(): List<QObjectReceiverIfc>

The statically known receivers this node may route to. Best-effort: empty when the node has no static link or when its routing is opaque (for example, a probabilistic sender whose destinations are not introspectable).

Link copied to clipboard
open override fun receive(arrivingQObject: ModelElement.QObject)