SourceNode

abstract class SourceNode(label: String, outgoing: List<PushOutputChannel<*>>) : Node

Base class for source nodes (nodes with no incoming channels).

Source nodes generate entities that enter the simulation network. They must override onStart to begin generating entities.

Constructors

Link copied to clipboard
constructor(label: String, outgoing: List<PushOutputChannel<*>>)

Properties

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

input channels connected to this node

Link copied to clipboard

human-readable name for this node group

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

output channels connected to this node

Link copied to clipboard

The parent node group, if this group was created within another group's scope.

Link copied to clipboard

Stack trace at the point this node group was created.

Functions

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

Called when the simulation starts. Must be implemented by subclasses to generate entities.

Link copied to clipboard

Returns the display properties for this object.

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

Prints the label of the NodeGroup