NetworkAnimationEmitter

A NetworkObserver that emits the station-network flow events: AnimationEvent.EnteredNetwork when a QObject enters through an ingress, AnimationEvent.ExitedNetwork when it leaves (is disposed) through an egress, and AnimationEvent.Transferred when it is handed off to another network at an egress. Attach with network.attachNetworkObserver(NetworkAnimationEmitter(network)); the network is unchanged.

The QObject's numeric id identifies the flowing entity; ports are identified by their NetworkIngress.portName/NetworkEgress.portName.

Parameters

network

the station network whose flow to animate

Constructors

Link copied to clipboard
constructor(network: StationNetwork)

Functions

Link copied to clipboard
open override fun enteredNetwork(qObject: ModelElement.QObject, ingress: NetworkIngress)

Called immediately after qObject enters the network through ingress.

Link copied to clipboard
open override fun exitedNetwork(qObject: ModelElement.QObject, egress: NetworkEgress)

Called immediately after qObject is disposed by the network at egress.

Link copied to clipboard
open override fun transferred(qObject: ModelElement.QObject, egress: NetworkEgress)

Called immediately after qObject is handed off (transferred) at egress.