summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-25 09:03:33 +0000
committerPaul Buetow <paul@buetow.org>2008-05-25 09:03:33 +0000
commit009350323123fc4b47041cb2194e8df19f69423b (patch)
treea9562cf215181a03137d5281d49d26e0fe5a3b45
parentbb1dbccae485263ea5182546006339870c57b367 (diff)
Run astyle.
-rw-r--r--sources/core/VSMessage.java40
-rw-r--r--sources/core/VSProcess.java148
-rw-r--r--sources/core/VSTask.java56
-rw-r--r--sources/core/VSTaskManager.java40
-rw-r--r--sources/core/time/VSLamportTime.java12
-rw-r--r--sources/core/time/VSTime.java8
-rw-r--r--sources/core/time/VSVectorTime.java12
-rw-r--r--sources/events/VSEvent.java30
-rw-r--r--sources/events/VSRegisteredEvents.java44
-rw-r--r--sources/events/implementations/ProcessCrashEvent.java2
-rw-r--r--sources/events/implementations/ProcessRecoverEvent.java2
-rw-r--r--sources/events/internal/MessageReceiveEvent.java4
-rw-r--r--sources/events/internal/ProtocolEvent.java16
-rw-r--r--sources/prefs/VSDefaultPrefs.java10
-rw-r--r--sources/prefs/VSPrefs.java250
-rw-r--r--sources/prefs/editors/VSBetterEditor.java20
-rw-r--r--sources/prefs/editors/VSColorChooser.java14
-rw-r--r--sources/prefs/editors/VSEditor.java126
-rw-r--r--sources/prefs/editors/VSEditorFrame.java8
-rw-r--r--sources/prefs/editors/VSEditorTable.java40
-rw-r--r--sources/prefs/editors/VSProcessEditor.java8
-rw-r--r--sources/prefs/editors/VSSimulatorEditor.java12
-rw-r--r--sources/protocols/VSProtocol.java32
-rw-r--r--sources/protocols/implementations/BerkelyTimeProtocol.java4
-rw-r--r--sources/protocols/implementations/BroadcastSturmProtocol.java4
-rw-r--r--sources/protocols/implementations/DummyProtocol.java2
-rw-r--r--sources/protocols/implementations/ExternalTimeSyncProtocol.java4
-rw-r--r--sources/protocols/implementations/InternalTimeSyncProtocol.java2
-rw-r--r--sources/protocols/implementations/PingPongProtocol.java4
-rw-r--r--sources/simulator/VSAbout.java8
-rw-r--r--sources/simulator/VSLogging.java32
-rw-r--r--sources/simulator/VSMain.java10
-rw-r--r--sources/simulator/VSSimulator.java208
-rw-r--r--sources/simulator/VSSimulatorCanvas.java218
-rw-r--r--sources/simulator/VSSimulatorFrame.java48
-rw-r--r--sources/utils/VSClassLoader.java6
-rw-r--r--sources/utils/VSFrame.java16
-rw-r--r--sources/utils/VSInfoArea.java6
-rw-r--r--sources/utils/VSPriorityQueue.java8
-rw-r--r--sources/utils/VSRandom.java10
-rw-r--r--sources/utils/VSTools.java12
-rw-r--r--sources/utils/VSTupel.java14
42 files changed, 775 insertions, 775 deletions
diff --git a/sources/core/VSMessage.java b/sources/core/VSMessage.java
index 2be91bf..ff442c7 100644
--- a/sources/core/VSMessage.java
+++ b/sources/core/VSMessage.java
@@ -12,31 +12,31 @@ 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 {
-
+
/** Each message belongs to a specific protocol. This variable defined the class name of the protocol being used. */
private String protocolClassname;
-
+
/** The default application preferences. */
private VSPrefs prefs;
-
+
/** A reference to the process who sent this message. */
private VSProcess sendingProcess;
-
+
/** The vector time of the sending process after sending. The receiver process will use this vector time in order to update the local vector time. */
private VSVectorTime vectorTime;
-
+
/** The lamport time of the sending process after sending. The receiver process will use this lamport time in order to update the local vector time. */
private long lamportTime;
-
+
/** Each message has its own unique ID. The ID will show up in the logging window of the simulator as well. */
private long messageID;
-
+
/** This counter is used in order to generate unique message ID's. */
private static long messageCounter;
/**
* The constructor of the message.
- *
+ *
* @param protocolClassname The classname of the protocol this message
* belongs to.
*/
@@ -47,7 +47,7 @@ public class VSMessage extends VSPrefs {
/**
* Initialized the message.
- *
+ *
* @param process The sending process of this message.
*/
public void init(VSProcess process) {
@@ -59,7 +59,7 @@ public class VSMessage extends VSPrefs {
/**
* Getter method.
- *
+ *
* @return The protocol name of the message.
*/
public String getName() {
@@ -68,7 +68,7 @@ public class VSMessage extends VSPrefs {
/**
* Getter method.
- *
+ *
* @return The protocol classname of the message.
*/
public String getProtocolClassname() {
@@ -77,7 +77,7 @@ public class VSMessage extends VSPrefs {
/**
* Getter method.
- *
+ *
* @return The ID of the message.
*/
public long getMessageID() {
@@ -86,7 +86,7 @@ public class VSMessage extends VSPrefs {
/**
* Getter method.
- *
+ *
* @return The process which sent this message.
*/
public VSProcess getSendingProcess() {
@@ -95,7 +95,7 @@ public class VSMessage extends VSPrefs {
/**
* Getter method.
- *
+ *
* @return The lamport time of the sending process.
*/
public long getLamportTime() {
@@ -104,7 +104,7 @@ public class VSMessage extends VSPrefs {
/**
* Getter method.
- *
+ *
* @return The vector time of the sending process.
*/
public VSVectorTime getVectorTime() {
@@ -113,7 +113,7 @@ public class VSMessage extends VSPrefs {
/**
* String representation of the message object.
- *
+ *
* @return String representation of the message object.
*/
public String toString() {
@@ -131,7 +131,7 @@ public class VSMessage extends VSPrefs {
/**
* Extended string representation of the message object.
- *
+ *
* @return Extended string representation of the message object.
*/
public String toStringFull() {
@@ -140,9 +140,9 @@ public class VSMessage extends VSPrefs {
/**
* Compares two messages.
- *
+ *
* @param message The message to compare with.
- *
+ *
* @return true, if the messages have the same ID. Otherwise false.
*/
public boolean equals(VSMessage message) {
@@ -151,7 +151,7 @@ public class VSMessage extends VSPrefs {
/**
* For logging in the simulator's logging window!.
- *
+ *
* @param message The message to logg.
*/
public void logg(String message) { }
diff --git a/sources/core/VSProcess.java b/sources/core/VSProcess.java
index e4c7561..047b68d 100644
--- a/sources/core/VSProcess.java
+++ b/sources/core/VSProcess.java
@@ -19,85 +19,85 @@ import utils.*;
* The Class VSProcess. A object of this class represents a process of a simulation.
*/
public class VSProcess extends VSPrefs {
-
+
/** The protocols to reset if the simulation is over or the reset button has been pressed. */
private ArrayList<VSProtocol> protocolsToReset;
-
+
/** The crash history. represents all crashes of the process using the global simulation time. */
private ArrayList<Long> crashHistory;
-
+
/** The lamport time history. */
private ArrayList<VSLamportTime> lamportTimeHistory;
-
+
/** The vector time history. */
private ArrayList<VSVectorTime> vectorTimeHistory;
-
+
/** The crashed color. */
private Color crashedColor;;
-
+
/** The current color. */
private Color currentColor;
-
+
/** The tmp color. For internal usage. */
private Color tmpColor;
-
+
/** The logging object. */
private VSLogging logging;
-
+
/** The simulation's default prefs. */
private VSPrefs prefs;
-
+
/** The random generator of the process. */
private VSRandom random;
-
+
/** The simulation canvas. */
private VSSimulatorCanvas simulationCanvas;
-
+
/** The random crash task. May be null if there is no such random task. */
private VSTask randomCrashTask;
-
+
/** The vector time. */
private VSVectorTime vectorTime;
-
+
/** The process has crashed. But may be working again. */
private boolean hasCrashed;
-
+
/** The process has started. But may be paused or crashed.. */
private boolean hasStarted;
-
+
/** The process is crashed. */
private boolean isCrashed;
-
+
/** The process is highlighted. */
private boolean isHighlighted;
-
+
/** The process is paused. */
private boolean isPaused;
-
+
/** The time has been modified in a task. Needed by the task manager to calculate correct offsets. */
private boolean timeModified;
-
+
/** The clock offset. Used by the task manager and also by the process' clock variance. */
private double clockOffset;
-
+
/** The clock variance. */
private float clockVariance;
-
+
/** The process id. */
private int processID; // Represents the PID of a process
-
+
/** The process num. It is different to the process id. It represents the array index of the process. */
private int processNum; // Represents the array index of the process, for internal usage
-
+
/** The global time. */
private long globalTime;
-
+
/** The lamport time. */
private long lamportTime;
-
+
/** The local time. */
private long localTime;
-
+
/** The process counter. Needed for the unique process id's. */
private static int processCounter;
@@ -153,7 +153,7 @@ public class VSProcess extends VSPrefs {
/**
* Instantiates a new process.
- *
+ *
* @param prefs the simulation's default prefs
* @param processNum the process num
* @param simulationCanvas the simulation canvas
@@ -240,7 +240,7 @@ public class VSProcess extends VSPrefs {
/**
* Sync time. Using the clockOffset and clockVariance.
- *
+ *
* @param globalTime the global time
*/
public synchronized void syncTime(final long globalTime) {
@@ -266,7 +266,7 @@ public class VSProcess extends VSPrefs {
/**
* Sets the current color.
- *
+ *
* @param newColor the new current color
*/
private void setCurrentColor(Color newColor) {
@@ -340,7 +340,7 @@ public class VSProcess extends VSPrefs {
/**
* Adds the clock offset. This method is used by the task manager.
- *
+ *
* @param add the clock offset to add.
*/
public synchronized void addClockOffset(long add) {
@@ -373,7 +373,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the process id.
- *
+ *
* @return the process id
*/
public synchronized int getProcessID() {
@@ -382,7 +382,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the process num.
- *
+ *
* @return the process num
*/
public synchronized int getProcessNum() {
@@ -391,7 +391,7 @@ public class VSProcess extends VSPrefs {
/**
* Sets the process id.
- *
+ *
* @param processID the new process id
*/
public synchronized void setProcessID(int processID) {
@@ -400,7 +400,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the current process' color.
- *
+ *
* @return the current color of the process.
*/
public synchronized Color getColor() {
@@ -409,7 +409,7 @@ public class VSProcess extends VSPrefs {
/**
* Sets the local time.
- *
+ *
* @param localTime the new local time.
*/
public synchronized void setLocalTime(final long localTime) {
@@ -421,7 +421,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the process' local time.
- *
+ *
* @return the process' local time
*/
public synchronized long getTime() {
@@ -430,7 +430,7 @@ public class VSProcess extends VSPrefs {
/**
* Sets the process' local time.
- *
+ *
* @param time the new local time of the process.
*/
public synchronized void setTime(final long time) {
@@ -444,7 +444,7 @@ public class VSProcess extends VSPrefs {
/**
* Checks if the process is crashed.
- *
+ *
* @return true, if is crashed
*/
public synchronized boolean isCrashed() {
@@ -452,8 +452,8 @@ public class VSProcess extends VSPrefs {
}
/**
- * Sets if the process is crashed.
- *
+ * Sets if the process is crashed.
+ *
* @param isCrashed true if the process is crashed.
*/
public synchronized void isCrashed(boolean isCrashed) {
@@ -466,7 +466,7 @@ public class VSProcess extends VSPrefs {
/**
* Checks if the process has crashed at least once during the current
* simulation.
- *
+ *
* @return true, if yes
*/
public synchronized boolean hasCrashed() {
@@ -475,7 +475,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the crashed color.
- *
+ *
* @return the crashed color
*/
public synchronized Color getCrashedColor() {
@@ -483,9 +483,9 @@ public class VSProcess extends VSPrefs {
}
/**
- * Checks if the time has been modified. by a task.
+ * Checks if the time has been modified. by a task.
* This mehod is needed by the task manager.
- *
+ *
* @return true, if yes
*/
public synchronized boolean timeModified() {
@@ -494,7 +494,7 @@ public class VSProcess extends VSPrefs {
/**
* Sets if the time has been modified by a task.
- *
+ *
* @param timeModified true, if it has been modified.
*/
public synchronized void timeModified(boolean timeModified) {
@@ -503,7 +503,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the global time.
- *
+ *
* @return the global time
*/
public synchronized long getGlobalTime() {
@@ -512,7 +512,7 @@ public class VSProcess extends VSPrefs {
/**
* Sets the global time.
- *
+ *
* @param globalTime the new global time
*/
public synchronized void setGlobalTime(final long globalTime) {
@@ -521,7 +521,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the clock variance.
- *
+ *
* @return the clock variance
*/
public synchronized float getClockVariance() {
@@ -530,7 +530,7 @@ public class VSProcess extends VSPrefs {
/**
* Sets the clock variance.
- *
+ *
* @param clockVariance the new clock variance
*/
public synchronized void setClockVariance(float clockVariance) {
@@ -548,7 +548,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the duration time.
- *
+ *
* @return the duration time
*/
public synchronized long getDurationTime() {
@@ -569,9 +569,9 @@ public class VSProcess extends VSPrefs {
/**
* Gets the a random message outage time.
- *
+ *
* @param durationTime the duration time
- *
+ *
* @return the a random message outage time
*/
public synchronized long getARandomMessageOutageTime(final long durationTime) {
@@ -588,7 +588,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the a random crash time.
- *
+ *
* @return the a random crash time
*/
private long getARandomCrashTime() {
@@ -605,7 +605,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the random crash task.
- *
+ *
* @return the random crash task
*/
public synchronized VSTask getCrashTask() {
@@ -614,7 +614,7 @@ public class VSProcess extends VSPrefs {
/**
* Checks if is paused.
- *
+ *
* @return true, if is paused
*/
public synchronized boolean isPaused() {
@@ -630,7 +630,7 @@ public class VSProcess extends VSPrefs {
/**
* Updates the lamport time.
- *
+ *
* @param time the lamport time
*/
public void updateLamportTime(long time) {
@@ -644,7 +644,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the lamport time.
- *
+ *
* @return the lamport time.
*/
public synchronized long getLamportTime() {
@@ -653,7 +653,7 @@ public class VSProcess extends VSPrefs {
/**
* Sets the lamport time.
- *
+ *
* @param lamportTime the new lamport time
*/
public synchronized void setLamportTime(long lamportTime) {
@@ -663,7 +663,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the lamport time history as an array.
- *
+ *
* @return the lamport time history array
*/
public synchronized VSTime[] getLamportTimeArray() {
@@ -687,7 +687,7 @@ public class VSProcess extends VSPrefs {
/**
* Updates the vector time.
- *
+ *
* @param vectorTimeUpdate the vector time of the other process to use for the update
*/
public synchronized void updateVectorTime(VSVectorTime vectorTimeUpdate) {
@@ -706,7 +706,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the vector time.
- *
+ *
* @return the vector time
*/
public synchronized VSVectorTime getVectorTime() {
@@ -715,7 +715,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the vector time history as an array.
- *
+ *
* @return the vector time history array
*/
public synchronized VSTime[] getVectorTimeArray() {
@@ -730,7 +730,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the crash history array.
- *
+ *
* @return the crash history array
*/
public synchronized Long[] getCrashHistoryArray() {
@@ -745,7 +745,7 @@ public class VSProcess extends VSPrefs {
/**
* Called by a task if the process sends a message.
- *
+ *
* @param message the message to send.
*/
public void sendMessage(VSMessage message) {
@@ -759,7 +759,7 @@ public class VSProcess extends VSPrefs {
/**
* Logg a message to the logging area.
- *
+ *
* @param message the message to logg
*/
public void logg(String message) {
@@ -802,7 +802,7 @@ public class VSProcess extends VSPrefs {
/**
* The extended string representation of the process object.
- *
+ *
* @return the extended string representation
*/
public String toStringFull() {
@@ -819,9 +819,9 @@ public class VSProcess extends VSPrefs {
/**
* Equals. Checks, if both processes have the same process id.
- *
+ *
* @param process the process to compare to
- *
+ *
* @return true, if both processes are the same.
*/
public boolean equals(VSProcess process) {
@@ -830,7 +830,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the simulation canvas.
- *
+ *
* @return the simulation canvas
*/
public VSSimulatorCanvas getSimulationCanvas() {
@@ -839,7 +839,7 @@ public class VSProcess extends VSPrefs {
/**
* Gets the simulation's default prefs.
- *
+ *
* @return the default prefs
*/
public VSPrefs getPrefs() {
@@ -856,7 +856,7 @@ public class VSProcess extends VSPrefs {
/**
* Removes the process at the specified index.
* Needed in order to update the vector time and the local processNum.
- *
+ *
* @param index the index the process has to get removed.
*/
public void removeProcessAtIndex(int index) {
@@ -879,9 +879,9 @@ public class VSProcess extends VSPrefs {
/**
* Gets the protocol object.
- *
+ *
* @param protocolClassname the protocol classname
- *
+ *
* @return the protocol object
*/
public VSProtocol getProtocolObject(String protocolClassname) {
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java
index 8e6bd34..774dd7d 100644
--- a/sources/core/VSTask.java
+++ b/sources/core/VSTask.java
@@ -17,40 +17,40 @@ import protocols.VSProtocol;
* Global timed tasks are being fullfilled if the simulation's time is reached.
*/
public class VSTask implements Comparable {
-
+
/** The Constant LOCAL. Used for the constructor if it's a local timed task. */
public final static boolean LOCAL = true;
-
+
/** The Constant GLOBAL. Used for the constructor if it's a global timed task. */
public final static boolean GLOBAL = false;
-
+
/** The task time. */
private long taskTime;
-
+
/** The event. */
private VSEvent event;
-
+
/** The process. */
private VSProcess process;
-
+
/** The prefs. */
private VSPrefs prefs;
-
+
/** The task is programmed. The task will be still in the task manager after reset. */
private boolean isProgrammed;
-
+
/** The task is global timed. If set to true, its local timed. */
private boolean isGlobalTimed;
-
+
/** The task counter. Needed for the unique task numbers. */
private static int taskCounter;
-
+
/** The task number. */
private int taskNum;
/**
* Instantiates a new task.
- *
+ *
* @param taskTime the task time
* @param process the process
* @param event the event
@@ -67,7 +67,7 @@ public class VSTask implements Comparable {
/**
* Gets the task num.
- *
+ *
* @return the task num
*/
public int getTaskNum() {
@@ -76,7 +76,7 @@ public class VSTask implements Comparable {
/**
* Checks if is programmed.
- *
+ *
* @param isProgrammed the task is programmed
*/
public void isProgrammed(boolean isProgrammed) {
@@ -85,7 +85,7 @@ public class VSTask implements Comparable {
/**
* Checks if the task is programmed.
- *
+ *
* @return true, if the task is programmed
*/
public boolean isProgrammed() {
@@ -94,7 +94,7 @@ public class VSTask implements Comparable {
/**
* Checks if the task is a message receive event.
- *
+ *
* @return true, if it is a message receive event
*/
public boolean isMessageReceiveEvent() {
@@ -103,7 +103,7 @@ public class VSTask implements Comparable {
/**
* Checks if the task is a process recover event.
- *
+ *
* @return true, if it is a process recover event
*/
public boolean isProcessRecoverEvent() {
@@ -112,9 +112,9 @@ public class VSTask implements Comparable {
/**
* Checks if the task belongs to the specified protocol object.
- *
+ *
* @param protocol the protocol object to check against.
- *
+ *
* @return true, if it's a task using the protocol object.
*/
public boolean isProtocol(VSProtocol protocol) {
@@ -126,7 +126,7 @@ public class VSTask implements Comparable {
/**
* Time over. The task's time is over.
- *
+ *
* @return true, if it's over
*/
public boolean timeOver() {
@@ -138,9 +138,9 @@ public class VSTask implements Comparable {
/**
* Checks if the task equals to another task.
- *
+ *
* @param task the task to compare to
- *
+ *
* @return true, if equal
*/
public boolean equals(VSTask task) {
@@ -149,9 +149,9 @@ public class VSTask implements Comparable {
/**
* Checks if the event belongs to the specified process.
- *
+ *
* @param process the process to check against
- *
+ *
* @return true, if the event is using the process
*/
public boolean isProcess(VSProcess process) {
@@ -160,7 +160,7 @@ public class VSTask implements Comparable {
/**
* Checks if the task is global timed.
- *
+ *
* @return true, if the taks is global timed
*/
public boolean isGlobalTimed() {
@@ -169,7 +169,7 @@ public class VSTask implements Comparable {
/**
* Gets the process.
- *
+ *
* @return the process of the event
*/
public VSProcess getProcess() {
@@ -187,7 +187,7 @@ public class VSTask implements Comparable {
/**
* Gets the task time.
- *
+ *
* @return the task time
*/
public long getTaskTime() {
@@ -196,7 +196,7 @@ public class VSTask implements Comparable {
/**
* Gets the event.
- *
+ *
* @return the event
*/
public VSEvent getEvent() {
@@ -205,7 +205,7 @@ public class VSTask implements Comparable {
/**
* Logg a message.
- *
+ *
* @param message the message to logg
*/
private void logg(String message) {
diff --git a/sources/core/VSTaskManager.java b/sources/core/VSTaskManager.java
index 2bc11db..7e49b76 100644
--- a/sources/core/VSTaskManager.java
+++ b/sources/core/VSTaskManager.java
@@ -13,28 +13,28 @@ import utils.*;
* The Class VSTaskManager.
*/
public class VSTaskManager {
-
+
/** The tasks. */
private PriorityQueue<VSTask> tasks;
-
+
/** The global tasks. */
private PriorityQueue<VSTask> globalTasks;
-
+
/** The fullfilled programmed tasks. */
private LinkedList<VSTask> fullfilledProgrammedTasks;
-
+
/** The Constant PROGRAMMED. */
public final static boolean PROGRAMMED = true;
-
+
/** The Constant ONLY_ONCE. */
public final static boolean ONLY_ONCE = false;
-
+
/** The prefs. */
private VSPrefs prefs;
/**
* Instantiates a new vS task manager.
- *
+ *
* @param prefs the prefs
*/
public VSTaskManager(VSPrefs prefs) {
@@ -46,7 +46,7 @@ public class VSTaskManager {
/**
* Run tasks.
- *
+ *
* @param step the step
* @param offset the offset
* @param lastGlobalTime the last global time
@@ -201,7 +201,7 @@ public class VSTaskManager {
/**
* Inserts a task. Only for internal usage. Use the add methods instead.
- *
+ *
* @param task the task to insert
*/
private void insert(VSTask task) {
@@ -217,7 +217,7 @@ public class VSTaskManager {
/**
* Adds a task.
- *
+ *
* @param task the task to add
*/
public void addTask(VSTask task) {
@@ -226,7 +226,7 @@ public class VSTaskManager {
/**
* Adds a task.
- *
+ *
* @param task the task to add
* @param isProgrammed the task is programmed
*/
@@ -237,9 +237,9 @@ public class VSTaskManager {
/**
* Removes a task.
- *
+ *
* @param task the task to remove
- *
+ *
* @return true, if successful
*/
public synchronized boolean removeTask(VSTask task) {
@@ -257,7 +257,7 @@ public class VSTaskManager {
/**
* Removes the tasks of the specified process.
- *
+ *
* @param process the process to remove the tasks of
*/
public synchronized void removeTasksOf(VSProcess process) {
@@ -285,7 +285,7 @@ public class VSTaskManager {
/**
* Gets the local tasks.
- *
+ *
* @return the local tasks
*/
public synchronized VSPriorityQueue<VSTask> getLocalTasks() {
@@ -304,7 +304,7 @@ public class VSTaskManager {
/**
* Gets the global tasks.
- *
+ *
* @return the global tasks
*/
public synchronized VSPriorityQueue<VSTask> getGlobalTasks() {
@@ -323,9 +323,9 @@ public class VSTaskManager {
/**
* Gets the process local tasks.
- *
+ *
* @param process the process
- *
+ *
* @return the process local tasks
*/
public synchronized VSPriorityQueue<VSTask> getProcessLocalTasks(VSProcess process) {
@@ -344,9 +344,9 @@ public class VSTaskManager {
/**
* Gets the process global tasks.
- *
+ *
* @param process the process
- *
+ *
* @return the process global tasks
*/
public synchronized VSPriorityQueue<VSTask> getProcessGlobalTasks(VSProcess process) {
diff --git a/sources/core/time/VSLamportTime.java b/sources/core/time/VSLamportTime.java
index 4ee5ebd..c3b138b 100644
--- a/sources/core/time/VSLamportTime.java
+++ b/sources/core/time/VSLamportTime.java
@@ -9,16 +9,16 @@ package core.time;
* This class defined how the lamport timestamps are represented.
*/
public class VSLamportTime implements VSTime {
-
+
/** Specified the global time of the lamport timestamp. It's used for correct painting in the simulator paint area. */
private long globalTime;
-
+
/** Specified the process' local lamport time. */
private long lamportTime;
/**
* A simple constructor.
- *
+ *
* @param globalTime The global time.
* @param lamportTime The local lamport time.
*/
@@ -29,7 +29,7 @@ public class VSLamportTime implements VSTime {
/**
* Getter method.
- *
+ *
* @return The global time.
*/
public long getGlobalTime() {
@@ -38,7 +38,7 @@ public class VSLamportTime implements VSTime {
/**
* Getter method.
- *
+ *
* @return The process' local lamport time.
*/
public long getLamportTime() {
@@ -47,7 +47,7 @@ public class VSLamportTime implements VSTime {
/**
* String representation.
- *
+ *
* @return The string representation of the lamport time.
*/
public String toString() {
diff --git a/sources/core/time/VSTime.java b/sources/core/time/VSTime.java
index 0aebf4a..24f9b7d 100644
--- a/sources/core/time/VSTime.java
+++ b/sources/core/time/VSTime.java
@@ -9,17 +9,17 @@ package core.time;
* This interface is a guidline for general time format classes.
*/
public interface VSTime {
-
+
/**
* Getter method.
- *
+ *
* @return The global time.
*/
public long getGlobalTime();
-
+
/**
* String representation.
- *
+ *
* @return The representation of the implementing object as a string.
*/
public String toString();
diff --git a/sources/core/time/VSVectorTime.java b/sources/core/time/VSVectorTime.java
index 05115c2..4b48477 100644
--- a/sources/core/time/VSVectorTime.java
+++ b/sources/core/time/VSVectorTime.java
@@ -11,14 +11,14 @@ import java.util.ArrayList;
* The Class VSVectorTime.
*/
public class VSVectorTime extends ArrayList<Long> implements VSTime {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/** The global time. */
private long globalTime;
/**
* Instantiates a new vector time.
- *
+ *
* @param globalTime the global time
*/
public VSVectorTime(long globalTime) {
@@ -27,7 +27,7 @@ public class VSVectorTime extends ArrayList<Long> implements VSTime {
/**
* To long array.
- *
+ *
* @return the long[]
*/
public long[] toLongArray() {
@@ -42,7 +42,7 @@ public class VSVectorTime extends ArrayList<Long> implements VSTime {
/**
* Sets the global time.
- *
+ *
* @param globalTime the new global time
*/
public void setGlobalTime(long globalTime) {
@@ -58,7 +58,7 @@ public class VSVectorTime extends ArrayList<Long> implements VSTime {
/**
* Gets the copy.
- *
+ *
* @return the copy
*/
public VSVectorTime getCopy() {
diff --git a/sources/events/VSEvent.java b/sources/events/VSEvent.java
index c5cb5df..ddf77ca 100644
--- a/sources/events/VSEvent.java
+++ b/sources/events/VSEvent.java
@@ -12,22 +12,22 @@ import prefs.VSPrefs;
* The Class VSEvent.
*/
abstract public class VSEvent extends VSPrefs {
-
+
/** The prefs. */
protected VSPrefs prefs;
-
+
/** The process. */
protected VSProcess process;
-
+
/** The event shortname. */
private String eventShortname;
-
+
/** The event classname. */
private String eventClassname;
/**
* Inits the.
- *
+ *
* @param process the process
*/
public void init(VSProcess process) {
@@ -39,7 +39,7 @@ abstract public class VSEvent extends VSPrefs {
/**
* Sets the classname.
- *
+ *
* @param eventClassname the new classname
*/
protected final void setClassname(String eventClassname) {
@@ -51,7 +51,7 @@ abstract public class VSEvent extends VSPrefs {
/**
* Gets the classname.
- *
+ *
* @return the classname
*/
public String getClassname() {
@@ -60,7 +60,7 @@ abstract public class VSEvent extends VSPrefs {
/**
* Gets the name.
- *
+ *
* @return the name
*/
public String getName() {
@@ -69,7 +69,7 @@ abstract public class VSEvent extends VSPrefs {
/**
* Sets the shortname.
- *
+ *
* @param eventShortname the new shortname
*/
public void setShortname(String eventShortname) {
@@ -78,7 +78,7 @@ abstract public class VSEvent extends VSPrefs {
/**
* Gets the shortname.
- *
+ *
* @return the shortname
*/
public String getShortname() {
@@ -90,7 +90,7 @@ abstract public class VSEvent extends VSPrefs {
/**
* Gets the process.
- *
+ *
* @return the process
*/
public VSProcess getProcess() {
@@ -99,7 +99,7 @@ abstract public class VSEvent extends VSPrefs {
/**
* Logg.
- *
+ *
* @param message the message
*/
public void logg(String message) {
@@ -108,9 +108,9 @@ abstract public class VSEvent extends VSPrefs {
/**
* Equals.
- *
+ *
* @param event the event
- *
+ *
* @return true, if successful
*/
public boolean equals(VSEvent event) {
@@ -121,7 +121,7 @@ abstract public class VSEvent extends VSPrefs {
* On init.
*/
abstract protected void onInit();
-
+
/**
* On start.
*/
diff --git a/sources/events/VSRegisteredEvents.java b/sources/events/VSRegisteredEvents.java
index d41ffea..b6565d1 100644
--- a/sources/events/VSRegisteredEvents.java
+++ b/sources/events/VSRegisteredEvents.java
@@ -15,25 +15,25 @@ import utils.*;
* The Class VSRegisteredEvents.
*/
public final class VSRegisteredEvents {
-
+
/** The event classnames. */
private static HashMap<String,String> eventClassnames;
-
+
/** The event shortnames. */
private static HashMap<String,String> eventShortnames;
-
+
/** The event names. */
private static HashMap<String,String> eventNames;
-
+
/** The editable protocols classnames. */
private static ArrayList<String> editableProtocolsClassnames;
-
+
/** The prefs. */
private static VSPrefs prefs;
/**
* Inits the.
- *
+ *
* @param prefs_ the prefs_
*/
public static void init(VSPrefs prefs_) {
@@ -67,7 +67,7 @@ public final class VSRegisteredEvents {
/**
* Gets the editable protocols classnames.
- *
+ *
* @return the editable protocols classnames
*/
public static ArrayList<String> getEditableProtocolsClassnames() {
@@ -76,7 +76,7 @@ public final class VSRegisteredEvents {
/**
* Gets the protocol names.
- *
+ *
* @return the protocol names
*/
public static Vector<String> getProtocolNames() {
@@ -94,7 +94,7 @@ public final class VSRegisteredEvents {
/**
* Gets the protocol classnames.
- *
+ *
* @return the protocol classnames
*/
public static Vector<String> getProtocolClassnames() {
@@ -112,7 +112,7 @@ public final class VSRegisteredEvents {
/**
* Gets the non protocol names.
- *
+ *
* @return the non protocol names
*/
public static Vector<String> getNonProtocolNames() {
@@ -130,7 +130,7 @@ public final class VSRegisteredEvents {
/**
* Gets the non protocol classnames.
- *
+ *
* @return the non protocol classnames
*/
public static Vector<String> getNonProtocolClassnames() {
@@ -148,9 +148,9 @@ public final class VSRegisteredEvents {
/**
* Gets the classname.
- *
+ *
* @param eventName the event name
- *
+ *
* @return the classname
*/
public static String getClassname(String eventName) {
@@ -159,9 +159,9 @@ public final class VSRegisteredEvents {
/**
* Gets the name.
- *
+ *
* @param eventClassname the event classname
- *
+ *
* @return the name
*/
public static String getName(String eventClassname) {
@@ -170,9 +170,9 @@ public final class VSRegisteredEvents {
/**
* Gets the shortname.
- *
+ *
* @param eventClassname the event classname
- *
+ *
* @return the shortname
*/
public static String getShortname(String eventClassname) {
@@ -181,10 +181,10 @@ public final class VSRegisteredEvents {
/**
* Creates the event instance by classname.
- *
+ *
* @param eventClassname the event classname
* @param process the process
- *
+ *
* @return the vS event
*/
public static VSEvent createEventInstanceByClassname(String eventClassname, VSProcess process) {
@@ -201,10 +201,10 @@ public final class VSRegisteredEvents {
/**
* Creates the event instance by name.
- *
+ *
* @param eventName the event name
* @param process the process
- *
+ *
* @return the vS event
*/
public static VSEvent createEventInstanceByName(String eventName, VSProcess process) {
@@ -213,7 +213,7 @@ public final class VSRegisteredEvents {
/**
* Register event.
- *
+ *
* @param eventClassname the event classname
* @param eventName the event name
* @param eventShortname the event shortname
diff --git a/sources/events/implementations/ProcessCrashEvent.java b/sources/events/implementations/ProcessCrashEvent.java
index e55d18a..bb5c522 100644
--- a/sources/events/implementations/ProcessCrashEvent.java
+++ b/sources/events/implementations/ProcessCrashEvent.java
@@ -11,7 +11,7 @@ import events.VSEvent;
* The Class ProcessCrashEvent.
*/
public class ProcessCrashEvent extends VSEvent {
-
+
/* (non-Javadoc)
* @see events.VSEvent#onInit()
*/
diff --git a/sources/events/implementations/ProcessRecoverEvent.java b/sources/events/implementations/ProcessRecoverEvent.java
index cae67cb..d133127 100644
--- a/sources/events/implementations/ProcessRecoverEvent.java
+++ b/sources/events/implementations/ProcessRecoverEvent.java
@@ -11,7 +11,7 @@ import events.VSEvent;
* The Class ProcessRecoverEvent.
*/
public class ProcessRecoverEvent extends VSEvent {
-
+
/* (non-Javadoc)
* @see events.VSEvent#onInit()
*/
diff --git a/sources/events/internal/MessageReceiveEvent.java b/sources/events/internal/MessageReceiveEvent.java
index 0b4af83..f7d03ab 100644
--- a/sources/events/internal/MessageReceiveEvent.java
+++ b/sources/events/internal/MessageReceiveEvent.java
@@ -13,13 +13,13 @@ import protocols.VSProtocol;
* The Class MessageReceiveEvent.
*/
public class MessageReceiveEvent extends VSEvent {
-
+
/** The message. */
private VSMessage message;
/**
* Instantiates a new message receive event.
- *
+ *
* @param message the message
*/
public MessageReceiveEvent(VSMessage message) {
diff --git a/sources/events/internal/ProtocolEvent.java b/sources/events/internal/ProtocolEvent.java
index b29a828..b2c181e 100644
--- a/sources/events/internal/ProtocolEvent.java
+++ b/sources/events/internal/ProtocolEvent.java
@@ -12,13 +12,13 @@ import protocols.VSProtocol;
* The Class ProtocolEvent.
*/
public class ProtocolEvent extends VSEvent {
-
+
/** The protocol classname. */
private String protocolClassname;
-
+
/** The is client protocol. */
private boolean isClientProtocol; /* true = client, false = server */
-
+
/** The is protocol activation. */
private boolean isProtocolActivation; /* true = activate, false = deactivate */
@@ -31,7 +31,7 @@ public class ProtocolEvent extends VSEvent {
/**
* Checks if is client protocol.
- *
+ *
* @param isClientProtocol the is client protocol
*/
public void isClientProtocol(boolean isClientProtocol) {
@@ -40,7 +40,7 @@ public class ProtocolEvent extends VSEvent {
/**
* Checks if is client protocol.
- *
+ *
* @return true, if is client protocol
*/
public boolean isClientProtocol() {
@@ -49,7 +49,7 @@ public class ProtocolEvent extends VSEvent {
/**
* Checks if is protocol activation.
- *
+ *
* @param isProtocolActivation the is protocol activation
*/
public void isProtocolActivation(boolean isProtocolActivation) {
@@ -58,7 +58,7 @@ public class ProtocolEvent extends VSEvent {
/**
* Checks if is protocol activation.
- *
+ *
* @return true, if is protocol activation
*/
public boolean isProtocolActivation() {
@@ -67,7 +67,7 @@ public class ProtocolEvent extends VSEvent {
/**
* Sets the protocol classname.
- *
+ *
* @param protocolClassname the new protocol classname
*/
public void setProtocolClassname(String protocolClassname) {
diff --git a/sources/prefs/VSDefaultPrefs.java b/sources/prefs/VSDefaultPrefs.java
index d7d3f81..8e4fb03 100644
--- a/sources/prefs/VSDefaultPrefs.java
+++ b/sources/prefs/VSDefaultPrefs.java
@@ -12,11 +12,11 @@ import java.awt.event.KeyEvent;
* The Class VSDefaultPrefs.
*/
public class VSDefaultPrefs extends VSPrefs {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/**
* Inits the.
- *
+ *
* @return the vS prefs
*/
public static VSPrefs init() {
@@ -25,9 +25,9 @@ public class VSDefaultPrefs extends VSPrefs {
/**
* Inits the.
- *
+ *
* @param fileName the file name
- *
+ *
* @return the vS prefs
*/
public static VSPrefs init(String fileName) {
diff --git a/sources/prefs/VSPrefs.java b/sources/prefs/VSPrefs.java
index 611e0fa..6948dee 100644
--- a/sources/prefs/VSPrefs.java
+++ b/sources/prefs/VSPrefs.java
@@ -13,64 +13,64 @@ import java.util.*;
* The Class VSPrefs.
*/
public abstract class VSPrefs implements Serializable {
-
+
/** The Constant BOOLEAN_PREFIX. */
public static final String BOOLEAN_PREFIX = "Boolean: ";
-
+
/** The Constant COLOR_PREFIX. */
public static final String COLOR_PREFIX = "Color: ";
-
+
/** The Constant FLOAT_PREFIX. */
public static final String FLOAT_PREFIX = "Float: ";
-
+
/** The Constant INTEGER_PREFIX. */
public static final String INTEGER_PREFIX = "Integer: ";
-
+
/** The Constant LONG_PREFIX. */
public static final String LONG_PREFIX = "Long: ";
-
+
/** The Constant STRING_PREFIX. */
public static final String STRING_PREFIX = "String: ";
-
+
/** The color prefs. */
private HashMap<String,Color> colorPrefs;
-
+
/** The float prefs. */
private HashMap<String,Float> floatPrefs;
-
+
/** The integer prefs. */
private HashMap<String,Integer> integerPrefs;
-
+
/** The long prefs. */
private HashMap<String,Long> longPrefs;
-
+
/** The setting restriction prefs. */
private HashMap<String,SettingRestriction> settingRestrictionPrefs;
-
+
/** The description prefs. */
private HashMap<String,String> descriptionPrefs;
-
+
/** The string prefs. */
private HashMap<String,String> stringPrefs;
-
+
/** The boolean prefs. */
private HashMap<String,Boolean> booleanPrefs;
-
+
/** The object prefs. */
private HashMap<String,Object> objectPrefs;
-
+
/** The units. */
private HashMap<String,String> units;
-
+
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 4L;
-
+
/** The Constant PREFERENCES_FILENAME. */
protected final static String PREFERENCES_FILENAME = "vs.dat";
-
+
/** The id counter. */
private static long idCounter;
-
+
/** The id. */
protected long id;
@@ -78,23 +78,23 @@ public abstract class VSPrefs implements Serializable {
* The Class SettingRestriction.
*/
public class SettingRestriction implements Serializable {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
}
/**
* The Class IntegerSettingRestriction.
*/
public class IntegerSettingRestriction extends SettingRestriction {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
/** The min value. */
private int minValue;
-
+
/** The max value. */
private int maxValue;
/**
* Instantiates a new integer setting restriction.
- *
+ *
* @param minValue the min value
* @param maxValue the max value
*/
@@ -105,7 +105,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the min value.
- *
+ *
* @return the min value
*/
public int getMinValue() {
@@ -114,7 +114,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the max value.
- *
+ *
* @return the max value
*/
public int getMaxValue() {
@@ -126,14 +126,14 @@ public abstract class VSPrefs implements Serializable {
* The Class StringSettingRestriction.
*/
public class StringSettingRestriction extends SettingRestriction {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/** The possible selections. */
Vector<String> possibleSelections;
/**
* Instantiates a new string setting restriction.
- *
+ *
* @param possibleSelections the possible selections
*/
public StringSettingRestriction(String [] possibleSelections) {
@@ -145,7 +145,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the possible selections.
- *
+ *
* @return the possible selections
*/
public Vector<String> getPossibleSelections() {
@@ -187,9 +187,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the object.
- *
+ *
* @param key the key
- *
+ *
* @return the object
*/
public synchronized Object getObject(String key) {
@@ -206,7 +206,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Removes the object.
- *
+ *
* @param key the key
*/
public synchronized void removeObject(String key) {
@@ -215,9 +215,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Object exists.
- *
+ *
* @param key the key
- *
+ *
* @return true, if successful
*/
public synchronized boolean objectExists(String key) {
@@ -226,9 +226,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the string.
- *
+ *
* @param key the key
- *
+ *
* @return the string
*/
public synchronized String getString(String key) {
@@ -245,9 +245,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the integer obj.
- *
+ *
* @param key the key
- *
+ *
* @return the integer obj
*/
public synchronized Integer getIntegerObj(String key) {
@@ -264,9 +264,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the integer.
- *
+ *
* @param key the key
- *
+ *
* @return the integer
*/
public int getInteger(String key) {
@@ -275,9 +275,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the float obj.
- *
+ *
* @param key the key
- *
+ *
* @return the float obj
*/
public synchronized Float getFloatObj(String key) {
@@ -294,9 +294,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the float.
- *
+ *
* @param key the key
- *
+ *
* @return the float
*/
public float getFloat(String key) {
@@ -305,9 +305,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the long obj.
- *
+ *
* @param key the key
- *
+ *
* @return the long obj
*/
public synchronized Long getLongObj(String key) {
@@ -324,9 +324,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the long.
- *
+ *
* @param key the key
- *
+ *
* @return the long
*/
public long getLong(String key) {
@@ -335,9 +335,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the boolean obj.
- *
+ *
* @param key the key
- *
+ *
* @return the boolean obj
*/
public synchronized Boolean getBooleanObj(String key) {
@@ -351,9 +351,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the boolean.
- *
+ *
* @param key the key
- *
+ *
* @return the boolean
*/
public boolean getBoolean(String key) {
@@ -362,9 +362,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the color.
- *
+ *
* @param key the key
- *
+ *
* @return the color
*/
public synchronized Color getColor(String key) {
@@ -381,9 +381,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the description.
- *
+ *
* @param key the key
- *
+ *
* @return the description
*/
public synchronized String getDescription(String key) {
@@ -392,9 +392,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the unit.
- *
+ *
* @param key the key
- *
+ *
* @return the unit
*/
public synchronized String getUnit(String key) {
@@ -403,9 +403,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the restriction.
- *
+ *
* @param key the key
- *
+ *
* @return the restriction
*/
public synchronized SettingRestriction getRestriction(String key) {
@@ -414,7 +414,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the string key set.
- *
+ *
* @return the string key set
*/
public synchronized Set<String> getStringKeySet() {
@@ -423,7 +423,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the integer key set.
- *
+ *
* @return the integer key set
*/
public synchronized Set<String> getIntegerKeySet() {
@@ -432,7 +432,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the float key set.
- *
+ *
* @return the float key set
*/
public synchronized Set<String> getFloatKeySet() {
@@ -441,7 +441,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the long key set.
- *
+ *
* @return the long key set
*/
public synchronized Set<String> getLongKeySet() {
@@ -450,7 +450,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the boolean key set.
- *
+ *
* @return the boolean key set
*/
public synchronized Set<String> getBooleanKeySet() {
@@ -459,7 +459,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the color key set.
- *
+ *
* @return the color key set
*/
public synchronized Set<String> getColorKeySet() {
@@ -468,7 +468,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the object.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -478,7 +478,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the string.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -488,7 +488,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the integer.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -498,7 +498,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the color.
- *
+ *
* @param key the key
* @param color the color
*/
@@ -508,7 +508,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the int.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -518,7 +518,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the float.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -528,7 +528,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the float.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -538,7 +538,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the long.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -548,7 +548,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the long.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -558,7 +558,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the boolean.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -568,7 +568,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the boolean.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -578,7 +578,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the string.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -589,7 +589,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the integer.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -600,7 +600,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the integer.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -610,7 +610,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the long.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -621,7 +621,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the long.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -631,7 +631,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the float.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -642,7 +642,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the float.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -652,7 +652,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the long if unset.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -663,7 +663,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the long if unset.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -673,7 +673,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the boolean.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -684,7 +684,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the boolean.
- *
+ *
* @param key the key
* @param val the val
*/
@@ -694,7 +694,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the color.
- *
+ *
* @param key the key
* @param color the color
*/
@@ -705,7 +705,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the description if unset.
- *
+ *
* @param key the key
* @param descr the descr
*/
@@ -717,7 +717,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the restriction.
- *
+ *
* @param key the key
* @param settingRestriction the setting restriction
*/
@@ -727,7 +727,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the unit.
- *
+ *
* @param key the key
* @param unit the unit
*/
@@ -737,7 +737,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the string.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -749,7 +749,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Sets the long if unset.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -761,7 +761,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the boolean.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -773,7 +773,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the boolean unit.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -786,7 +786,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the integer.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -800,7 +800,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the integer.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -813,7 +813,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the integer.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -825,7 +825,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the integer.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -838,7 +838,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the integer unit.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -853,7 +853,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the long.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -865,7 +865,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the long.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -876,7 +876,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the long unit.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -889,7 +889,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the float.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -901,7 +901,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the float.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -912,7 +912,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the float unit.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -926,7 +926,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Inits the color.
- *
+ *
* @param key the key
* @param val the val
* @param descr the descr
@@ -940,27 +940,27 @@ public abstract class VSPrefs implements Serializable {
* Fill default strings.
*/
public void fillDefaultStrings() {}
-
+
/**
* Fill default integers.
*/
public void fillDefaultIntegers() {}
-
+
/**
* Fill default floats.
*/
public void fillDefaultFloats() {}
-
+
/**
* Fill default colors.
*/
public void fillDefaultColors() {}
-
+
/**
* Fill default booleans.
*/
public void fillDefaultBooleans() {}
-
+
/**
* Fill with defaults.
*/
@@ -968,9 +968,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Write object.
- *
+ *
* @param objectOutputStream the object output stream
- *
+ *
* @throws IOException Signals that an I/O exception has occurred.
*/
public synchronized void writeObject(ObjectOutputStream objectOutputStream)
@@ -986,9 +986,9 @@ public abstract class VSPrefs implements Serializable {
/**
* Read object.
- *
+ *
* @param objectInputStream the object input stream
- *
+ *
* @throws IOException Signals that an I/O exception has occurred.
* @throws ClassNotFoundException the class not found exception
*/
@@ -1042,7 +1042,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Copy integers.
- *
+ *
* @param copyInto the copy into
* @param keys the keys
*/
@@ -1054,7 +1054,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Copy longs.
- *
+ *
* @param copyInto the copy into
* @param keys the keys
*/
@@ -1065,7 +1065,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Copy floats.
- *
+ *
* @param copyInto the copy into
* @param keys the keys
*/
@@ -1076,7 +1076,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Copy strings.
- *
+ *
* @param copyInto the copy into
* @param keys the keys
*/
@@ -1087,7 +1087,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Copy colors.
- *
+ *
* @param copyInto the copy into
* @param keys the keys
*/
@@ -1147,7 +1147,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Gets the iD.
- *
+ *
* @return the iD
*/
public long getID() {
@@ -1156,7 +1156,7 @@ public abstract class VSPrefs implements Serializable {
/**
* Checks if is empty.
- *
+ *
* @return true, if is empty
*/
public boolean isEmpty() {
diff --git a/sources/prefs/editors/VSBetterEditor.java b/sources/prefs/editors/VSBetterEditor.java
index 211e8ed..79470ba 100644
--- a/sources/prefs/editors/VSBetterEditor.java
+++ b/sources/prefs/editors/VSBetterEditor.java
@@ -16,19 +16,19 @@ import utils.*;
* The Class VSBetterEditor.
*/
public abstract class VSBetterEditor extends VSEditor {
-
+
/** The content pane. */
private Container contentPane;
-
+
/** The info area. */
private VSInfoArea infoArea;
-
+
/** The title. */
private String title;
/**
* Instantiates a new vS better editor.
- *
+ *
* @param prefs the prefs
* @param prefsToEdit the prefs to edit
* @param title the title
@@ -41,7 +41,7 @@ public abstract class VSBetterEditor extends VSEditor {
/**
* Gets the title.
- *
+ *
* @return the title
*/
public String getTitle() {
@@ -50,7 +50,7 @@ public abstract class VSBetterEditor extends VSEditor {
/**
* Gets the content pane.
- *
+ *
* @return the content pane
*/
public Container getContentPane() {
@@ -60,7 +60,7 @@ public abstract class VSBetterEditor extends VSEditor {
/**
* Creates the content pane.
- *
+ *
* @return the j panel
*/
private JPanel createContentPane() {
@@ -83,12 +83,12 @@ public abstract class VSBetterEditor extends VSEditor {
* @see prefs.editors.VSEditor#addToButtonPanelFront(javax.swing.JPanel)
*/
protected void addToButtonPanelFront(JPanel buttonPanel) { }
-
+
/* (non-Javadoc)
* @see prefs.editors.VSEditor#addToButtonPanelLast(javax.swing.JPanel)
*/
protected void addToButtonPanelLast(JPanel buttonPanel) { }
-
+
/* (non-Javadoc)
* @see prefs.editors.VSEditor#addToEditTableLast()
*/
@@ -106,7 +106,7 @@ public abstract class VSBetterEditor extends VSEditor {
/**
* Gets the info area.
- *
+ *
* @return the info area
*/
protected VSInfoArea getInfoArea() {
diff --git a/sources/prefs/editors/VSColorChooser.java b/sources/prefs/editors/VSColorChooser.java
index 245e599..0b5c849 100644
--- a/sources/prefs/editors/VSColorChooser.java
+++ b/sources/prefs/editors/VSColorChooser.java
@@ -15,23 +15,23 @@ import prefs.VSPrefs;
* The Class VSColorChooser.
*/
public class VSColorChooser extends JPanel implements ChangeListener {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/** The color chooser. */
protected JColorChooser colorChooser;
-
+
/** The color. */
private Color color;
-
+
/** The val field. */
private JTextField valField;
-
+
/** The prefs. */
- //private VSPrefs prefs;
+ //private VSPrefs prefs;
/**
* Instantiates a new vS color chooser.
- *
+ *
* @param prefs the prefs
* @param valField the val field
*/
diff --git a/sources/prefs/editors/VSEditor.java b/sources/prefs/editors/VSEditor.java
index 8eda1e0..013b62a 100644
--- a/sources/prefs/editors/VSEditor.java
+++ b/sources/prefs/editors/VSEditor.java
@@ -17,82 +17,82 @@ import prefs.VSPrefs;
* The Class VSEditor.
*/
public abstract class VSEditor implements ActionListener {
-
+
/** The boolean keys. */
private ArrayList<String> booleanKeys;
-
+
/** The color keys. */
private ArrayList<String> colorKeys;
-
+
/** The float keys. */
private ArrayList<String> floatKeys;
-
+
/** The integer keys. */
private ArrayList<String> integerKeys;
-
+
/** The long keys. */
private ArrayList<String> longKeys;
-
+
/** The string keys. */
private ArrayList<String> stringKeys;
-
+
/** The boolean fields. */
private HashMap<String,JCheckBox> booleanFields;
-
+
/** The integer fields. */
private HashMap<String,JComboBox> integerFields;
-
+
/** The color fields. */
private HashMap<String,JTextField> colorFields;
-
+
/** The float fields. */
private HashMap<String,JTextField> floatFields;
-
+
/** The long fields. */
private HashMap<String,JTextField> longFields;
-
+
/** The string fields. */
private HashMap<String,JTextField> stringFields;
-
+
/** The prefs to edit map. */
private HashMap<String,VSPrefs> prefsToEditMap;
-
+
/** The button panel. */
private JPanel buttonPanel;
-
+
/** The edit panel. */
private JPanel editPanel;
-
+
/** The edit table. */
private VSEditorTable editTable;
-
+
/** The frame. */
private VSFrame frame;
-
+
/** The expert mode changed. */
private boolean expertModeChanged;
-
+
/** The prefs. */
protected VSPrefs prefs;
-
+
/** The prefs to edit. */
protected VSPrefs prefsToEdit;
-
+
/** The Constant MIN_UNIT_LENGTH. */
protected static final int MIN_UNIT_LENGTH = 5;
-
+
/** The Constant VALUE_FIELD_COLS. */
protected static final int VALUE_FIELD_COLS = 9;
-
+
/** The Constant ALL_PREFERENCES. */
public static final int ALL_PREFERENCES = 0;
-
+
/** The Constant SIMULATION_PREFERENCES. */
public static final int SIMULATION_PREFERENCES = 1;
/**
* Instantiates a new vS editor.
- *
+ *
* @param prefs the prefs
* @param prefsToEdit the prefs to edit
*/
@@ -102,18 +102,18 @@ public abstract class VSEditor implements ActionListener {
/**
* Adds the to button panel front.
- *
+ *
* @param buttonPanel the button panel
*/
abstract protected void addToButtonPanelFront(JPanel buttonPanel);
-
+
/**
* Adds the to button panel last.
- *
+ *
* @param buttonPanel the button panel
*/
abstract protected void addToButtonPanelLast(JPanel buttonPanel);
-
+
/**
* Adds the to edit table last.
*/
@@ -121,7 +121,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Sets the prefs.
- *
+ *
* @param prefs the new prefs
*/
public void setPrefs(VSPrefs prefs) {
@@ -130,7 +130,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Sets the prefs to edit.
- *
+ *
* @param prefsToEdit the new prefs to edit
*/
public void setPrefsToEdit(VSPrefs prefsToEdit) {
@@ -139,7 +139,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Sets the frame.
- *
+ *
* @param frame the new frame
*/
public void setFrame(VSFrame frame) {
@@ -148,7 +148,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Gets the frame.
- *
+ *
* @return the frame
*/
public VSFrame getFrame() {
@@ -173,7 +173,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Inits the.
- *
+ *
* @param prefs the prefs
* @param prefsToEdit the prefs to edit
*/
@@ -205,9 +205,9 @@ public abstract class VSEditor implements ActionListener {
/**
* Filter keys.
- *
+ *
* @param set the set
- *
+ *
* @return the array list< string>
*/
private ArrayList<String> filterKeys(Set<String> set) {
@@ -228,7 +228,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the button panel.
- *
+ *
* @return the j panel
*/
private JPanel createButtonPanel() {
@@ -249,10 +249,10 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the unit panel.
- *
+ *
* @param comp the comp
* @param key the key
- *
+ *
* @return the j panel
*/
private JPanel createUnitPanel(Component comp, String key) {
@@ -278,7 +278,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the edit panel.
- *
+ *
* @return the j panel
*/
private JPanel createEditPanel() {
@@ -295,11 +295,11 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the integer component.
- *
+ *
* @param fullKey the full key
* @param key the key
* @param prefsToEdit the prefs to edit
- *
+ *
* @return the vS tupel< string, component, j combo box>
*/
protected VSTupel<String,Component,JComboBox> createIntegerComponent(String fullKey, String key, VSPrefs prefsToEdit) {
@@ -331,11 +331,11 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the boolean component.
- *
+ *
* @param fullKey the full key
* @param key the key
* @param prefsToEdit the prefs to edit
- *
+ *
* @return the vS tupel< string, component, j check box>
*/
protected VSTupel<String,Component,JCheckBox> createBooleanComponent(String fullKey, String key, VSPrefs prefsToEdit) {
@@ -350,11 +350,11 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the long component.
- *
+ *
* @param fullKey the full key
* @param key the key
* @param prefsToEdit the prefs to edit
- *
+ *
* @return the vS tupel< string, component, j text field>
*/
protected VSTupel<String,Component,JTextField> createLongComponent(String fullKey, String key, VSPrefs prefsToEdit) {
@@ -375,11 +375,11 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the float component.
- *
+ *
* @param fullKey the full key
* @param key the key
* @param prefsToEdit the prefs to edit
- *
+ *
* @return the vS tupel< string, component, j text field>
*/
protected VSTupel<String,Component,JTextField> createFloatComponent(String fullKey, String key, VSPrefs prefsToEdit) {
@@ -400,11 +400,11 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the color component.
- *
+ *
* @param fullKey the full key
* @param key the key
* @param prefsToEdit the prefs to edit
- *
+ *
* @return the vS tupel< string, component, j text field>
*/
protected VSTupel<String,Component,JTextField> createColorComponent(String fullKey, String key, final VSPrefs prefsToEdit) {
@@ -441,11 +441,11 @@ public abstract class VSEditor implements ActionListener {
/**
* Creates the string component.
- *
+ *
* @param fullKey the full key
* @param key the key
* @param prefsToEdit the prefs to edit
- *
+ *
* @return the vS tupel< string, component, j text field>
*/
protected VSTupel<String,Component,JTextField> createStringComponent(String fullKey, String key, VSPrefs prefsToEdit) {
@@ -466,7 +466,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Fill edit panel.
- *
+ *
* @param prefsToEdit the prefs to edit
*/
private void fillEditPanel(VSPrefs prefsToEdit) {
@@ -593,7 +593,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Adds the to editor.
- *
+ *
* @param label the label
* @param prefsKey the prefs key
* @param prefsToAdd the prefs to add
@@ -661,7 +661,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Adds the separator.
- *
+ *
* @param label the label
*/
private void addSeparator(String label) {
@@ -670,7 +670,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Adds the variable.
- *
+ *
* @param label the label
* @param component the component
* @param prefs the prefs
@@ -681,7 +681,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Adds the variable.
- *
+ *
* @param prefsKey the prefs key
* @param label the label
* @param component the component
@@ -734,9 +734,9 @@ public abstract class VSEditor implements ActionListener {
/**
* Gets the keys.
- *
+ *
* @param key the key
- *
+ *
* @return [0] := key, [1] := prefsKey
*/
private String[] getKeys(String key) {
@@ -817,7 +817,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Expert mode changed.
- *
+ *
* @return true, if successful
*/
public boolean expertModeChanged() {
@@ -845,7 +845,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Gets the edits the panel.
- *
+ *
* @return the edits the panel
*/
public JPanel getEditPanel() {
@@ -854,7 +854,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Gets the edits the table.
- *
+ *
* @return the edits the table
*/
public VSEditorTable getEditTable() {
@@ -863,7 +863,7 @@ public abstract class VSEditor implements ActionListener {
/**
* Gets the button panel.
- *
+ *
* @return the button panel
*/
public JPanel getButtonPanel() {
diff --git a/sources/prefs/editors/VSEditorFrame.java b/sources/prefs/editors/VSEditorFrame.java
index 18a5eb6..9af98fa 100644
--- a/sources/prefs/editors/VSEditorFrame.java
+++ b/sources/prefs/editors/VSEditorFrame.java
@@ -16,16 +16,16 @@ import utils.*;
* The Class VSEditorFrame.
*/
public class VSEditorFrame extends VSFrame implements ActionListener {
-
+
/** The editor. */
private VSBetterEditor editor;
-
+
/** The prefs. */
private VSPrefs prefs;
/**
* Instantiates a new vS editor frame.
- *
+ *
* @param prefs the prefs
* @param relativeTo the relative to
* @param editor the editor
@@ -53,7 +53,7 @@ public class VSEditorFrame extends VSFrame implements ActionListener {
/**
* Fill button panel.
- *
+ *
* @param buttonPanel the button panel
*/
private void fillButtonPanel(JPanel buttonPanel) {
diff --git a/sources/prefs/editors/VSEditorTable.java b/sources/prefs/editors/VSEditorTable.java
index 88d7886..4963f68 100644
--- a/sources/prefs/editors/VSEditorTable.java
+++ b/sources/prefs/editors/VSEditorTable.java
@@ -18,17 +18,17 @@ import prefs.*;
* The Class VSEditorTable.
*/
public class VSEditorTable extends JTable {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/** The Constant MIN_ROWS. */
private static final int MIN_ROWS = 20;
-
+
/** The prefs. */
private VSPrefs prefs;
-
+
/** The nodes. */
private ArrayList<VSNode> nodes;
-
+
/** The model. */
private VSEditorTableModel model;
@@ -36,16 +36,16 @@ public class VSEditorTable extends JTable {
* The Class VSNode.
*/
private class VSNode {
-
+
/** The key. */
private String key;
-
+
/** The comp. */
private Component comp;
/**
* Instantiates a new vS node.
- *
+ *
* @param key the key
*/
public VSNode(String key) {
@@ -54,7 +54,7 @@ public class VSEditorTable extends JTable {
/**
* Instantiates a new vS node.
- *
+ *
* @param key the key
* @param comp the comp
*/
@@ -65,7 +65,7 @@ public class VSEditorTable extends JTable {
/**
* Gets the key.
- *
+ *
* @return the key
*/
public String getKey() {
@@ -74,7 +74,7 @@ public class VSEditorTable extends JTable {
/**
* Gets the component.
- *
+ *
* @return the component
*/
public Component getComponent() {
@@ -83,7 +83,7 @@ public class VSEditorTable extends JTable {
/**
* Gets the renderer component.
- *
+ *
* @return the renderer component
*/
public Component getRendererComponent() {
@@ -92,7 +92,7 @@ public class VSEditorTable extends JTable {
/**
* Checks if is separator.
- *
+ *
* @return true, if is separator
*/
public boolean isSeparator() {
@@ -104,8 +104,8 @@ public class VSEditorTable extends JTable {
* The Class VSEditorTableModel.
*/
private class VSEditorTableModel extends AbstractTableModel implements TableCellRenderer {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/**
* Instantiates a new vS editor table model.
*/
@@ -207,8 +207,8 @@ public class VSEditorTable extends JTable {
* The Class VSTableCellEditor.
*/
private class VSTableCellEditor extends AbstractCellEditor implements TableCellEditor {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/* (non-Javadoc)
* @see javax.swing.table.TableCellEditor#getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)
*/
@@ -227,7 +227,7 @@ public class VSEditorTable extends JTable {
/**
* Instantiates a new vS editor table.
- *
+ *
* @param prefs the prefs
*/
public VSEditorTable(VSPrefs prefs) {
@@ -252,7 +252,7 @@ public class VSEditorTable extends JTable {
/**
* Adds the variable.
- *
+ *
* @param key the key
* @param comp the comp
*/
@@ -262,7 +262,7 @@ public class VSEditorTable extends JTable {
/**
* Adds the separator.
- *
+ *
* @param text the text
*/
public void addSeparator(String text) {
diff --git a/sources/prefs/editors/VSProcessEditor.java b/sources/prefs/editors/VSProcessEditor.java
index e17f89a..fc0e01d 100644
--- a/sources/prefs/editors/VSProcessEditor.java
+++ b/sources/prefs/editors/VSProcessEditor.java
@@ -18,16 +18,16 @@ import prefs.VSPrefs;
* The Class VSProcessEditor.
*/
public class VSProcessEditor extends VSBetterEditor {
-
+
/** The process. */
private VSProcess process;
-
+
/** The TAKEOVE r_ button. */
public static boolean TAKEOVER_BUTTON;
-
+
/**
* Instantiates a new vS process editor.
- *
+ *
* @param prefs the prefs
* @param process the process
*/
diff --git a/sources/prefs/editors/VSSimulatorEditor.java b/sources/prefs/editors/VSSimulatorEditor.java
index 1264377..2bd965f 100644
--- a/sources/prefs/editors/VSSimulatorEditor.java
+++ b/sources/prefs/editors/VSSimulatorEditor.java
@@ -15,22 +15,22 @@ import prefs.*;
* The Class VSSimulatorEditor.
*/
public class VSSimulatorEditor extends VSBetterEditor {
-
+
/** The simulator frame. */
private VSSimulatorFrame simulatorFrame;
-
+
/** The simulation. */
private VSSimulator simulation;
-
+
/** The TAKEOVE r_ button. */
public static boolean TAKEOVER_BUTTON;
-
+
/** The dont start new simulation. */
private boolean dontStartNewSimulation;
/**
* Instantiates a new vS simulator editor.
- *
+ *
* @param prefs the prefs
* @param simulatorFrame the simulator frame
* @param simulation the simulation
@@ -45,7 +45,7 @@ public class VSSimulatorEditor extends VSBetterEditor {
/**
* Instantiates a new vS simulator editor.
- *
+ *
* @param prefs the prefs
* @param simulatorFrame the simulator frame
*/
diff --git a/sources/protocols/VSProtocol.java b/sources/protocols/VSProtocol.java
index b3ebfe6..6ef824d 100644
--- a/sources/protocols/VSProtocol.java
+++ b/sources/protocols/VSProtocol.java
@@ -12,19 +12,19 @@ import core.*;
* The Class VSProtocol.
*/
abstract public class VSProtocol extends VSEvent {
-
+
/** The is server. */
private boolean isServer;
-
+
/** The is client. */
private boolean isClient;
-
+
/** The current context is server. */
private boolean currentContextIsServer;
/**
* Send message.
- *
+ *
* @param message the message
*/
protected void sendMessage(VSMessage message) {
@@ -39,9 +39,9 @@ abstract public class VSProtocol extends VSEvent {
/**
* Checks if is incorrect protocol.
- *
+ *
* @param message the message
- *
+ *
* @return true, if is incorrect protocol
*/
private final boolean isIncorrectProtocol(VSMessage message) {
@@ -60,7 +60,7 @@ abstract public class VSProtocol extends VSEvent {
/**
* On message recv.
- *
+ *
* @param message the message
*/
public final void onMessageRecv(VSMessage message) {
@@ -80,7 +80,7 @@ abstract public class VSProtocol extends VSEvent {
/**
* Checks if is server.
- *
+ *
* @param isServer the is server
*/
public final void isServer(boolean isServer) {
@@ -89,7 +89,7 @@ abstract public class VSProtocol extends VSEvent {
/**
* Checks if is client.
- *
+ *
* @param isClient the is client
*/
public final void isClient(boolean isClient) {
@@ -117,34 +117,34 @@ abstract public class VSProtocol extends VSEvent {
* On client start.
*/
abstract protected void onClientStart();
-
+
/**
* On client reset.
*/
abstract protected void onClientReset();
-
+
/**
* On client recv.
- *
+ *
* @param message the message
*/
abstract protected void onClientRecv(VSMessage message);
-
+
/**
* On server reset.
*/
abstract protected void onServerReset();
-
+
/**
* On server recv.
- *
+ *
* @param message the message
*/
abstract protected void onServerRecv(VSMessage message);
/**
* Gets the num processes.
- *
+ *
* @return the num processes
*/
protected int getNumProcesses() {
diff --git a/sources/protocols/implementations/BerkelyTimeProtocol.java b/sources/protocols/implementations/BerkelyTimeProtocol.java
index 7326ac5..177dc4d 100644
--- a/sources/protocols/implementations/BerkelyTimeProtocol.java
+++ b/sources/protocols/implementations/BerkelyTimeProtocol.java
@@ -92,7 +92,7 @@ public class BerkelyTimeProtocol extends VSProtocol {
/**
* Calculate the new average time.
- *
+ *
* @return the long
*/
private long calculateAverageTime() {
@@ -112,7 +112,7 @@ public class BerkelyTimeProtocol extends VSProtocol {
/**
* Sends to all clients a value to justify their local clocks.
- *
+ *
* @param avgTime the avg time
*/
private void sendJustifyRequests(long avgTime) {
diff --git a/sources/protocols/implementations/BroadcastSturmProtocol.java b/sources/protocols/implementations/BroadcastSturmProtocol.java
index 9efd347..6969221 100644
--- a/sources/protocols/implementations/BroadcastSturmProtocol.java
+++ b/sources/protocols/implementations/BroadcastSturmProtocol.java
@@ -14,10 +14,10 @@ import protocols.VSProtocol;
* The Class BroadcastSturmProtocol.
*/
public class BroadcastSturmProtocol extends VSProtocol {
-
+
/** The sent messages. */
private ArrayList<VSMessage> sentMessages;
-
+
/** The broadcast count. */
private static int broadcastCount;
diff --git a/sources/protocols/implementations/DummyProtocol.java b/sources/protocols/implementations/DummyProtocol.java
index 50690b3..52e9b28 100644
--- a/sources/protocols/implementations/DummyProtocol.java
+++ b/sources/protocols/implementations/DummyProtocol.java
@@ -12,7 +12,7 @@ import core.VSMessage;
* The Class DummyProtocol.
*/
public class DummyProtocol extends VSProtocol {
-
+
/**
* Instantiates a new dummy protocol.
*/
diff --git a/sources/protocols/implementations/ExternalTimeSyncProtocol.java b/sources/protocols/implementations/ExternalTimeSyncProtocol.java
index 63edcaf..6193417 100644
--- a/sources/protocols/implementations/ExternalTimeSyncProtocol.java
+++ b/sources/protocols/implementations/ExternalTimeSyncProtocol.java
@@ -12,10 +12,10 @@ import protocols.VSProtocol;
* The Class ExternalTimeSyncProtocol.
*/
public class ExternalTimeSyncProtocol extends VSProtocol {
-
+
/** The request time. */
private long requestTime;
-
+
/** The waiting for response. */
private boolean waitingForResponse;
diff --git a/sources/protocols/implementations/InternalTimeSyncProtocol.java b/sources/protocols/implementations/InternalTimeSyncProtocol.java
index 2f9a84c..a55430b 100644
--- a/sources/protocols/implementations/InternalTimeSyncProtocol.java
+++ b/sources/protocols/implementations/InternalTimeSyncProtocol.java
@@ -12,7 +12,7 @@ import protocols.VSProtocol;
* The Class InternalTimeSyncProtocol.
*/
public class InternalTimeSyncProtocol extends VSProtocol {
-
+
/** The waiting for response. */
private boolean waitingForResponse;
diff --git a/sources/protocols/implementations/PingPongProtocol.java b/sources/protocols/implementations/PingPongProtocol.java
index 5df152f..a7cf9fc 100644
--- a/sources/protocols/implementations/PingPongProtocol.java
+++ b/sources/protocols/implementations/PingPongProtocol.java
@@ -12,10 +12,10 @@ import protocols.VSProtocol;
* The Class PingPongProtocol.
*/
public class PingPongProtocol extends VSProtocol {
-
+
/** The client counter. */
private int clientCounter;
-
+
/** The server counter. */
private int serverCounter;
diff --git a/sources/simulator/VSAbout.java b/sources/simulator/VSAbout.java
index 4b33e82..607843a 100644
--- a/sources/simulator/VSAbout.java
+++ b/sources/simulator/VSAbout.java
@@ -16,13 +16,13 @@ import utils.*;
* The Class VSAbout.
*/
public class VSAbout extends VSFrame implements ActionListener {
-
+
/** The prefs. */
private VSPrefs prefs;
/**
* Instantiates a new vS about.
- *
+ *
* @param prefs the prefs
* @param relativeTo the relative to
*/
@@ -41,7 +41,7 @@ public class VSAbout extends VSFrame implements ActionListener {
/**
* Creates the content pane.
- *
+ *
* @return the container
*/
public Container createContentPane() {
@@ -59,7 +59,7 @@ public class VSAbout extends VSFrame implements ActionListener {
/**
* Creates the button pane.
- *
+ *
* @return the j panel
*/
public JPanel createButtonPane() {
diff --git a/sources/simulator/VSLogging.java b/sources/simulator/VSLogging.java
index fe76abc..b1938df 100644
--- a/sources/simulator/VSLogging.java
+++ b/sources/simulator/VSLogging.java
@@ -15,28 +15,28 @@ import utils.*;
* The Class VSLogging.
*/
public class VSLogging {
-
+
/** The logging area. */
private JTextArea loggingArea;
-
+
/** The filter text. */
private String filterText;
-
+
/** The pause lines. */
private ArrayList<StringBuffer> pauseLines;
-
+
/** The logging lines. */
private ArrayList<StringBuffer> loggingLines;
-
+
/** The simulation canvas. */
private VSSimulatorCanvas simulationCanvas;
-
+
/** The is filtered. */
private boolean isFiltered;
-
+
/** The is paused. */
private boolean isPaused;
-
+
/** The filter pattern. */
private Pattern filterPattern;
@@ -55,7 +55,7 @@ public class VSLogging {
/**
* Sets the simulation canvas.
- *
+ *
* @param simulationCanvas the new simulation canvas
*/
public void setSimulationCanvas(VSSimulatorCanvas simulationCanvas) {
@@ -64,7 +64,7 @@ public class VSLogging {
/**
* Gets the logging area.
- *
+ *
* @return the logging area
*/
public JTextArea getLoggingArea() {
@@ -73,7 +73,7 @@ public class VSLogging {
/**
* Logg.
- *
+ *
* @param message the message
*/
public void logg(String message) {
@@ -85,7 +85,7 @@ public class VSLogging {
/**
* Logg.
- *
+ *
* @param message the message
* @param time the time
*/
@@ -103,7 +103,7 @@ public class VSLogging {
/**
* Checks if is paused.
- *
+ *
* @param isPaused the is paused
*/
public synchronized void isPaused(boolean isPaused) {
@@ -119,7 +119,7 @@ public class VSLogging {
/**
* Logg filtered.
- *
+ *
* @param buffer the buffer
*/
private void loggFiltered(StringBuffer buffer) {
@@ -136,7 +136,7 @@ public class VSLogging {
/**
* Checks if is filtered.
- *
+ *
* @param isFiltered the is filtered
*/
public synchronized void isFiltered(boolean isFiltered) {
@@ -150,7 +150,7 @@ public class VSLogging {
/**
* Sets the filter text.
- *
+ *
* @param filterText the new filter text
*/
public synchronized void setFilterText(String filterText) {
diff --git a/sources/simulator/VSMain.java b/sources/simulator/VSMain.java
index 79a0a7e..e3b39c6 100644
--- a/sources/simulator/VSMain.java
+++ b/sources/simulator/VSMain.java
@@ -16,10 +16,10 @@ import prefs.editors.*;
* The Class VSMain.
*/
public class VSMain {
-
+
/**
* Instantiates a new vS main.
- *
+ *
* @param prefs the prefs
*/
public VSMain(VSPrefs prefs) {
@@ -28,7 +28,7 @@ public class VSMain {
/**
* Instantiates a new vS main.
- *
+ *
* @param prefs the prefs
* @param relativeTo the relative to
*/
@@ -38,7 +38,7 @@ public class VSMain {
/**
* Inits the.
- *
+ *
* @param prefs the prefs
* @param relativeTo the relative to
*/
@@ -49,7 +49,7 @@ public class VSMain {
/**
* The main method.
- *
+ *
* @param args the arguments
*/
public static void main(String[] args) {
diff --git a/sources/simulator/VSSimulator.java b/sources/simulator/VSSimulator.java
index c42b848..5ef9266 100644
--- a/sources/simulator/VSSimulator.java
+++ b/sources/simulator/VSSimulator.java
@@ -23,109 +23,109 @@ import utils.*;
* The Class VSSimulator.
*/
public class VSSimulator extends JPanel {
-
+
/** The global text fields. */
private ArrayList<String> globalTextFields;
-
+
/** The local text fields. */
private ArrayList<String> localTextFields;
-
+
/** The create tasks. */
private ArrayList<VSCreateTask> createTasks;
-
+
/** The filter active check box. */
private JCheckBox filterActiveCheckBox;
-
+
/** The lamport active check box. */
private JCheckBox lamportActiveCheckBox;
-
+
/** The vector time active check box. */
private JCheckBox vectorTimeActiveCheckBox;
-
+
/** The global pid combo box. */
private JComboBox globalPIDComboBox;
-
+
/** The local pid combo box. */
private JComboBox localPIDComboBox;
-
+
/** The processes combo box. */
private JComboBox processesComboBox;
-
+
/** The global add panel. */
private JPanel globalAddPanel;
-
+
/** The local add panel. */
private JPanel localAddPanel;
-
+
/** The local panel. */
private JPanel localPanel;
-
+
/** The logging panel. */
private JPanel loggingPanel;
-
+
/** The tools panel. */
private JPanel toolsPanel;
-
+
/** The split pane1. */
private JSplitPane splitPane1;
-
+
/** The split pane h. */
private JSplitPane splitPaneH;
-
+
/** The split pane v. */
private JSplitPane splitPaneV;
-
+
/** The tabbed pane. */
private JTabbedPane tabbedPane;
-
+
/** The logging area. */
private JTextArea loggingArea;
-
+
/** The filter text field. */
private JTextField filterTextField;
-
+
/** The global text field. */
private JTextField globalTextField;
-
+
/** The local text field. */
private JTextField localTextField;
-
+
/** The thread. */
private Thread thread;
-
+
/** The logging. */
private VSLogging logging;
-
+
/** The menu item states. */
private VSMenuItemStates menuItemStates;
-
+
/** The prefs. */
private VSPrefs prefs;
-
+
/** The simulation canvas. */
private VSSimulatorCanvas simulationCanvas;
-
+
/** The simulator frame. */
private VSSimulatorFrame simulatorFrame;
-
+
/** The task manager. */
private VSTaskManager taskManager;
-
+
/** The task manager global model. */
private VSTaskManagerTableModel taskManagerGlobalModel;
-
+
/** The task manager local model. */
private VSTaskManagerTableModel taskManagerLocalModel;
-
+
/** The has started. */
private boolean hasStarted = false;
-
+
/** The last selected process num. */
private int lastSelectedProcessNum;
-
+
/** The simulation counter. */
private static int simulationCounter;
-
+
/** The simulation num. */
private static int simulationNum;
@@ -133,22 +133,22 @@ public class VSSimulator extends JPanel {
* The Class VSMenuItemStates.
*/
public class VSMenuItemStates {
-
+
/** The pause. */
private volatile boolean pause;
-
+
/** The replay. */
private volatile boolean replay;
-
+
/** The reset. */
private volatile boolean reset;
-
+
/** The start. */
private volatile boolean start;
/**
* Instantiates a new vS menu item states.
- *
+ *
* @param pause the pause
* @param replay the replay
* @param reset the reset
@@ -163,7 +163,7 @@ public class VSSimulator extends JPanel {
/**
* Sets the pause.
- *
+ *
* @param pause the new pause
*/
public void setPause(boolean pause) {
@@ -172,7 +172,7 @@ public class VSSimulator extends JPanel {
/**
* Sets the replay.
- *
+ *
* @param replay the new replay
*/
public void setReplay(boolean replay) {
@@ -181,7 +181,7 @@ public class VSSimulator extends JPanel {
/**
* Sets the reset.
- *
+ *
* @param reset the new reset
*/
public void setReset(boolean reset) {
@@ -190,7 +190,7 @@ public class VSSimulator extends JPanel {
/**
* Sets the start.
- *
+ *
* @param start the new start
*/
public void setStart(boolean start) {
@@ -199,7 +199,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the pause.
- *
+ *
* @return the pause
*/
public boolean getPause() {
@@ -208,7 +208,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the replay.
- *
+ *
* @return the replay
*/
public boolean getReplay() {
@@ -217,7 +217,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the reset.
- *
+ *
* @return the reset
*/
public boolean getReset() {
@@ -226,7 +226,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the start.
- *
+ *
* @return the start
*/
public boolean getStart() {
@@ -236,7 +236,7 @@ public class VSSimulator extends JPanel {
/**
* Instantiates a new vS simulator.
- *
+ *
* @param prefs the prefs
* @param simulatorFrame the simulator frame
*/
@@ -315,10 +315,10 @@ public class VSSimulator extends JPanel {
/** The last expert state. */
private boolean lastExpertState;
-
+
/**
* Creates the tools panel.
- *
+ *
* @return the j panel
*/
private JPanel createToolsPanel() {
@@ -440,7 +440,7 @@ public class VSSimulator extends JPanel {
/**
* Creates the process pane.
- *
+ *
* @return the j panel
*/
private JPanel createProcessPane() {
@@ -526,9 +526,9 @@ public class VSSimulator extends JPanel {
/**
* Creates the label panel.
- *
+ *
* @param text the text
- *
+ *
* @return the j panel
*/
private JPanel createLabelPanel(String text) {
@@ -541,9 +541,9 @@ public class VSSimulator extends JPanel {
/**
* Creates the task label.
- *
+ *
* @param localTasks the local tasks
- *
+ *
* @return the j panel
*/
private JPanel createTaskLabel(boolean localTasks) {
@@ -570,23 +570,23 @@ public class VSSimulator extends JPanel {
* The Class VSCreateTask.
*/
private class VSCreateTask {
-
+
/** The event classname. */
private String eventClassname;
-
+
/** The protocol classname. */
private String protocolClassname;
-
+
/** The shortname. */
private String shortname;
/* Those 3 values are for ProtocolEvent events */
/** The is protocol activation. */
private boolean isProtocolActivation;
-
+
/** The is protocol deactivation. */
private boolean isProtocolDeactivation;
-
+
/** The is client protocol. */
private boolean isClientProtocol;
@@ -596,7 +596,7 @@ public class VSSimulator extends JPanel {
/**
* Instantiates a new vS create task.
- *
+ *
* @param eventClassname the event classname
*/
public VSCreateTask(String eventClassname) {
@@ -605,7 +605,7 @@ public class VSSimulator extends JPanel {
/**
* Checks if is protocol activation.
- *
+ *
* @param isProtocolActivation the is protocol activation
*/
public void isProtocolActivation(boolean isProtocolActivation) {
@@ -617,7 +617,7 @@ public class VSSimulator extends JPanel {
/**
* Checks if is protocol deactivation.
- *
+ *
* @param isProtocolDeactivation the is protocol deactivation
*/
public void isProtocolDeactivation(boolean isProtocolDeactivation) {
@@ -629,7 +629,7 @@ public class VSSimulator extends JPanel {
/**
* Checks if is client protocol.
- *
+ *
* @param isClientProtocol the is client protocol
*/
public void isClientProtocol(boolean isClientProtocol) {
@@ -638,7 +638,7 @@ public class VSSimulator extends JPanel {
/**
* Checks if is client request.
- *
+ *
* @param isClientRequest the is client request
*/
public void isClientRequest(boolean isClientRequest) {
@@ -647,7 +647,7 @@ public class VSSimulator extends JPanel {
/**
* Sets the protocol classname.
- *
+ *
* @param protocolClassname the new protocol classname
*/
public void setProtocolClassname(String protocolClassname) {
@@ -656,7 +656,7 @@ public class VSSimulator extends JPanel {
/**
* Sets the shortname.
- *
+ *
* @param shortname the new shortname
*/
public void setShortname(String shortname) {
@@ -665,11 +665,11 @@ public class VSSimulator extends JPanel {
/**
* Creates the task.
- *
+ *
* @param process the process
* @param time the time
* @param localTimedTask the local timed task
- *
+ *
* @return the vS task
*/
public VSTask createTask(VSProcess process, long time, boolean localTimedTask) {
@@ -701,37 +701,37 @@ public class VSSimulator extends JPanel {
* The Class VSTaskManagerTableModel.
*/
private class VSTaskManagerTableModel extends AbstractTableModel implements MouseListener {
-
+
/** The Constant LOCAL. */
public static final boolean LOCAL = true;
-
+
/** The Constant GLOBAL. */
public static final boolean GLOBAL = false;
-
+
/** The Constant ALL_PROCESSES. */
public static final boolean ALL_PROCESSES = true;
-
+
/** The Constant ONE_PROCESS. */
public static final boolean ONE_PROCESS = false;
-
+
/** The all processes. */
public boolean allProcesses;
-
+
/** The tasks. */
private VSPriorityQueue<VSTask> tasks;
-
+
/** The column names. */
private String columnNames[];
-
+
/** The num columns. */
private int numColumns;
-
+
/** The table. */
private JTable table;
/**
* Instantiates a new vS task manager table model.
- *
+ *
* @param process the process
* @param localTask the local task
*/
@@ -746,7 +746,7 @@ public class VSSimulator extends JPanel {
/**
* Sets the table.
- *
+ *
* @param table the new table
*/
public void setTable(JTable table) {
@@ -755,7 +755,7 @@ public class VSSimulator extends JPanel {
/**
* Sets the.
- *
+ *
* @param process the process
* @param localTasks the local tasks
* @param allProcesses the all processes
@@ -829,7 +829,7 @@ public class VSSimulator extends JPanel {
/**
* Adds the task.
- *
+ *
* @param task the task
*/
public void addTask(VSTask task) {
@@ -839,7 +839,7 @@ public class VSSimulator extends JPanel {
/**
* Removes the task at row.
- *
+ *
* @param row the row
*/
private void removeTaskAtRow(int row) {
@@ -880,17 +880,17 @@ public class VSSimulator extends JPanel {
* @see java.awt.event.MouseListener#mouseEntered(java.awt.event.MouseEvent)
*/
public void mouseEntered(MouseEvent me) { }
-
+
/* (non-Javadoc)
* @see java.awt.event.MouseListener#mouseExited(java.awt.event.MouseEvent)
*/
public void mouseExited(MouseEvent me) { }
-
+
/* (non-Javadoc)
* @see java.awt.event.MouseListener#mousePressed(java.awt.event.MouseEvent)
*/
public void mousePressed(MouseEvent me) { }
-
+
/* (non-Javadoc)
* @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
*/
@@ -899,9 +899,9 @@ public class VSSimulator extends JPanel {
/**
* Creates the task table.
- *
+ *
* @param localTasks the local tasks
- *
+ *
* @return the j table
*/
private JTable createTaskTable(boolean localTasks) {
@@ -934,10 +934,10 @@ public class VSSimulator extends JPanel {
/**
* Inits the add panel.
- *
+ *
* @param panel the panel
* @param localTasks the local tasks
- *
+ *
* @return the j panel
*/
private JPanel initAddPanel(JPanel panel, final boolean localTasks) {
@@ -1143,7 +1143,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the split size.
- *
+ *
* @return the split size
*/
public int getSplitSize() {
@@ -1152,7 +1152,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the paint size.
- *
+ *
* @return the paint size
*/
public int getPaintSize() {
@@ -1161,7 +1161,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the selected process num.
- *
+ *
* @return the selected process num
*/
private int getSelectedProcessNum() {
@@ -1170,7 +1170,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the selected process.
- *
+ *
* @return the selected process
*/
private VSProcess getSelectedProcess() {
@@ -1180,9 +1180,9 @@ public class VSSimulator extends JPanel {
/**
* Gets the concerned processes.
- *
+ *
* @param localTasks the local tasks
- *
+ *
* @return the concerned processes
*/
private ArrayList<VSProcess> getConcernedProcesses(boolean localTasks) {
@@ -1222,7 +1222,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the simulation num.
- *
+ *
* @return the simulation num
*/
public int getSimulationNum() {
@@ -1231,7 +1231,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the menu item states.
- *
+ *
* @return the menu item states
*/
public VSSimulator.VSMenuItemStates getMenuItemStates() {
@@ -1240,7 +1240,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the simulation canvas.
- *
+ *
* @return the simulation canvas
*/
public VSSimulatorCanvas getSimulationCanvas() {
@@ -1249,7 +1249,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the simulator frame.
- *
+ *
* @return the simulator frame
*/
public VSSimulatorFrame getSimulatorFrame() {
@@ -1266,7 +1266,7 @@ public class VSSimulator extends JPanel {
/**
* Removes the process at index.
- *
+ *
* @param index the index
*/
public void removeProcessAtIndex(int index) {
@@ -1287,7 +1287,7 @@ public class VSSimulator extends JPanel {
/**
* Adds the process at index.
- *
+ *
* @param index the index
*/
public void addProcessAtIndex(int index) {
@@ -1347,7 +1347,7 @@ public class VSSimulator extends JPanel {
/**
* Gets the prefs.
- *
+ *
* @return the prefs
*/
public VSPrefs getPrefs() {
diff --git a/sources/simulator/VSSimulatorCanvas.java b/sources/simulator/VSSimulatorCanvas.java
index 334b738..6037231 100644
--- a/sources/simulator/VSSimulatorCanvas.java
+++ b/sources/simulator/VSSimulatorCanvas.java
@@ -23,211 +23,211 @@ import prefs.editors.*;
* The Class VSSimulatorCanvas.
*/
public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionListener, MouseListener, HierarchyBoundsListener {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/** The highlighted process. */
private VSProcess highlightedProcess;
-
+
/** The simulation. */
private VSSimulator simulation;
-
+
/** The prefs. */
private VSPrefs prefs;
-
+
/** The logging. */
private VSLogging logging;
-
+
/** The num processes. */
private volatile int numProcesses;
-
+
/** The seconds spaceing. */
private int secondsSpaceing;
-
+
/** The thread sleep. */
private int threadSleep;
-
+
/** The until time. */
private long untilTime;
-
+
/** The is paused. */
private volatile boolean isPaused = true;
-
+
/** The is thread stopped. */
private volatile boolean isThreadStopped = false;
-
+
/** The is finished. */
private volatile boolean isFinished = false;
-
+
/** The is resetted. */
private volatile boolean isResetted = false;
-
+
/** The is anti aliased. */
private volatile boolean isAntiAliased = false;
-
+
/** The is anti aliased changed. */
private volatile boolean isAntiAliasedChanged = false;
-
+
/** The show lamport. */
private volatile boolean showLamport = false;
-
+
/** The show vector time. */
private volatile boolean showVectorTime = false;
-
+
/** The pause time. */
private volatile long pauseTime;
-
+
/** The start time. */
private volatile long startTime;
-
+
/** The time. */
private volatile long time;
-
+
/** The last time. */
private volatile long lastTime;
-
+
/** The task manager. */
private VSTaskManager taskManager;
-
+
/** The message lines. */
private LinkedList<VSMessageLine> messageLines;
-
+
/** The processes. */
private Vector<VSProcess> processes;
-
+
/** The clock speed. */
private double clockSpeed;
-
+
/** The clock offset. */
private double clockOffset;
-
+
/** The simulation time. */
private long simulationTime;
/* GFX buffering */
/** The strategy. */
private BufferStrategy strategy;
-
+
/** The g. */
private Graphics2D g;
/* Static constats */
/** The Constant LINE_WIDTH. */
private static final int LINE_WIDTH = 5;
-
+
/** The Constant SEPLINE_WIDTH. */
private static final int SEPLINE_WIDTH = 2;
-
+
/** The Constant XOFFSET. */
private static final int XOFFSET = 50;
-
+
/** The Constant YOFFSET. */
private static final int YOFFSET = 30;
-
+
/** The Constant YOUTER_SPACEING. */
private static final int YOUTER_SPACEING = 15;
-
+
/** The Constant YSEPLINE_SPACEING. */
private static final int YSEPLINE_SPACEING = 20;
-
+
/** The Constant TEXT_SPACEING. */
private static final int TEXT_SPACEING = 10;
-
+
/** The Constant ROW_HEIGHT. */
private static final int ROW_HEIGHT = 14;
/* Constats, which have to get calculated once after start */
/** The processline color. */
private Color processlineColor;
-
+
/** The process secondline color. */
private Color processSecondlineColor;
-
+
/** The process sepline color. */
private Color processSeplineColor;
-
+
/** The message arrived color. */
private Color messageArrivedColor;
-
+
/** The message sending color. */
private Color messageSendingColor;
-
+
/** The message lost color. */
private Color messageLostColor;
-
+
/** The background color. */
private Color backgroundColor;
/** The message line counter. */
private long messageLineCounter;
-
+
/**
* The Class VSMessageLine.
*/
private class VSMessageLine {
-
+
/** The receiver process. */
private VSProcess receiverProcess;
-
+
/** The color. */
private Color color;
-
+
/** The send time. */
private long sendTime;
-
+
/** The recv time. */
private long recvTime;
-
+
/** The sender num. */
private int senderNum;
-
+
/** The receiver num. */
private int receiverNum;
-
+
/** The offset1. */
private int offset1;
-
+
/** The offset2. */
private int offset2;
-
+
/** The is arrived. */
private boolean isArrived;
-
+
/** The is lost. */
private boolean isLost;
-
+
/** The x1. */
private double x1;
-
+
/** The y1. */
private double y1;
-
+
/** The x2. */
private double x2;
-
+
/** The y2. */
private double y2;
-
+
/** The x. */
private double x;
-
+
/** The y. */
private double y;
-
+
/** The outage time. */
private long outageTime;
-
+
/** The z. */
private long z;
-
+
/** The message line num. */
private long messageLineNum;
-
+
/** The task. */
private VSTask task;
/**
* Instantiates a new vS message line.
- *
+ *
* @param receiverProcess the receiver process
* @param sendTime the send time
* @param recvTime the recv time
@@ -282,7 +282,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Draw.
- *
+ *
* @param g the g
* @param globalTime the global time
*/
@@ -318,9 +318,9 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Removes the process at index.
- *
+ *
* @param index the index
- *
+ *
* @return true, if successful
*/
public boolean removeProcessAtIndex(int index) {
@@ -340,7 +340,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the message line num.
- *
+ *
* @return the message line num
*/
public long getMessageLineNum() {
@@ -349,9 +349,9 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Equals.
- *
+ *
* @param line the line
- *
+ *
* @return true, if successful
*/
public boolean equals(VSMessageLine line) {
@@ -360,7 +360,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the task.
- *
+ *
* @return the task
*/
public VSTask getTask() {
@@ -370,7 +370,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Instantiates a new vS simulator canvas.
- *
+ *
* @param prefs the prefs
* @param simulation the simulation
* @param logging the logging
@@ -397,37 +397,37 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/** The x paint size. */
double xPaintSize;
-
+
/** The paint size. */
double paintSize;
-
+
/** The y distance. */
double yDistance;
-
+
/** The global time x position. */
double globalTimeXPosition;
/** The xoffset_plus_xpaintsize. */
int xoffset_plus_xpaintsize;
-
+
/** The xpaintsize_dividedby_untiltime. */
double xpaintsize_dividedby_untiltime;
-
+
/** The paint processes offset. */
int paintProcessesOffset;
/** The paint secondlines seconds. */
int paintSecondlinesSeconds;
-
+
/** The paint secondlines line. */
int paintSecondlinesLine[] = new int[4];
-
+
/** The paint secondlines y string pos1. */
int paintSecondlinesYStringPos1;
-
+
/** The paint secondlines y string pos2. */
int paintSecondlinesYStringPos2;
-
+
/** The paint global time y position. */
int paintGlobalTimeYPosition;
@@ -488,7 +488,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Update simulation.
- *
+ *
* @param globalTime the global time
* @param lastGlobalTime the last global time
*/
@@ -564,7 +564,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Paint processes.
- *
+ *
* @param g the g
* @param globalTime the global time
*/
@@ -629,7 +629,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Paint time.
- *
+ *
* @param g the g
* @param times the times
* @param process the process
@@ -677,7 +677,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Paint secondlines.
- *
+ *
* @param g the g
*/
private void paintSecondlines(Graphics2D g) {
@@ -702,7 +702,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Paint global time.
- *
+ *
* @param g the g
* @param globalTime the global time
*/
@@ -720,9 +720,9 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the process at y pos.
- *
+ *
* @param yPos the y pos
- *
+ *
* @return the process at y pos
*/
private VSProcess getProcessAtYPos(int yPos) {
@@ -745,9 +745,9 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the time x position.
- *
+ *
* @param time the time
- *
+ *
* @return the time x position
*/
private double getTimeXPosition(long time) {
@@ -756,9 +756,9 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the process y position.
- *
+ *
* @param i the i
- *
+ *
* @return the process y position
*/
private int getProcessYPosition(int i) {
@@ -776,7 +776,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the time.
- *
+ *
* @return the time
*/
public long getTime() {
@@ -785,7 +785,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the until time.
- *
+ *
* @return the until time
*/
public long getUntilTime() {
@@ -794,7 +794,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the start time.
- *
+ *
* @return the start time
*/
public long getStartTime() {
@@ -803,7 +803,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the task manager.
- *
+ *
* @return the task manager
*/
public VSTaskManager getTaskManager() {
@@ -812,7 +812,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the num processes.
- *
+ *
* @return the num processes
*/
public int getNumProcesses() {
@@ -821,9 +821,9 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the process.
- *
+ *
* @param processNum the process num
- *
+ *
* @return the process
*/
public VSProcess getProcess(int processNum) {
@@ -985,7 +985,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Checks if is thread stopped.
- *
+ *
* @return true, if is thread stopped
*/
public boolean isThreadStopped() {
@@ -994,7 +994,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Show lamport.
- *
+ *
* @param showLamport the show lamport
*/
public void showLamport(boolean showLamport) {
@@ -1005,7 +1005,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Show vector time.
- *
+ *
* @param showVectorTime the show vector time
*/
public void showVectorTime(boolean showVectorTime) {
@@ -1016,7 +1016,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Checks if is anti aliased.
- *
+ *
* @param isAntiAliased the is anti aliased
*/
public void isAntiAliased(boolean isAntiAliased) {
@@ -1028,7 +1028,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Send message.
- *
+ *
* @param message the message
*/
public void sendMessage(VSMessage message) {
@@ -1147,7 +1147,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Edits the process.
- *
+ *
* @param processNum the process num
*/
public void editProcess(int processNum) {
@@ -1157,7 +1157,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Edits the process.
- *
+ *
* @param process the process
*/
public void editProcess(VSProcess process) {
@@ -1249,7 +1249,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Gets the processes array.
- *
+ *
* @return the processes array
*/
public ArrayList<VSProcess> getProcessesArray() {
@@ -1283,7 +1283,7 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Removes the process.
- *
+ *
* @param process the process
*/
private void removeProcess(VSProcess process) {
@@ -1320,9 +1320,9 @@ public class VSSimulatorCanvas extends Canvas implements Runnable, MouseMotionLi
/**
* Creates the process.
- *
+ *
* @param processNum the process num
- *
+ *
* @return the vS process
*/
private VSProcess createProcess(int processNum) {
diff --git a/sources/simulator/VSSimulatorFrame.java b/sources/simulator/VSSimulatorFrame.java
index ccb1efe..5a2e61e 100644
--- a/sources/simulator/VSSimulatorFrame.java
+++ b/sources/simulator/VSSimulatorFrame.java
@@ -20,59 +20,59 @@ import utils.*;
* The Class VSSimulatorFrame.
*/
public class VSSimulatorFrame extends VSFrame implements ActionListener {
-
+
/** The pause item. */
private JMenuItem pauseItem;
-
+
/** The replay item. */
private JMenuItem replayItem;
-
+
/** The reset item. */
private JMenuItem resetItem;
-
+
/** The start item. */
private JMenuItem startItem;
-
+
/** The pause button. */
private JButton pauseButton;
-
+
/** The replay button. */
private JButton replayButton;
-
+
/** The reset button. */
private JButton resetButton;
-
+
/** The start button. */
private JButton startButton;
-
+
/** The menu edit. */
private JMenu menuEdit;
-
+
/** The menu file. */
private JMenu menuFile;
-
+
/** The menu simulation. */
private JMenu menuSimulation;
-
+
/** The tool bar. */
private JToolBar toolBar;
-
+
/** The prefs. */
private VSPrefs prefs;
-
+
/** The simulations. */
private Vector<VSSimulator> simulations;
-
+
/** The current simulation. */
private VSSimulator currentSimulation;
-
+
/** The tabbed pane. */
private JTabbedPane tabbedPane;
//private JSlider speedSlider;
/**
* Instantiates a new vS simulator frame.
- *
+ *
* @param prefs the prefs
* @param relativeTo the relative to
*/
@@ -102,7 +102,7 @@ public class VSSimulatorFrame extends VSFrame implements ActionListener {
/**
* Creates the menu bar.
- *
+ *
* @return the j menu bar
*/
private JMenuBar createMenuBar() {
@@ -214,7 +214,7 @@ public class VSSimulatorFrame extends VSFrame implements ActionListener {
/**
* Creates the content pane.
- *
+ *
* @return the container
*/
private Container createContentPane() {
@@ -380,7 +380,7 @@ public class VSSimulatorFrame extends VSFrame implements ActionListener {
/**
* Adds the simulation.
- *
+ *
* @param simulation the simulation
*/
public void addSimulation(VSSimulator simulation) {
@@ -402,7 +402,7 @@ public class VSSimulatorFrame extends VSFrame implements ActionListener {
/**
* Removes the simulation.
- *
+ *
* @param simulationToRemove the simulation to remove
*/
public void removeSimulation(VSSimulator simulationToRemove) {
@@ -425,7 +425,7 @@ public class VSSimulatorFrame extends VSFrame implements ActionListener {
/**
* Gets the current simulation.
- *
+ *
* @return the current simulation
*/
public VSSimulator getCurrentSimulation() {
@@ -434,10 +434,10 @@ public class VSSimulatorFrame extends VSFrame implements ActionListener {
/**
* Gets the image icon.
- *
+ *
* @param name the name
* @param descr the descr
- *
+ *
* @return the image icon
*/
private ImageIcon getImageIcon(String name, String descr) {
diff --git a/sources/utils/VSClassLoader.java b/sources/utils/VSClassLoader.java
index 8d4f784..75ad994 100644
--- a/sources/utils/VSClassLoader.java
+++ b/sources/utils/VSClassLoader.java
@@ -11,12 +11,12 @@ package utils;
* The Class VSClassLoader.
*/
public class VSClassLoader extends ClassLoader {
-
+
/**
* New instance.
- *
+ *
* @param classname the classname
- *
+ *
* @return the object
*/
public Object newInstance(String classname) {
diff --git a/sources/utils/VSFrame.java b/sources/utils/VSFrame.java
index b3a43b5..d14c06b 100644
--- a/sources/utils/VSFrame.java
+++ b/sources/utils/VSFrame.java
@@ -13,23 +13,23 @@ import javax.swing.JFrame;
* The Class VSFrame.
*/
public class VSFrame extends JFrame {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/** The Constant X_LOCATION_OFFSET. */
private final static int X_LOCATION_OFFSET = 40;
-
+
/** The Constant Y_LOCATION_OFFSET. */
private final static int Y_LOCATION_OFFSET = 80;
-
+
/** The parent. */
private Component parent;
-
+
/** The dispose. */
private boolean dispose;
/**
* Instantiates a new vS frame.
- *
+ *
* @param title the title
* @param parent the parent
*/
@@ -40,7 +40,7 @@ public class VSFrame extends JFrame {
/**
* Instantiates a new vS frame.
- *
+ *
* @param title the title
*/
public VSFrame(String title) {
@@ -50,7 +50,7 @@ public class VSFrame extends JFrame {
/**
* Inits the.
- *
+ *
* @param parent the parent
*/
private void init(Component parent) {
diff --git a/sources/utils/VSInfoArea.java b/sources/utils/VSInfoArea.java
index bb485b9..f922a5b 100644
--- a/sources/utils/VSInfoArea.java
+++ b/sources/utils/VSInfoArea.java
@@ -13,8 +13,8 @@ import javax.swing.border.*;
* The Class VSInfoArea.
*/
public class VSInfoArea extends JTextPane {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/**
* Instantiates a new vS info area.
*/
@@ -24,7 +24,7 @@ public class VSInfoArea extends JTextPane {
/**
* Instantiates a new vS info area.
- *
+ *
* @param text the text
*/
public VSInfoArea(String text) {
diff --git a/sources/utils/VSPriorityQueue.java b/sources/utils/VSPriorityQueue.java
index da83fe6..84d9a79 100644
--- a/sources/utils/VSPriorityQueue.java
+++ b/sources/utils/VSPriorityQueue.java
@@ -11,13 +11,13 @@ import java.util.PriorityQueue;
* The Class VSPriorityQueue.
*/
public final class VSPriorityQueue<T> extends PriorityQueue<T> {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/**
* Gets the.
- *
+ *
* @param index the index
- *
+ *
* @return the t
*/
public T get(int index) {
diff --git a/sources/utils/VSRandom.java b/sources/utils/VSRandom.java
index bd449d6..489bc90 100644
--- a/sources/utils/VSRandom.java
+++ b/sources/utils/VSRandom.java
@@ -11,11 +11,11 @@ import java.util.Random;
* The Class VSRandom.
*/
public final class VSRandom extends Random {
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 1L;
+
/**
* Instantiates a new vS random.
- *
+ *
* @param seedAdd the seed add
*/
public VSRandom(long seedAdd) {
@@ -31,9 +31,9 @@ public final class VSRandom extends Random {
/**
* Next long.
- *
+ *
* @param mod the mod
- *
+ *
* @return the long
*/
public long nextLong(long mod) {
diff --git a/sources/utils/VSTools.java b/sources/utils/VSTools.java
index a6c34a0..e4db8e1 100644
--- a/sources/utils/VSTools.java
+++ b/sources/utils/VSTools.java
@@ -10,12 +10,12 @@ package utils;
* The Class VSTools.
*/
public final class VSTools {
-
+
/**
* Gets the time string.
- *
+ *
* @param time the time
- *
+ *
* @return the time string
*/
public static String getTimeString(long time) {
@@ -26,12 +26,12 @@ public final class VSTools {
return ret + "ms";
}
-
+
/**
* Gets the string time.
- *
+ *
* @param string the string
- *
+ *
* @return the string time
*/
public static long getStringTime(String string) {
diff --git a/sources/utils/VSTupel.java b/sources/utils/VSTupel.java
index 2fea87a..c259f52 100644
--- a/sources/utils/VSTupel.java
+++ b/sources/utils/VSTupel.java
@@ -9,19 +9,19 @@ package utils;
* The Class VSTupel.
*/
public final class VSTupel<A,B,C> {
-
+
/** The a. */
private A a;
-
+
/** The b. */
private B b;
-
+
/** The c. */
private C c;
/**
* Instantiates a new vS tupel.
- *
+ *
* @param a the a
* @param b the b
* @param c the c
@@ -34,7 +34,7 @@ public final class VSTupel<A,B,C> {
/**
* Gets the a.
- *
+ *
* @return the a
*/
public A getA() {
@@ -43,7 +43,7 @@ public final class VSTupel<A,B,C> {
/**
* Gets the b.
- *
+ *
* @return the b
*/
public B getB() {
@@ -52,7 +52,7 @@ public final class VSTupel<A,B,C> {
/**
* Gets the c.
- *
+ *
* @return the c
*/
public C getC() {