From ddac26dd4d1aafeaa714f2eb77cbfc7d244a053f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 31 May 2008 04:02:24 +0000 Subject: bugfix! --- sources/core/VSTaskManager.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sources/core/VSTaskManager.java') 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 getLocalTasks() { - VSPriorityQueue localTasks = new VSPriorityQueue(); + public synchronized ArrayList getLocalTasks() { + ArrayList localTasks = new ArrayList(); Vector processes = simulatorCanvas.getProcesses(); for (VSTask task : fullfilledProgrammedTasks) @@ -372,8 +372,8 @@ public class VSTaskManager { * * @return the global timed tasks */ - public synchronized VSPriorityQueue getGlobalTasks() { - VSPriorityQueue globalTasks = new VSPriorityQueue(); + public synchronized ArrayList getGlobalTasks() { + ArrayList globalTasks = new ArrayList(); 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 getProcessLocalTasks( + public synchronized ArrayList getProcessLocalTasks( VSProcess process) { - VSPriorityQueue processTasks = new VSPriorityQueue(); + ArrayList processTasks = new ArrayList(); VSPriorityQueue 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 getProcessGlobalTasks( + public synchronized ArrayList getProcessGlobalTasks( VSProcess process) { - VSPriorityQueue processTasks = new VSPriorityQueue(); + ArrayList processTasks = new ArrayList(); for (VSTask task : fullfilledProgrammedTasks) if (task.isGlobalTimed() && task.isProcess(process) && -- cgit v1.2.3