From dbb780b7295c0df60269ee6f3c85c3056d6262b8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 17 May 2008 20:36:00 +0000 Subject: VSEvent interface has now has the init method. --- sources/core/VSTask.java | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'sources/core/VSTask.java') diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java index 26b2485..d481300 100644 --- a/sources/core/VSTask.java +++ b/sources/core/VSTask.java @@ -5,7 +5,7 @@ import events.*; import protocols.VSProtocol; import simulator.*; -public class VSTask implements Comparable { +public class VSTask { //public final static int RUN_ON_CLIENT_START = 1; private long taskTime; private VSEvent event; @@ -114,7 +114,7 @@ public class VSTask implements Comparable { private void onProcessEventStart() { final VSProcessEvent processEvent = (VSProcessEvent) event; - processEvent.onStart(process); + processEvent.onStart(); } public long getTaskTime() { @@ -129,20 +129,6 @@ public class VSTask implements Comparable { process.logg(message); } - public int compareTo(Object object) { - if (object instanceof VSTask) { - final VSTask task = (VSTask) object; - - if (taskTime < task.getTaskTime()) - return -1; - - else if (taskTime > task.getTaskTime()) - return 1; - } - - return 0; - } - public String toString() { String descr = "VSTask: " + getTaskTime(); -- cgit v1.2.3