setTimeBetweenEvents

open override fun setTimeBetweenEvents(timeBtwEvents: RandomIfc, maxNumEvents: Long)

Sets the time between events and the maximum number of events for the generator. These two parameters are dependent. The time between events cannot always evaluate to 0.0 if the maximum number of events is infinite (Long.MAX_VALUE). This method only changes these parameters for the current replication. The changes take effect when the next event is generated. If current number of events that have been generated is greater than or equal to the supplied maximum number of events, the generator will be turned off.

Parameters

timeBtwEvents

the time between events

maxNumEvents

the maximum number of events