NHPPPiecewiseRateFunctionEventGenerator

constructor(parent: ModelElement, generatorAction: GeneratorActionIfc, rateFunction: PiecewiseRateFunction, streamNum: Int = 0, lastRate: Double = Double.NaN, maxNumberOfEvents: Long = Long.MAX_VALUE, timeOfTheLastEvent: Double = Double.POSITIVE_INFINITY, name: String? = null)

Parameters

parent

the parent

generatorAction

the listener for generation

rateFunction

the rate function

streamNum

the stream number for the underlying NHPP

lastRate

the last rate

maxNumberOfEvents

A long that supplies the maximum number of events to generate. Each time an event is to be scheduled the maximum number of events is checked. If the maximum has been reached, then the generator is turned off. The default is Long.MAX_VALUE. This parameter cannot be Long.MAX_VALUE when the time until next always returns a value of 0.0

timeOfTheLastEvent

A double that supplies a time to stop generating events. When the generator is created, this variable is used to set the ending time of the generator. Each time an event is to be scheduled the ending time is checked. If the time of the next event is past this time, then the generator is turned off and the event won't be scheduled. The default is Double.POSITIVE_INFINITY.

name

the name of the generator