summaryrefslogtreecommitdiff
path: root/sources/core/VSTask.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-19 00:55:18 +0000
committerPaul Buetow <paul@buetow.org>2008-05-19 00:55:18 +0000
commitc91c5aa93d701eccda88112ab4a078b5057d6c33 (patch)
treea3aac3f3d33bbb6c2afdc3840061e78582a3ecae /sources/core/VSTask.java
parentf3644572ea68aacf96ce5a1a9b9e5ce2cf617d95 (diff)
Bugfix in the TaskManager.insert method.
Diffstat (limited to 'sources/core/VSTask.java')
-rw-r--r--sources/core/VSTask.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java
index a476e35..7c2b067 100644
--- a/sources/core/VSTask.java
+++ b/sources/core/VSTask.java
@@ -47,6 +47,13 @@ public class VSTask implements Comparable {
return false;
}
+ public boolean timeOver() {
+ if (isGlobalTimed)
+ return taskTime < process.getGlobalTime();
+
+ return taskTime < process.getTime();
+ }
+
public boolean equals(VSTask task) {
return event.equals(task.getEvent())
&& taskTime == task.getTaskTime()
@@ -176,6 +183,7 @@ public class VSTask implements Comparable {
else if (taskTime > task.getTaskTime())
return 1;
+ /* If it's a ProtocolEvent, it should get handled first */
boolean a = event instanceof ProtocolEvent;
boolean b = task.getEvent() instanceof ProtocolEvent;