Entity Sequence Generator
protected inner class EntitySequenceGenerator<T : ProcessModel.Entity>(entityCreator: () -> T, timeUntilTheFirstEntity: RVariableIfc, timeBtwEvents: RVariableIfc, maxNumberOfEvents: Long = Long.MAX_VALUE, timeOfTheLastEvent: Double = Double.POSITIVE_INFINITY, var activationPriority: Int = KSLEvent.DEFAULT_PRIORITY + 1, name: String? = null) : EventGenerator(source)
Note that an EntitySequenceGenerator relies on the entity having at least one process that has been added to its process sequence and the entity's addToSequence property being true. The generator will create the entity and activate the process that is listed first in its process sequence. If the entity does not have any processes in its process sequence then an illegal state exception will occur.
Parameters
entity Creator
the thing that creates the entities of the particular type. Typically, a reference to the constructor of the class
time Until The First Entity
the time until the first entity creation
time Btw Events
the time between entity creation
max Number Of Events
the maximum number of entities to create
time Of The Last Event
the time of the last entity creation
activation Priority
the priority for the activation of the entity
name
a name for the generator
Constructors
Link copied to clipboard
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)