source

fun source(name: String, interArrivalRV: RVariableIfc, firstReceiver: QObjectReceiverIfc = NotImplementedReceiver, timeUntilFirstRV: RVariableIfc = interArrivalRV, maxArrivals: Long = Long.MAX_VALUE, qObjectClass: QObjectClass? = null, marking: (ModelElement.QObject) -> Unit? = null): SourceStation(source)

Creates a SourceStation that generates arriving QObject instances and injects them into the network. The created station is registered under name and returned for further wiring.

Parameters

name

the node name, unique within the network

interArrivalRV

the time between successive arrivals

firstReceiver

the receiver that processes generated instances; may be wired later via SourceStation.firstReceiver

timeUntilFirstRV

the time until the first arrival; defaults to interArrivalRV

maxArrivals

the maximum number of arrivals to generate

qObjectClass

optional class template applied to each created instance; when supplied, the class is registered for per-class statistics

marking

optional action applied to each newly created instance (type, attributes)