From 009350323123fc4b47041cb2194e8df19f69423b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 25 May 2008 09:03:33 +0000 Subject: Run astyle. --- sources/core/VSMessage.java | 40 ++-- sources/core/VSProcess.java | 148 ++++++------ sources/core/VSTask.java | 56 ++--- sources/core/VSTaskManager.java | 40 ++-- sources/core/time/VSLamportTime.java | 12 +- sources/core/time/VSTime.java | 8 +- sources/core/time/VSVectorTime.java | 12 +- sources/events/VSEvent.java | 30 +-- sources/events/VSRegisteredEvents.java | 44 ++-- .../events/implementations/ProcessCrashEvent.java | 2 +- .../implementations/ProcessRecoverEvent.java | 2 +- sources/events/internal/MessageReceiveEvent.java | 4 +- sources/events/internal/ProtocolEvent.java | 16 +- sources/prefs/VSDefaultPrefs.java | 10 +- sources/prefs/VSPrefs.java | 250 ++++++++++----------- sources/prefs/editors/VSBetterEditor.java | 20 +- sources/prefs/editors/VSColorChooser.java | 14 +- sources/prefs/editors/VSEditor.java | 126 +++++------ sources/prefs/editors/VSEditorFrame.java | 8 +- sources/prefs/editors/VSEditorTable.java | 40 ++-- sources/prefs/editors/VSProcessEditor.java | 8 +- sources/prefs/editors/VSSimulatorEditor.java | 12 +- sources/protocols/VSProtocol.java | 32 +-- .../implementations/BerkelyTimeProtocol.java | 4 +- .../implementations/BroadcastSturmProtocol.java | 4 +- .../protocols/implementations/DummyProtocol.java | 2 +- .../implementations/ExternalTimeSyncProtocol.java | 4 +- .../implementations/InternalTimeSyncProtocol.java | 2 +- .../implementations/PingPongProtocol.java | 4 +- sources/simulator/VSAbout.java | 8 +- sources/simulator/VSLogging.java | 32 +-- sources/simulator/VSMain.java | 10 +- sources/simulator/VSSimulator.java | 208 ++++++++--------- sources/simulator/VSSimulatorCanvas.java | 218 +++++++++--------- sources/simulator/VSSimulatorFrame.java | 48 ++-- sources/utils/VSClassLoader.java | 6 +- sources/utils/VSFrame.java | 16 +- sources/utils/VSInfoArea.java | 6 +- sources/utils/VSPriorityQueue.java | 8 +- sources/utils/VSRandom.java | 10 +- sources/utils/VSTools.java | 12 +- sources/utils/VSTupel.java | 14 +- 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 protocolsToReset; - + /** The crash history. represents all crashes of the process using the global simulation time. */ private ArrayList crashHistory; - + /** The lamport time history. */ private ArrayList lamportTimeHistory; - + /** The vector time history. */ private ArrayList 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 tasks; - + /** The global tasks. */ private PriorityQueue globalTasks; - + /** The fullfilled programmed tasks. */ private LinkedList 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 getLocalTasks() { @@ -304,7 +304,7 @@ public class VSTaskManager { /** * Gets the global tasks. - * + * * @return the global tasks */ public synchronized VSPriorityQueue 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 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 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 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 implements VSTime { /** * To long array. - * + * * @return the long[] */ public long[] toLongArray() { @@ -42,7 +42,7 @@ public class VSVectorTime extends ArrayList 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 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 eventClassnames; - + /** The event shortnames. */ private static HashMap eventShortnames; - + /** The event names. */ private static HashMap eventNames; - + /** The editable protocols classnames. */ private static ArrayList 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 getEditableProtocolsClassnames() { @@ -76,7 +76,7 @@ public final class VSRegisteredEvents { /** * Gets the protocol names. - * + * * @return the protocol names */ public static Vector getProtocolNames() { @@ -94,7 +94,7 @@ public final class VSRegisteredEvents { /** * Gets the protocol classnames. - * + * * @return the protocol classnames */ public static Vector getProtocolClassnames() { @@ -112,7 +112,7 @@ public final class VSRegisteredEvents { /** * Gets the non protocol names. - * + * * @return the non protocol names */ public static Vector getNonProtocolNames() { @@ -130,7 +130,7 @@ public final class VSRegisteredEvents { /** * Gets the non protocol classnames. - * + * * @return the non protocol classnames */ public static Vector 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 colorPrefs; - + /** The float prefs. */ private HashMap floatPrefs; - + /** The integer prefs. */ private HashMap integerPrefs; - + /** The long prefs. */ private HashMap longPrefs; - + /** The setting restriction prefs. */ private HashMap settingRestrictionPrefs; - + /** The description prefs. */ private HashMap descriptionPrefs; - + /** The string prefs. */ private HashMap stringPrefs; - + /** The boolean prefs. */ private HashMap booleanPrefs; - + /** The object prefs. */ private HashMap objectPrefs; - + /** The units. */ private HashMap 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 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 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 getStringKeySet() { @@ -423,7 +423,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the integer key set. - * + * * @return the integer key set */ public synchronized Set getIntegerKeySet() { @@ -432,7 +432,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the float key set. - * + * * @return the float key set */ public synchronized Set getFloatKeySet() { @@ -441,7 +441,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the long key set. - * + * * @return the long key set */ public synchronized Set getLongKeySet() { @@ -450,7 +450,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the boolean key set. - * + * * @return the boolean key set */ public synchronized Set getBooleanKeySet() { @@ -459,7 +459,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the color key set. - * + * * @return the color key set */ public synchronized Set 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. - * + *