ArrivalNode

Simulates connections to the outside world. Generates entities according to a provided Generator and sends them to its output channel at scheduled times. Acts as the entry point for traffic into the simulation.

Parameters

OutputT

the type of entities generated

label

the name of this node

destination

the output channel where generated entities are sent

generator

the Generator that produces entities and their inter-arrival times

Constructors

Link copied to clipboard
constructor(label: String, destination: PushOutputChannel<OutputT>, generator: Generator<OutputT>)

Properties

Link copied to clipboard
override val incoming: List<InputChannel<*, *>>
Link copied to clipboard
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 onCreateProgressBar(callback: context(Simulator) (label: String, delay: Duration) -> Unit)

Registers a callback to be invoked when a progress bar should be displayed.

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

Registers a callback to be invoked when an entity is emitted.

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

Initializes the arrival node by scheduling the first arrival.

Link copied to clipboard
open override fun properties(): List<DisplayProperty>

Provides display properties from the Generator.

Link copied to clipboard
open override fun toString(): String