activate

fun activate(process: KSLProcess, timeUntilActivation: GetValueIfc, priority: Int = KSLEvent.DEFAULT_PRIORITY): KSLEvent<KSLProcess>(source)

Cause the entity to start the process. The activation of the process is governed by an event that is scheduled to occur at the specified activation time.

Asked for while the entities are terminated at the end of a replication (isReplicationEnding), as from a termination hook, the activation is dropped: the event returned is not on the calendar, and the entity is left as it was.

Return

the scheduled activation event

Parameters

process

the process to start for an entity

timeUntilActivation

the time until the start of the process

priority

the priority associated with the event to start the process


fun activate(process: KSLProcess, timeUntilActivation: Double = 0.0, priority: Int = KSLEvent.DEFAULT_PRIORITY): KSLEvent<KSLProcess>(source)

Cause the entity to start the process. The activation of the process is governed by an event that is scheduled to occur at the specified activation time.

Asked for while the entities are terminated at the end of a replication (isReplicationEnding), as from a termination hook, the activation is dropped: the event returned is not on the calendar, and the entity is left as it was.

Return

the scheduled activation event. While a replication's entities are terminated at its end (isReplicationEnding), no event can happen: the activation is dropped and the event returned is not scheduled.

Parameters

process

the process to start for an entity

timeUntilActivation

the time until the start the process

priority

the priority associated with the event to start the process