Signal
The purpose of this class is to hold entities that are waiting for a signal while executing a KSLProcess. A reference to this class can be used to signal specific, any, or all the entities waiting to proceed within their process.
Parameters
the parent (containing) model element
the name of this signal
the queue discipline for the internal queue that holds the waiting entities
Constructors
Functions
An immutable list representation of the holding queue. While the list is read-only, the elements can be changed. Thus, some care may be needed to understand the effects of such changes. This view is mainly to provide the abilities available in the Kotlin collection classes to working with the waiting entities, which may be used to determine which entities to signal.
Signals the entities that match the predicate to resume their processes if they are waiting for the signal.
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)
Signals the entities in the list to resume their processes if they are waiting for the signal.
The entities remove themselves from the waiting condition.
Use this to signal a specific entity to move in its process. The entity removes itself from the waiting condition.
If the queue is not empty, the first entity in the queue is signaled to proceed.
If the queue is not empty, the last entity in the queue is signaled to proceed.