diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-26 19:12:29 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-26 19:12:29 +0000 |
| commit | a2cd723c26d9999b752ca5474f7a24de952b5fdb (patch) | |
| tree | 611282b1e2e9e059180078324f1efcc93406fa9c /sources/core/VSTask.java | |
| parent | 05d5e9fd51052e8f63a49a7e9529e7e710ca0e0a (diff) | |
All abstract classes now have an Abstract in it's name
Diffstat (limited to 'sources/core/VSTask.java')
| -rw-r--r-- | sources/core/VSTask.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java index 2c6500f..dc55fcc 100644 --- a/sources/core/VSTask.java +++ b/sources/core/VSTask.java @@ -8,7 +8,7 @@ import events.*; import events.implementations.*; import events.internal.*; import prefs.VSPrefs; -import protocols.VSProtocol; +import protocols.VSAbstractProtocol; /** * The Class VSTask. An object of this class represents a task to do or done. @@ -29,7 +29,7 @@ public class VSTask implements Comparable { private long taskTime; /** The event. */ - private VSEvent event; + private VSAbstractEvent event; /** The process. */ private VSProcess process; @@ -57,7 +57,7 @@ public class VSTask implements Comparable { * @param event the event * @param isLocal the taks is local timed */ - public VSTask(long taskTime, VSProcess process, VSEvent event, boolean isLocal) { + public VSTask(long taskTime, VSProcess process, VSAbstractEvent event, boolean isLocal) { this.process = process; this.taskTime = taskTime > 0 ? taskTime : 0; this.event = event; @@ -118,9 +118,9 @@ public class VSTask implements Comparable { * * @return true, if it's a task using the protocol object. */ - public boolean isProtocol(VSProtocol protocol) { - if (event instanceof VSProtocol) - return ((VSProtocol) event).equals(protocol); + public boolean isProtocol(VSAbstractProtocol protocol) { + if (event instanceof VSAbstractProtocol) + return ((VSAbstractProtocol) event).equals(protocol); return false; } @@ -200,7 +200,7 @@ public class VSTask implements Comparable { * * @return the event */ - public VSEvent getEvent() { + public VSAbstractEvent getEvent() { return event; } |
