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
inter Arrival RV
the time between successive arrivals
first Receiver
the receiver that processes generated instances; may be wired later via SourceStation.firstReceiver
time Until First RV
the time until the first arrival; defaults to interArrivalRV
max Arrivals
the maximum number of arrivals to generate
q Object Class
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)