diff options
| author | Paul Buetow <paul@buetow.org> | 2008-08-07 07:32:29 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-08-07 07:32:29 +0000 |
| commit | f33c1714f67627848983bc2f9d179bde63da3d80 (patch) | |
| tree | 0fda416822e20c9895f7430eab68ba54220ba6bd /sources/events | |
| parent | 5f388cca7c19d44a3928f4cfe7244faabeb2faff (diff) | |
written a lot
Diffstat (limited to 'sources/events')
| -rw-r--r-- | sources/events/VSAbstractEvent.java | 7 | ||||
| -rw-r--r-- | sources/events/internal/VSProtocolEvent.java | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sources/events/VSAbstractEvent.java b/sources/events/VSAbstractEvent.java index d2c1352..4714b96 100644 --- a/sources/events/VSAbstractEvent.java +++ b/sources/events/VSAbstractEvent.java @@ -25,6 +25,7 @@ package events; import java.io.*; +import core.VSAbstractProcess; import core.VSInternalProcess; import exceptions.*; import prefs.VSPrefs; @@ -46,7 +47,7 @@ abstract public class VSAbstractEvent extends VSPrefs { public VSPrefs prefs; /** The process. */ - public VSInternalProcess process; + public VSAbstractProcess process; /** The event shortname. */ private String eventShortname; @@ -64,7 +65,7 @@ abstract public class VSAbstractEvent extends VSPrefs { throws VSEventNotCopyableException { if (theProcess == null) - theProcess = process; + theProcess = (VSInternalProcess) process; if (!(this instanceof VSCopyableEvent)) throw new VSEventNotCopyableException( @@ -166,7 +167,7 @@ abstract public class VSAbstractEvent extends VSPrefs { * * @return the process */ - public VSInternalProcess getProcess() { + public VSAbstractProcess getProcess() { return process; } diff --git a/sources/events/internal/VSProtocolEvent.java b/sources/events/internal/VSProtocolEvent.java index 1ccb700..76caff0 100644 --- a/sources/events/internal/VSProtocolEvent.java +++ b/sources/events/internal/VSProtocolEvent.java @@ -25,9 +25,11 @@ package events.internal; import java.io.*; +import core.VSInternalProcess; import events.*; import protocols.VSAbstractProtocol; import serialize.VSSerialize; +import simulator.VSSimulatorCanvas; /** * The class VSProtocolEvent, this event is used if a protocol (server or @@ -122,8 +124,9 @@ public class VSProtocolEvent extends VSAbstractInternalEvent * @see events.VSAbstractEvent#onStart() */ public void onStart() { + VSInternalProcess internalProcess = (VSInternalProcess) process; VSAbstractProtocol protocol = - process.getProtocolObject(protocolClassname); + internalProcess.getProtocolObject(protocolClassname); if (isClientProtocol) protocol.isClient(isProtocolActivation); |
