PumpNode

class PumpNode<T>(label: String, source: PullInputChannel<T>, destination: PushOutputChannel<T>) : Node

Converts from pull-based to push-based flow. Actively pulls entities from the source and pushes them to the destination when both are ready.

Parameters

T

the type of entities being pumped

label

the name of this node

source

the input channel from which entities are pulled

destination

the output channel where entities are pushed

Constructors

Link copied to clipboard
constructor(label: String, source: PullInputChannel<T>, destination: PushOutputChannel<T>)

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
context(_: Simulator)
open fun onStart()
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String