EventGenerator

constructor(parent: ModelElement, generateAction: GeneratorActionIfc? = null, timeUntilFirstRV: RandomIfc = ConstantRV.ZERO, timeBtwEventsRV: RandomIfc = ConstantRV.POSITIVE_INFINITY, maxNumberOfEvents: Long = Long.MAX_VALUE, timeOfTheLastEvent: Double = Double.POSITIVE_INFINITY, name: String? = null)

Parameters

parent

the parent model element

generateAction

The action supplies the generation logic for reacting to the generated event.

timeUntilFirstRV

A RandomIfc object that supplies the time until the first event.

timeBtwEventsRV

A RandomIfc object that supplies the time between events. Must not be a RandomIfc that always returns 0.0, if the maximum number of generations is infinite (Long.MAX_VALUE)

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