diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-31 04:02:24 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-31 04:02:24 +0000 |
| commit | ddac26dd4d1aafeaa714f2eb77cbfc7d244a053f (patch) | |
| tree | 9cc6d909fbff40db9484f6668c52b36fd03d8802 /sources/core/VSTaskManager.java | |
| parent | f32bc24469d0e0d8e184c6a27fe04b13f59d6fb0 (diff) | |
bugfix!
Diffstat (limited to 'sources/core/VSTaskManager.java')
| -rw-r--r-- | sources/core/VSTaskManager.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sources/core/VSTaskManager.java b/sources/core/VSTaskManager.java index b12b093..7d57eea 100644 --- a/sources/core/VSTaskManager.java +++ b/sources/core/VSTaskManager.java @@ -348,8 +348,8 @@ public class VSTaskManager { * * @return the local timed tasks */ - public synchronized VSPriorityQueue<VSTask> getLocalTasks() { - VSPriorityQueue<VSTask> localTasks = new VSPriorityQueue<VSTask>(); + public synchronized ArrayList<VSTask> getLocalTasks() { + ArrayList<VSTask> localTasks = new ArrayList<VSTask>(); Vector<VSProcess> processes = simulatorCanvas.getProcesses(); for (VSTask task : fullfilledProgrammedTasks) @@ -372,8 +372,8 @@ public class VSTaskManager { * * @return the global timed tasks */ - public synchronized VSPriorityQueue<VSTask> getGlobalTasks() { - VSPriorityQueue<VSTask> globalTasks = new VSPriorityQueue<VSTask>(); + public synchronized ArrayList<VSTask> getGlobalTasks() { + ArrayList<VSTask> globalTasks = new ArrayList<VSTask>(); for (VSTask task : fullfilledProgrammedTasks) if (task.isGlobalTimed()) @@ -393,9 +393,9 @@ public class VSTaskManager { * * @return the local tasks of the specified process */ - public synchronized VSPriorityQueue<VSTask> getProcessLocalTasks( + public synchronized ArrayList<VSTask> getProcessLocalTasks( VSProcess process) { - VSPriorityQueue<VSTask> processTasks = new VSPriorityQueue<VSTask>(); + ArrayList<VSTask> processTasks = new ArrayList<VSTask>(); VSPriorityQueue<VSTask> tasks = process.getTasks(); for (VSTask task : fullfilledProgrammedTasks) @@ -417,9 +417,9 @@ public class VSTaskManager { * * @return the global timed tasks of the specified process */ - public synchronized VSPriorityQueue<VSTask> getProcessGlobalTasks( + public synchronized ArrayList<VSTask> getProcessGlobalTasks( VSProcess process) { - VSPriorityQueue<VSTask> processTasks = new VSPriorityQueue<VSTask>(); + ArrayList<VSTask> processTasks = new ArrayList<VSTask>(); for (VSTask task : fullfilledProgrammedTasks) if (task.isGlobalTimed() && task.isProcess(process) && |
