From c91c5aa93d701eccda88112ab4a078b5057d6c33 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 19 May 2008 00:55:18 +0000 Subject: Bugfix in the TaskManager.insert method. --- sources/core/VSTask.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sources/core/VSTask.java') 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; -- cgit v1.2.3