From 0e2e70d5a393024f3ae4a3a3560b4df51075000a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 11 Jun 2008 09:48:10 +0000 Subject: More javadoc. Several bugfixes. New feauture: Boolean: sim.periodic A lot of more which i forgot! --- sources/events/internal/VSMessageReceiveEvent.java | 43 ++-------------------- 1 file changed, 3 insertions(+), 40 deletions(-) (limited to 'sources/events/internal/VSMessageReceiveEvent.java') diff --git a/sources/events/internal/VSMessageReceiveEvent.java b/sources/events/internal/VSMessageReceiveEvent.java index 8972ce5..072c2d6 100644 --- a/sources/events/internal/VSMessageReceiveEvent.java +++ b/sources/events/internal/VSMessageReceiveEvent.java @@ -26,9 +26,8 @@ package events.internal; import java.io.*; import core.VSMessage; -import events.VSAbstractEvent; import protocols.VSAbstractProtocol; -import serialize.VSSerialize; +import serialize.VSNotSerializable; /** * The class VSMessageReceiveEvent. This event is used if a process receives @@ -36,7 +35,8 @@ import serialize.VSSerialize; * * @author Paul C. Buetow */ -public class VSMessageReceiveEvent extends VSAbstractEvent { +public class VSMessageReceiveEvent extends VSAbstractInternalEvent +implements VSNotSerializable { /** The serioal version uid */ private static final long serialVersionUID = 1L; @@ -109,41 +109,4 @@ public class VSMessageReceiveEvent extends VSAbstractEvent { return true; } - - /* (non-Javadoc) - * @see serialize.VSSerializable#serialize(serialize.VSSerialize, - * java.io.ObjectOutputStream) - */ - public synchronized void serialize(VSSerialize serialize, - ObjectOutputStream objectOutputStream) - throws IOException { - super.serialize(serialize, objectOutputStream); - - /** For later backwards compatibility, to add more stuff */ - objectOutputStream.writeObject(new Boolean(false)); - - /** For later backwards compatibility, to add more stuff */ - objectOutputStream.writeObject(new Boolean(false)); - } - - /* (non-Javadoc) - * @see serialize.VSSerializable#deserialize(serialize.VSSerialize, - * java.io.ObjectInputStream) - */ - @SuppressWarnings("unchecked") - public synchronized void deserialize(VSSerialize serialize, - ObjectInputStream objectInputStream) - throws IOException, ClassNotFoundException { - super.deserialize(serialize, objectInputStream); - - if (VSSerialize.DEBUG) - System.out.println("Deserializing: VSProtocolEvent"); - - /** For later backwards compatibility, to add more stuff */ - objectInputStream.readObject(); - - /** For later backwards compatibility, to add more stuff */ - objectInputStream.readObject(); - - } } -- cgit v1.2.3