summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/core/VSMessage.java1
-rw-r--r--sources/core/VSProcess.java1
-rw-r--r--sources/core/VSTask.java1
-rw-r--r--sources/core/VSTaskManager.java1
-rw-r--r--sources/core/time/VSLamportTime.java1
-rw-r--r--sources/core/time/VSTime.java1
-rw-r--r--sources/events/VSEvent.java2
-rw-r--r--sources/events/VSRegisteredEvents.java2
-rw-r--r--sources/events/implementations/ProcessRecoverEvent.java1
-rw-r--r--sources/events/internal/MessageReceiveEvent.java1
-rw-r--r--sources/events/internal/ProtocolEvent.java1
-rw-r--r--sources/prefs/editors/VSBetterEditor.java1
-rw-r--r--sources/prefs/editors/VSEditor.java1
-rw-r--r--sources/prefs/editors/VSEditorFrame.java1
-rw-r--r--sources/prefs/editors/VSProcessEditor.java1
-rw-r--r--sources/prefs/editors/VSSimulatorEditor.java1
-rw-r--r--sources/protocols/VSProtocol.java1
-rw-r--r--sources/protocols/implementations/BerkelyTimeProtocol.java2
-rw-r--r--sources/protocols/implementations/BroadcastSturmProtocol.java1
-rw-r--r--sources/protocols/implementations/DummyProtocol.java1
-rw-r--r--sources/protocols/implementations/ExternalTimeSyncProtocol.java1
-rw-r--r--sources/protocols/implementations/InternalTimeSyncProtocol.java1
-rw-r--r--sources/protocols/implementations/PingPongProtocol.java1
-rw-r--r--sources/simulator/VSAbout.java1
-rw-r--r--sources/simulator/VSLogging.java1
-rw-r--r--sources/simulator/VSMain.java1
-rw-r--r--sources/simulator/VSMenuItemStates.java50
-rw-r--r--sources/simulator/VSSimulator.java1
-rw-r--r--sources/simulator/VSSimulatorFrame.java1
-rw-r--r--sources/utils/VSClassLoader.java1
-rw-r--r--sources/utils/VSTools.java1
-rw-r--r--sources/utils/VSTupel.java1
32 files changed, 59 insertions, 25 deletions
diff --git a/sources/core/VSMessage.java b/sources/core/VSMessage.java
index ff442c7..d939e28 100644
--- a/sources/core/VSMessage.java
+++ b/sources/core/VSMessage.java
@@ -12,6 +12,7 @@ import prefs.VSPrefs;
* This class represents a message which is send from one process to another process in the simulation.
*/
public class VSMessage extends VSPrefs {
+ private static final long serialVersionUID = 1L;
/** Each message belongs to a specific protocol. This variable defined the class name of the protocol being used. */
private String protocolClassname;
diff --git a/sources/core/VSProcess.java b/sources/core/VSProcess.java
index 047b68d..dcde77a 100644
--- a/sources/core/VSProcess.java
+++ b/sources/core/VSProcess.java
@@ -19,6 +19,7 @@ import utils.*;
* The Class VSProcess. A object of this class represents a process of a simulation.
*/
public class VSProcess extends VSPrefs {
+ private static final long serialVersionUID = 1L;
/** The protocols to reset if the simulation is over or the reset button has been pressed. */
private ArrayList<VSProtocol> protocolsToReset;
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java
index 774dd7d..2c6500f 100644
--- a/sources/core/VSTask.java
+++ b/sources/core/VSTask.java
@@ -17,6 +17,7 @@ import protocols.VSProtocol;
* Global timed tasks are being fullfilled if the simulation's time is reached.
*/
public class VSTask implements Comparable {
+ private static final long serialVersionUID = 1L;
/** The Constant LOCAL. Used for the constructor if it's a local timed task. */
public final static boolean LOCAL = true;
diff --git a/sources/core/VSTaskManager.java b/sources/core/VSTaskManager.java
index 3cf1e12..8572cec 100644
--- a/sources/core/VSTaskManager.java
+++ b/sources/core/VSTaskManager.java
@@ -13,6 +13,7 @@ import utils.*;
* The Class VSTaskManager.
*/
public class VSTaskManager {
+ private static final long serialVersionUID = 1L;
/** The tasks. */
private PriorityQueue<VSTask> tasks;
diff --git a/sources/core/time/VSLamportTime.java b/sources/core/time/VSLamportTime.java
index c3b138b..e78970f 100644
--- a/sources/core/time/VSLamportTime.java
+++ b/sources/core/time/VSLamportTime.java
@@ -9,6 +9,7 @@ package core.time;
* This class defined how the lamport timestamps are represented.
*/
public class VSLamportTime implements VSTime {
+ private static final long serialVersionUID = 1L;
/** Specified the global time of the lamport timestamp. It's used for correct painting in the simulator paint area. */
private long globalTime;
diff --git a/sources/core/time/VSTime.java b/sources/core/time/VSTime.java
index 24f9b7d..c68882b 100644
--- a/sources/core/time/VSTime.java
+++ b/sources/core/time/VSTime.java
@@ -9,7 +9,6 @@ package core.time;
* This interface is a guidline for general time format classes.
*/
public interface VSTime {
-
/**
* Getter method.
*
diff --git a/sources/events/VSEvent.java b/sources/events/VSEvent.java
index eba60b1..28abf8c 100644
--- a/sources/events/VSEvent.java
+++ b/sources/events/VSEvent.java
@@ -11,6 +11,8 @@ import prefs.VSPrefs;
* The Class VSEvent.
*/
abstract public class VSEvent extends VSPrefs {
+ private static final long serialVersionUID = 1L;
+
/** The prefs. */
protected VSPrefs prefs;
diff --git a/sources/events/VSRegisteredEvents.java b/sources/events/VSRegisteredEvents.java
index 6390694..6413314 100644
--- a/sources/events/VSRegisteredEvents.java
+++ b/sources/events/VSRegisteredEvents.java
@@ -14,6 +14,8 @@ import utils.*;
* The Class VSRegisteredEvents.
*/
public final class VSRegisteredEvents {
+ private static final long serialVersionUID = 1L;
+
/** The event classnames. */
private static HashMap<String,String> eventClassnames;
diff --git a/sources/events/implementations/ProcessRecoverEvent.java b/sources/events/implementations/ProcessRecoverEvent.java
index b5a4e06..35f964a 100644
--- a/sources/events/implementations/ProcessRecoverEvent.java
+++ b/sources/events/implementations/ProcessRecoverEvent.java
@@ -10,6 +10,7 @@ import events.VSEvent;
* The Class ProcessRecoverEvent.
*/
public class ProcessRecoverEvent extends VSEvent {
+ private static final long serialVersionUID = 1L;
/* (non-Javadoc)
* @see events.VSEvent#onInit()
diff --git a/sources/events/internal/MessageReceiveEvent.java b/sources/events/internal/MessageReceiveEvent.java
index 2d746ae..ba7f1b7 100644
--- a/sources/events/internal/MessageReceiveEvent.java
+++ b/sources/events/internal/MessageReceiveEvent.java
@@ -12,6 +12,7 @@ import protocols.VSProtocol;
* The Class MessageReceiveEvent.
*/
public class MessageReceiveEvent extends VSEvent {
+ private static final long serialVersionUID = 1L;
/** The message. */
private VSMessage message;
diff --git a/sources/events/internal/ProtocolEvent.java b/sources/events/internal/ProtocolEvent.java
index 205db56..eb20dc7 100644
--- a/sources/events/internal/ProtocolEvent.java
+++ b/sources/events/internal/ProtocolEvent.java
@@ -11,6 +11,7 @@ import protocols.VSProtocol;
* The Class ProtocolEvent.
*/
public class ProtocolEvent extends VSEvent {
+ private static final long serialVersionUID = 1L;
/** The protocol classname. */
private String protocolClassname;
diff --git a/sources/prefs/editors/VSBetterEditor.java b/sources/prefs/editors/VSBetterEditor.java
index 80f3290..ba15672 100644
--- a/sources/prefs/editors/VSBetterEditor.java
+++ b/sources/prefs/editors/VSBetterEditor.java
@@ -16,6 +16,7 @@ import utils.*;
* The Class VSBetterEditor.
*/
public abstract class VSBetterEditor extends VSEditor {
+ private static final long serialVersionUID = 1L;
/** The content pane. */
private Container contentPane;
diff --git a/sources/prefs/editors/VSEditor.java b/sources/prefs/editors/VSEditor.java
index f1d4991..0264e2b 100644
--- a/sources/prefs/editors/VSEditor.java
+++ b/sources/prefs/editors/VSEditor.java
@@ -17,6 +17,7 @@ import prefs.VSPrefs;
* The Class VSEditor.
*/
public abstract class VSEditor implements ActionListener {
+ private static final long serialVersionUID = 1L;
/** The boolean keys. */
private ArrayList<String> booleanKeys;
diff --git a/sources/prefs/editors/VSEditorFrame.java b/sources/prefs/editors/VSEditorFrame.java
index be41902..268afd3 100644
--- a/sources/prefs/editors/VSEditorFrame.java
+++ b/sources/prefs/editors/VSEditorFrame.java
@@ -16,6 +16,7 @@ import utils.*;
* The Class VSEditorFrame.
*/
public class VSEditorFrame extends VSFrame implements ActionListener {
+ private static final long serialVersionUID = 1L;
/** The editor. */
private VSBetterEditor editor;
diff --git a/sources/prefs/editors/VSProcessEditor.java b/sources/prefs/editors/VSProcessEditor.java
index 1d81d76..664cafa 100644
--- a/sources/prefs/editors/VSProcessEditor.java
+++ b/sources/prefs/editors/VSProcessEditor.java
@@ -18,6 +18,7 @@ import prefs.VSPrefs;
* The Class VSProcessEditor.
*/
public class VSProcessEditor extends VSBetterEditor {
+ private static final long serialVersionUID = 1L;
/** The process. */
private VSProcess process;
diff --git a/sources/prefs/editors/VSSimulatorEditor.java b/sources/prefs/editors/VSSimulatorEditor.java
index 1b50fb3..615a8ff 100644
--- a/sources/prefs/editors/VSSimulatorEditor.java
+++ b/sources/prefs/editors/VSSimulatorEditor.java
@@ -15,6 +15,7 @@ import prefs.*;
* The Class VSSimulatorEditor.
*/
public class VSSimulatorEditor extends VSBetterEditor {
+ private static final long serialVersionUID = 1L;
/** The simulator frame. */
private VSSimulatorFrame simulatorFrame;
diff --git a/sources/protocols/VSProtocol.java b/sources/protocols/VSProtocol.java
index 6ef824d..9f6f335 100644
--- a/sources/protocols/VSProtocol.java
+++ b/sources/protocols/VSProtocol.java
@@ -12,6 +12,7 @@ import core.*;
* The Class VSProtocol.
*/
abstract public class VSProtocol extends VSEvent {
+ private static final long serialVersionUID = 1L;
/** The is server. */
private boolean isServer;
diff --git a/sources/protocols/implementations/BerkelyTimeProtocol.java b/sources/protocols/implementations/BerkelyTimeProtocol.java
index 177dc4d..6241cd4 100644
--- a/sources/protocols/implementations/BerkelyTimeProtocol.java
+++ b/sources/protocols/implementations/BerkelyTimeProtocol.java
@@ -14,6 +14,8 @@ import java.util.HashMap;
* The Class BerkelyTimeProtocol.
*/
public class BerkelyTimeProtocol extends VSProtocol {
+ private static final long serialVersionUID = 1L;
+
/* Berkely Server variables */
/* Integer: Process ID, Long: Local time of the process */
diff --git a/sources/protocols/implementations/BroadcastSturmProtocol.java b/sources/protocols/implementations/BroadcastSturmProtocol.java
index 6969221..be4b0ba 100644
--- a/sources/protocols/implementations/BroadcastSturmProtocol.java
+++ b/sources/protocols/implementations/BroadcastSturmProtocol.java
@@ -14,6 +14,7 @@ import protocols.VSProtocol;
* The Class BroadcastSturmProtocol.
*/
public class BroadcastSturmProtocol extends VSProtocol {
+ private static final long serialVersionUID = 1L;
/** The sent messages. */
private ArrayList<VSMessage> sentMessages;
diff --git a/sources/protocols/implementations/DummyProtocol.java b/sources/protocols/implementations/DummyProtocol.java
index 52e9b28..1b3d3e5 100644
--- a/sources/protocols/implementations/DummyProtocol.java
+++ b/sources/protocols/implementations/DummyProtocol.java
@@ -12,6 +12,7 @@ import core.VSMessage;
* The Class DummyProtocol.
*/
public class DummyProtocol extends VSProtocol {
+ private static final long serialVersionUID = 1L;
/**
* Instantiates a new dummy protocol.
diff --git a/sources/protocols/implementations/ExternalTimeSyncProtocol.java b/sources/protocols/implementations/ExternalTimeSyncProtocol.java
index 6193417..a3fb2ba 100644
--- a/sources/protocols/implementations/ExternalTimeSyncProtocol.java
+++ b/sources/protocols/implementations/ExternalTimeSyncProtocol.java
@@ -12,6 +12,7 @@ import protocols.VSProtocol;
* The Class ExternalTimeSyncProtocol.
*/
public class ExternalTimeSyncProtocol extends VSProtocol {
+ private static final long serialVersionUID = 1L;
/** The request time. */
private long requestTime;
diff --git a/sources/protocols/implementations/InternalTimeSyncProtocol.java b/sources/protocols/implementations/InternalTimeSyncProtocol.java
index a55430b..f6c4afa 100644
--- a/sources/protocols/implementations/InternalTimeSyncProtocol.java
+++ b/sources/protocols/implementations/InternalTimeSyncProtocol.java
@@ -12,6 +12,7 @@ import protocols.VSProtocol;
* The Class InternalTimeSyncProtocol.
*/
public class InternalTimeSyncProtocol extends VSProtocol {
+ private static final long serialVersionUID = 1L;
/** The waiting for response. */
private boolean waitingForResponse;
diff --git a/sources/protocols/implementations/PingPongProtocol.java b/sources/protocols/implementations/PingPongProtocol.java
index a7cf9fc..0058934 100644
--- a/sources/protocols/implementations/PingPongProtocol.java
+++ b/sources/protocols/implementations/PingPongProtocol.java
@@ -12,6 +12,7 @@ import protocols.VSProtocol;
* The Class PingPongProtocol.
*/
public class PingPongProtocol extends VSProtocol {
+ private static final long serialVersionUID = 1L;
/** The client counter. */
private int clientCounter;
diff --git a/sources/simulator/VSAbout.java b/sources/simulator/VSAbout.java
index ddeaa4e..724761c 100644
--- a/sources/simulator/VSAbout.java
+++ b/sources/simulator/VSAbout.java
@@ -16,6 +16,7 @@ import utils.*;
* The Class VSAbout.
*/
public class VSAbout extends VSFrame implements ActionListener {
+ private static final long serialVersionUID = 1L;
/** The prefs. */
private VSPrefs prefs;
diff --git a/sources/simulator/VSLogging.java b/sources/simulator/VSLogging.java
index 49d0b59..b89751c 100644
--- a/sources/simulator/VSLogging.java
+++ b/sources/simulator/VSLogging.java
@@ -15,6 +15,7 @@ import utils.*;
* The Class VSLogging.
*/
public class VSLogging {
+ private static final long serialVersionUID = 1L;
/** The logging area. */
private JTextArea loggingArea;
diff --git a/sources/simulator/VSMain.java b/sources/simulator/VSMain.java
index 8c88a8f..f8a6df8 100644
--- a/sources/simulator/VSMain.java
+++ b/sources/simulator/VSMain.java
@@ -16,6 +16,7 @@ import prefs.editors.*;
* The Class VSMain.
*/
public class VSMain {
+ private static final long serialVersionUID = 1L;
/**
* Instantiates a new lang.process.removemain.
diff --git a/sources/simulator/VSMenuItemStates.java b/sources/simulator/VSMenuItemStates.java
index 42edf96..ba901de 100644
--- a/sources/simulator/VSMenuItemStates.java
+++ b/sources/simulator/VSMenuItemStates.java
@@ -9,25 +9,27 @@ package simulator;
* "simulation" bar of the VSSimulationFrame.
*/
public class VSMenuItemStates {
- /** The pause. */
+ private static final long serialVersionUID = 1L;
+
+ /** The pause state. */
private volatile boolean pause;
- /** The replay. */
+ /** The replay state. */
private volatile boolean replay;
- /** The reset. */
+ /** The reset state. */
private volatile boolean reset;
- /** The start. */
+ /** The start state. */
private volatile boolean start;
/**
* Instantiates a new lang.process.removemenu item states.
*
- * @param pause the pause
- * @param replay the replay
- * @param reset the reset
- * @param start the start
+ * @param pause the pause state
+ * @param replay the replay state
+ * @param reset the reset state
+ * @param start the start state
*/
public VSMenuItemStates(boolean pause, boolean replay, boolean reset, boolean start) {
this.pause = pause;
@@ -37,72 +39,72 @@ public class VSMenuItemStates {
}
/**
- * Sets the pause.
+ * Sets the pause state.
*
- * @param pause the new pause
+ * @param pause the new pause state
*/
public void setPause(boolean pause) {
this.pause = pause;
}
/**
- * Sets the replay.
+ * Sets the replay state.
*
- * @param replay the new replay
+ * @param replay the new replay state
*/
public void setReplay(boolean replay) {
this.replay = replay;
}
/**
- * Sets the reset.
+ * Sets the reset state.
*
- * @param reset the new reset
+ * @param reset the new reset state
*/
public void setReset(boolean reset) {
this.reset = reset;
}
/**
- * Sets the start.
+ * Sets the start state.
*
- * @param start the new start
+ * @param start the new start state
*/
public void setStart(boolean start) {
this.start = start;
}
/**
- * Gets the pause.
+ * Gets the pause state.
*
- * @return the pause
+ * @return the pause state
*/
public boolean getPause() {
return pause;
}
/**
- * Gets the replay.
+ * Gets the replay state.
*
- * @return the replay
+ * @return the replay state
*/
public boolean getReplay() {
return replay;
}
/**
- * Gets the reset.
+ * Gets the reset state.
*
- * @return the reset
+ * @return the reset state
*/
public boolean getReset() {
return reset;
}
/**
- * Gets the start.
+ * Gets the start state.
*
- * @return the start
+ * @return the start state
*/
public boolean getStart() {
return start;
diff --git a/sources/simulator/VSSimulator.java b/sources/simulator/VSSimulator.java
index 8e5ccac..2bb750a 100644
--- a/sources/simulator/VSSimulator.java
+++ b/sources/simulator/VSSimulator.java
@@ -22,6 +22,7 @@ import utils.*;
* The Class VSSimulator.
*/
public class VSSimulator extends JPanel {
+ private static final long serialVersionUID = 1L;
/** The global text fields. */
private ArrayList<String> globalTextFields;
diff --git a/sources/simulator/VSSimulatorFrame.java b/sources/simulator/VSSimulatorFrame.java
index 33d3074..bb1c27b 100644
--- a/sources/simulator/VSSimulatorFrame.java
+++ b/sources/simulator/VSSimulatorFrame.java
@@ -20,6 +20,7 @@ import utils.*;
* The Class VSSimulatorFrame.
*/
public class VSSimulatorFrame extends VSFrame implements ActionListener {
+ private static final long serialVersionUID = 1L;
/** The pause item. */
private JMenuItem pauseItem;
diff --git a/sources/utils/VSClassLoader.java b/sources/utils/VSClassLoader.java
index 75ad994..60b3c9d 100644
--- a/sources/utils/VSClassLoader.java
+++ b/sources/utils/VSClassLoader.java
@@ -11,6 +11,7 @@ package utils;
* The Class VSClassLoader.
*/
public class VSClassLoader extends ClassLoader {
+ private static final long serialVersionUID = 1L;
/**
* New instance.
diff --git a/sources/utils/VSTools.java b/sources/utils/VSTools.java
index e4db8e1..3423fe5 100644
--- a/sources/utils/VSTools.java
+++ b/sources/utils/VSTools.java
@@ -10,6 +10,7 @@ package utils;
* The Class VSTools.
*/
public final class VSTools {
+ private static final long serialVersionUID = 1L;
/**
* Gets the time string.
diff --git a/sources/utils/VSTupel.java b/sources/utils/VSTupel.java
index 2177601..144b981 100644
--- a/sources/utils/VSTupel.java
+++ b/sources/utils/VSTupel.java
@@ -8,6 +8,7 @@ package utils;
* The Class VSTupel.
*/
public final class VSTupel<A,B,C> {
+ private static final long serialVersionUID = 1L;
/** The a. */
private A a;