Event Generator Ifc
An interface to define how event generators operate. The primary subclass is EventGenerator. Of particular note is the use of initial parameters:
initial time of first event initial time between events initial maximum number of events initial ending time
These parameters control the initial state of the generator at the start of each replication. The generator is re-initialized to these values at the start of each replication. There are also parameters for each of these that can be changed during a replication. The effect of that change is only within the current replication.
Author
rossetti
Inheritors
Properties
Can be used to supply logic to invoke when the generator's ending time is finite and the generator is turned off.
Controls the ending time for generating events for the current replication. A new ending time will be applied to the generator. If this change results in an ending time that is less than the current time, the generator will be turned off
Gets the number of events that have been generated by the generator
The action for the events for generation
true if an event is scheduled to occur for the generator
Indicates whether the generator has been suspended
A long representing the maximum number of events for the generator. Sets the maximum number of events for the generator. Must not be infinite (Long.MAX_VALUE) if the current time between events is 0.0. This only controls the current replication.
Functions
This method turns the generator off, the next scheduled generation event will NOT occur, i.e. this method will also cancel a previously scheduled generation event if one exists. No future events will be scheduled after turning off the generator
If the generator was not started upon initialization at the beginning of a replication, then this method can be used to start the generator