ProcessActivator

constructor(entityCreator: () -> T, initialCountLimit: Int = 1, processName: String? = null, resetCountOption: Boolean = true, activationPriority: Int = KSLEvent.DEFAULT_PRIORITY, 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

initialCountLimit

the limit to use to indicate when to activate the entity

processName

the name of the process, from the process() function that will be activated

resetCountOption

if true the counter will be reset after an activation occurs. True is the default. True allows multiple activations based on the count limit.

activationPriority

the priority for scheduling the activation at the time the counter is reached

name

the model element name, must be unique.