diff options
Diffstat (limited to 'sources/core/VSProcess.java')
| -rw-r--r-- | sources/core/VSProcess.java | 22 |
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 |
