diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-17 20:36:00 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-17 20:36:00 +0000 |
| commit | dbb780b7295c0df60269ee6f3c85c3056d6262b8 (patch) | |
| tree | d8f084283d6b5b86482e7edb3d7fc786de737ceb /sources/core/VSTask.java | |
| parent | a622ebff377f37d14535f91e484335e2ad215acb (diff) | |
VSEvent interface has now has the init method.
Diffstat (limited to 'sources/core/VSTask.java')
| -rw-r--r-- | sources/core/VSTask.java | 18 |
1 files changed, 2 insertions, 16 deletions
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(); |
