EventGeneratorCIfc

Permits controlled access to the underlying event generator. Of particular note are the timeUntilFirstEvent and initialTimeBtwEvents properties which govern the arrival process. In addition, the function setInitialEventTimeProcesses() is provided to facilitate the setting of both timeUntilFirstEvent and initialTimeBtwEvents to the same reference, which is a common use case.

Properties

Link copied to clipboard

This value is used to set the ending time for generating actions for each replication. Changing this variable during a replication cause the next replication to use this value for its ending time.

Link copied to clipboard

Controls the maximum number of events to be used to initialize each replication. The time between events cannot evaluate to a constant value of 0.0 if the maximum number of events is infinite (Long.MAX_VALUE). Uses the current value for initial time between events

Link copied to clipboard

Sets the time between events and the maximum number of events to be used to initialize each replication. The time between events cannot evaluate to a constant value of 0.0. The maximum number of events is kept at its current value, which by default is Long.Max_Value. Note that setting the initial time between events does not affect the random variable governing the time of the first event.

Link copied to clipboard

Sets the flag that indicates whether the generator will automatically start at the beginning of a replication when initialized

Link copied to clipboard

Controls the random variable representing the time until the first event that is used at the beginning of each replication to generate the time until the first event. This change becomes effective at the beginning of the next replication to execute

Functions

Link copied to clipboard
abstract fun setInitialEventTimeProcesses(eventTimeProcess: GetValueIfc)

Often the time of the first event and the time between events is the same distribution. This property causes both initialTimeUntilFirstEvent and initialTimeBtwEvents to be set to the same random variable.

abstract fun setInitialTimeBetweenEventsAndMaxNumEvents(initialTimeBtwEvents: GetValueIfc, initialMaxNumEvents: Long = Long.MAX_VALUE)

Sets the time between events and the maximum number of events to be used to initialize each replication. These parameters are dependent. The time between events cannot evaluate to a constant value of 0.0 if the maximum number of events is infinite (Long.MAX_VALUE)