summaryrefslogtreecommitdiff
path: root/sources/core/VSTask.java
diff options
context:
space:
mode:
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;