From f32bc24469d0e0d8e184c6a27fe04b13f59d6fb0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 31 May 2008 03:41:18 +0000 Subject: local timed tasks bugfix. --- sources/core/VSProcess.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'sources/core/VSProcess.java') diff --git a/sources/core/VSProcess.java b/sources/core/VSProcess.java index 6d1b01d..c5a90d9 100644 --- a/sources/core/VSProcess.java +++ b/sources/core/VSProcess.java @@ -87,6 +87,9 @@ public class VSProcess extends VSPrefs { /** The vector time. */ private VSVectorTime vectorTime; + /** The tasks of the process. */ + private VSPriorityQueue tasks; + /** The process has crashed. But may be working again. */ private boolean hasCrashed; @@ -198,6 +201,7 @@ public class VSProcess extends VSPrefs { this.simulatorCanvas = simulatorCanvas; this.logging = logging; + tasks = new VSPriorityQueue(); processID = simulatorCanvas.processIDCount(); random = new VSRandom(processID*processNum+processID+processNum); @@ -943,6 +947,24 @@ public class VSProcess extends VSPrefs { vectorTime.add(new Long(0)); } + /** + * Gets the tasks of the process. + * + * @return The tasks + */ + public VSPriorityQueue getTasks() { + return tasks; + } + + /** + * Sets the tasks of the process. + * + * @tasks The tasks + */ + public void setTasks(VSPriorityQueue tasks) { + this.tasks = tasks; + } + /** * Gets the protocol object. * -- cgit v1.2.3