EntityGenerator

constructor(entityCreator: () -> T, timeUntilTheFirstEntity: RVariableIfc, timeBtwEvents: RVariableIfc, maxNumberOfEvents: Long = Long.MAX_VALUE, timeOfTheLastEvent: Double = Double.POSITIVE_INFINITY, activationPriority: Int = KSLEvent.DEFAULT_PRIORITY + 1, name: String? = null)(source)

Parameters

entityCreator

the thing that creates the entities of the particular type. Typically, a reference to the constructor of the class

timeUntilTheFirstEntity

the time until the first entity creation

timeBtwEvents

the time between entity creation

maxNumberOfEvents

the maximum number of entities to create

timeOfTheLastEvent

the time of the last entity creation

activationPriority

the priority for the activation of the entity

name

a name for the generator