signal

fun signal(entity: ProcessModel.Entity, resumePriority: Int = KSLEvent.DEFAULT_PRIORITY)

Use this to signal a specific entity to move in its process. The entity removes itself from the waiting condition.

Parameters

entity

the entity to signal

resumePriority

to use to order resumptions that occur at the same time


fun signal(rank: Int = 0, resumePriority: Int = KSLEvent.DEFAULT_PRIORITY)

The entity removes itself from the waiting condition. If there are no entities, or the rank is out of range, then nothing happens (no signal)

Parameters

rank

the rank goes from 0 to size-1

resumePriority

to use to order resumptions that occur at the same time


fun signal(range: IntRange, resumePriority: Int = KSLEvent.DEFAULT_PRIORITY)

The entities remove themselves from the waiting condition.

Parameters

range

the range associated with the signal

resumePriority

to use to order resumptions that occur at the same time