diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-19 00:55:18 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-19 00:55:18 +0000 |
| commit | c91c5aa93d701eccda88112ab4a078b5057d6c33 (patch) | |
| tree | a3aac3f3d33bbb6c2afdc3840061e78582a3ecae /sources/core/VSTask.java | |
| parent | f3644572ea68aacf96ce5a1a9b9e5ce2cf617d95 (diff) | |
Bugfix in the TaskManager.insert method.
Diffstat (limited to 'sources/core/VSTask.java')
| -rw-r--r-- | sources/core/VSTask.java | 8 |
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; |
