All Packages Class Hierarchy This Package Previous Next Index
Class calypso.util.tasc.PriorityTaskBasicScheduler
java.lang.Object
|
+----calypso.util.tasc.PriorityTaskBasicScheduler
- public class PriorityTaskBasicScheduler
- extends Object
- implements PriorityTaskScheduler
A basic scheduler for priority tasks.
- Author:
- Petteri Koponen
- See Also:
- PriorityTask, PriorityTaskSHandle
-
_continue
- This is true, if the scheduler should continue executing tasks.
-
_handleList
- An ordered list that contains PriorityTaskSHandles.
-
PriorityTaskBasicScheduler()
-
-
makePriorityTaskSHandle(PriorityTask)
- Returns a priority task scheduling handle for a priority task.
-
makeTaskSHandle(Task)
- Returns a task scheduling handle for (ordinary) tasks.
-
run()
- Executes the scheduler.
-
stop()
- Stops the scheduling.
_continue
boolean _continue
- This is true, if the scheduler should continue executing tasks.
_handleList
OrderedList _handleList
- An ordered list that contains PriorityTaskSHandles.
- See Also:
- OrderedList
PriorityTaskBasicScheduler
public PriorityTaskBasicScheduler()
makePriorityTaskSHandle
public PriorityTaskSHandle makePriorityTaskSHandle(PriorityTask task_)
- Returns a priority task scheduling handle for a priority task.
- Parameters:
- task_ - A priority task.
- Returns:
- A priority task scheduling handle.
makeTaskSHandle
public TaskSHandle makeTaskSHandle(Task task_)
- Returns a task scheduling handle for (ordinary) tasks.
The priority of the handle equals the default priority.
TODO (0,5 h) - Write down priority levels somewhere.
- Parameters:
- task_ - A task.
- Returns:
- A task scheduling handle.
run
public synchronized void run()
- Executes the scheduler.
TODO (1 h) - Exception handling of the wait() method???
stop
public synchronized void stop()
- Stops the scheduling.
This method causes the scheduler to return from its run() method and
by doing so to deactivate its thread. However, this method does not
clear the queue(s) of the thread.
All Packages Class Hierarchy This Package Previous Next Index