summaryrefslogtreecommitdiff
path: root/sources/core/VSProcess.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-31 03:41:18 +0000
committerPaul Buetow <paul@buetow.org>2008-05-31 03:41:18 +0000
commitf32bc24469d0e0d8e184c6a27fe04b13f59d6fb0 (patch)
tree2bd245377baf56d2cccad26a9cc56f88b232140b /sources/core/VSProcess.java
parent28c8f68ecef4b4e30994ae1c1fd201a0cd871f0d (diff)
local timed tasks bugfix.
Diffstat (limited to 'sources/core/VSProcess.java')
-rw-r--r--sources/core/VSProcess.java22
1 files changed, 22 insertions, 0 deletions
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<VSTask> 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<VSTask>();
processID = simulatorCanvas.processIDCount();
random = new VSRandom(processID*processNum+processID+processNum);
@@ -944,6 +948,24 @@ public class VSProcess extends VSPrefs {
}
/**
+ * Gets the tasks of the process.
+ *
+ * @return The tasks
+ */
+ public VSPriorityQueue<VSTask> getTasks() {
+ return tasks;
+ }
+
+ /**
+ * Sets the tasks of the process.
+ *
+ * @tasks The tasks
+ */
+ public void setTasks(VSPriorityQueue<VSTask> tasks) {
+ this.tasks = tasks;
+ }
+
+ /**
* Gets the protocol object.
*
* @param protocolClassname the protocol classname