Source

interface Source<out T>

Indicates a source node, which can emit entities, representing entities coming from the outside world into the port network

Inheritors

Functions

Link copied to clipboard
abstract fun onEmit(callback: context(Simulator) (T) -> Unit)

Callback the source node would execute when emitting an entity