PriorityScheduler
A Scheduler trait that uses a SortedSet
.
Forms the basis for priority-based schedulers.
Value members
Concrete methods
Adds a TaskInstance to be scheduled.
Adds a TaskInstance to be scheduled.
- Definition Classes
Retrieves an iterable collection of queued TaskInstances.
Retrieves an iterable collection of queued TaskInstances.
- Definition Classes
Removes all TaskInstances belonging to an (presumably aborted) simulation.
Removes all TaskInstances belonging to an (presumably aborted) simulation.
- Definition Classes
Removes a TaskInstance that no longer needs scheduling.
Removes a TaskInstance that no longer needs scheduling.
- Definition Classes
Inherited methods
Adds an Task described by an (ID,time) pair to the list of completed IDs
Adds an Task described by an (ID,time) pair to the list of completed IDs
- Value Params
- id
The ID to be added
- time
The time at which the task completed
- Returns
A LookaheadStructure with this (ID,time) pair added to the list of completed tasks
- Inherited from
- Scheduler
Determines which TaskInstances to start next.
Determines which TaskInstances to start next.
TaskInstances are assumed to be sorted by priority.
- Value Params
- currentTime
The current timestamp.
- resourceMap
The map of available TaskResources.
- tasks
The queue of TaskInstances waiting to be started.
- Returns
The sequence of TaskInstances to start now.
- Inherited from
- Scheduler
Checks if a named TaskResource is idle.
Checks if a named TaskResource is idle.
- Value Params
- r
The name of the TaskResource.
- resourceMap
The map of available TaskResources.
- Returns
true if the resource is idle, false otherwise.
- Inherited from
- Scheduler
Removes the lookahead structure associated with the given actor.
Removes the lookahead structure associated with the given actor.
- Value Params
- actor
The actor corresponding to the lookahead structure.
- Inherited from
- Scheduler
Sets the lookahead structure for the specified actor.
Sets the lookahead structure for the specified actor.
- Value Params
- actor
The actor that created this lookahead structure.
- obj
The lookahead structure.
- Inherited from
- Scheduler