diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-25 09:03:33 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-25 09:03:33 +0000 |
| commit | 009350323123fc4b47041cb2194e8df19f69423b (patch) | |
| tree | a9562cf215181a03137d5281d49d26e0fe5a3b45 /sources/simulator | |
| parent | bb1dbccae485263ea5182546006339870c57b367 (diff) | |
Run astyle.
Diffstat (limited to 'sources/simulator')
| -rw-r--r-- | sources/simulator/VSAbout.java | 8 | ||||
| -rw-r--r-- | sources/simulator/VSLogging.java | 32 | ||||
| -rw-r--r-- | sources/simulator/VSMain.java | 10 | ||||
| -rw-r--r-- | sources/simulator/VSSimulator.java | 208 | ||||
| -rw-r--r-- | sources/simulator/VSSimulatorCanvas.java | 218 | ||||
| -rw-r--r-- | sources/simulator/VSSimulatorFrame.java | 48 |
6 files changed, 262 insertions, 262 deletions
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) { |
