SinkNode

A sink that represents the output destination for successfully processed entities.

Parameters

InputT

the type of entities received

label

the name of this node

source

the input channel from which entities are received

Constructors

Link copied to clipboard
constructor(label: String, source: PushInputChannel<InputT>)

Properties

Link copied to clipboard
override val incoming: List<InputChannel<*, *>>
Link copied to clipboard
Link copied to clipboard
override var occupants: Int

the total number of entities that have arrived at this sink

Link copied to clipboard
override val outgoing: List<OutputChannel<*, *>>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun onEnter(callback: context(Simulator) (InputT) -> Unit)

Registers a callback to be invoked when an entity enters this container.

Link copied to clipboard
open override fun onLeave(callback: context(Simulator) (InputT) -> Unit)

Sink nodes do not support leaving callbacks (entities reaching sinks do not leave).

Link copied to clipboard
context(_: Simulator)
open fun onStart()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String