diff options
Diffstat (limited to 'sources/events')
| -rw-r--r-- | sources/events/VSAbstractEvent.java | 10 | ||||
| -rw-r--r-- | sources/events/VSRegisteredEvents.java | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sources/events/VSAbstractEvent.java b/sources/events/VSAbstractEvent.java index 510169b..d2c1352 100644 --- a/sources/events/VSAbstractEvent.java +++ b/sources/events/VSAbstractEvent.java @@ -25,7 +25,7 @@ package events; import java.io.*; -import core.VSProcess; +import core.VSInternalProcess; import exceptions.*; import prefs.VSPrefs; import serialize.*; @@ -46,7 +46,7 @@ abstract public class VSAbstractEvent extends VSPrefs { public VSPrefs prefs; /** The process. */ - public VSProcess process; + public VSInternalProcess process; /** The event shortname. */ private String eventShortname; @@ -60,7 +60,7 @@ abstract public class VSAbstractEvent extends VSPrefs { * @param theProcess The new process * @return The copy */ - final public VSAbstractEvent getCopy(VSProcess theProcess) + final public VSAbstractEvent getCopy(VSInternalProcess theProcess) throws VSEventNotCopyableException { if (theProcess == null) @@ -94,7 +94,7 @@ abstract public class VSAbstractEvent extends VSPrefs { * * @param process the process */ - public void init(VSProcess process) { + public void init(VSInternalProcess process) { if (this.process == null) { this.process = process; this.prefs = process.getPrefs(); @@ -166,7 +166,7 @@ abstract public class VSAbstractEvent extends VSPrefs { * * @return the process */ - public VSProcess getProcess() { + public VSInternalProcess getProcess() { return process; } diff --git a/sources/events/VSRegisteredEvents.java b/sources/events/VSRegisteredEvents.java index 5f188d9..15c4023 100644 --- a/sources/events/VSRegisteredEvents.java +++ b/sources/events/VSRegisteredEvents.java @@ -89,8 +89,8 @@ public final class VSRegisteredEvents { "Basic Multicast", "Basic Multicast"); registerEvent("protocols.implementations.VSBerkelyTimeProtocol", "Berkeley Algorithmus zur internen Sync.", "Berkeley"); - registerEvent("protocols.implementations.VSBroadcastSturmProtocol", - "Broadcaststurm", null); + registerEvent("protocols.implementations.VSBroadcastProtocol", + "Broadcast", null); registerEvent("protocols.implementations.VSDummyProtocol", "Beispiel/Dummy", null); registerEvent("protocols.implementations.VSExternalTimeSyncProtocol", @@ -322,7 +322,7 @@ public final class VSRegisteredEvents { * @return An instance of the event classname, if exists. Else null. */ public static VSAbstractEvent createEventInstanceByClassname( - String eventClassname, VSProcess process) { + String eventClassname, VSInternalProcess process) { Object protocolObj = new VSClassLoader().newInstance(eventClassname); if (protocolObj instanceof VSAbstractEvent) { @@ -343,7 +343,7 @@ public final class VSRegisteredEvents { * @return An instance of the event, if exists. Else null. */ public static VSAbstractEvent createEventInstanceByName(String eventName, - VSProcess process) { + VSInternalProcess process) { return createEventInstanceByClassname( eventClassnamesByNames.get(eventName), process); } |
