diff options
Diffstat (limited to 'VS-Sim-Javadoc/simulator/VSSimulatorVisualization.html')
| -rw-r--r-- | VS-Sim-Javadoc/simulator/VSSimulatorVisualization.html | 1013 |
1 files changed, 1013 insertions, 0 deletions
diff --git a/VS-Sim-Javadoc/simulator/VSSimulatorVisualization.html b/VS-Sim-Javadoc/simulator/VSSimulatorVisualization.html new file mode 100644 index 0000000..f1e55d6 --- /dev/null +++ b/VS-Sim-Javadoc/simulator/VSSimulatorVisualization.html @@ -0,0 +1,1013 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.6.0_03-p4) on Thu Aug 14 07:45:24 GMT 2008 --> +<TITLE> +VSSimulatorVisualization +</TITLE> + +<META NAME="date" CONTENT="2008-08-14"> + +<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> + +<SCRIPT type="text/javascript"> +function windowTitle() +{ + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="VSSimulatorVisualization"; + } +} +</SCRIPT> +<NOSCRIPT> +</NOSCRIPT> + +</HEAD> + +<BODY BGCOLOR="white" onload="windowTitle();"> +<HR> + + +<!-- ========= START OF TOP NAVBAR ======= --> +<A NAME="navbar_top"><!-- --></A> +<A HREF="#skip-navbar_top" title="Skip navigation links"></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> +<TR> +<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_top_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> + <TR ALIGN="center" VALIGN="top"> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> + </TR> +</TABLE> +</TD> +<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../simulator/VSSimulatorFrame.html" title="class in simulator"><B>PREV CLASS</B></A> + <A HREF="../simulator/VSSimulatorVisualization.VSMessageLine.html" title="class in simulator"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../index.html?simulator/VSSimulatorVisualization.html" target="_top"><B>FRAMES</B></A> + <A HREF="VSSimulatorVisualization.html" target="_top"><B>NO FRAMES</B></A> + <SCRIPT type="text/javascript"> + <!-- + if(window==top) { + document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); + } + //--> +</SCRIPT> +<NOSCRIPT> + <A HREF="../allclasses-noframe.html"><B>All Classes</B></A> +</NOSCRIPT> + + +</FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_java.awt.Component">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> +</TR> +</TABLE> +<A NAME="skip-navbar_top"></A> +<!-- ========= END OF TOP NAVBAR ========= --> + +<HR> +<!-- ======== START OF CLASS DATA ======== --> +<H2> +<FONT SIZE="-1"> +simulator</FONT> +<BR> +Class VSSimulatorVisualization</H2> +<PRE> +java.lang.Object + <IMG SRC="../resources/inherit.gif" ALT="extended by ">java.awt.Component + <IMG SRC="../resources/inherit.gif" ALT="extended by ">java.awt.Canvas + <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>simulator.VSSimulatorVisualization</B> +</PRE> +<DL> +<DT><B>All Implemented Interfaces:</B> <DD>java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, javax.accessibility.Accessible, <A HREF="../serialize/VSSerializable.html" title="interface in serialize">VSSerializable</A></DD> +</DL> +<HR> +<DL> +<DT><PRE>public class <B>VSSimulatorVisualization</B><DT>extends java.awt.Canvas<DT>implements java.lang.Runnable, <A HREF="../serialize/VSSerializable.html" title="interface in serialize">VSSerializable</A></DL> +</PRE> + +<P> +The class VSSimulatorVisualization. An instance of this object represents the + graphical paint area of a simulator. It contains all graphic calculations. + Also the simulator thread takes place in this class in a loop! This class + is probably the most cryptic of the whole simulator source code. This is + this way in order to gain more performance of the painting area! +<P> + +<P> +<DL> +<DT><B>Author:</B></DT> + <DD>Paul C. Buetow</DD> +<DT><B>See Also:</B><DD><A HREF="../serialized-form.html#simulator.VSSimulatorVisualization">Serialized Form</A></DL> +<HR> + +<P> +<!-- ======== NESTED CLASS SUMMARY ======== --> + +<A NAME="nested_class_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Nested Class Summary</B></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> class</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.VSMessageLine.html" title="class in simulator">VSSimulatorVisualization.VSMessageLine</A></B></CODE> + +<BR> + The class VSMessageLine, an object of this class represents a message + line drawn into the painting area.</TD> +</TR> +</TABLE> + <A NAME="nested_classes_inherited_from_class_java.awt.Canvas"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Canvas</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>java.awt.Canvas.AccessibleAWTCanvas</CODE></TD> +</TR> +</TABLE> + +<A NAME="nested_classes_inherited_from_class_java.awt.Component"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Component</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</CODE></TD> +</TR> +</TABLE> + +<!-- =========== FIELD SUMMARY =========== --> + +<A NAME="field_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Field Summary</B></FONT></TH> +</TR> +</TABLE> + <A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Fields inherited from class java.awt.Component</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</CODE></TD> +</TR> +</TABLE> + <A NAME="fields_inherited_from_class_java.awt.image.ImageObserver"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Fields inherited from interface java.awt.image.ImageObserver</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD> +</TR> +</TABLE> + +<!-- ======== CONSTRUCTOR SUMMARY ======== --> + +<A NAME="constructor_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Constructor Summary</B></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#VSSimulatorVisualization(prefs.VSPrefs, simulator.VSSimulator, simulator.VSLogging)">VSSimulatorVisualization</A></B>(<A HREF="../prefs/VSPrefs.html" title="class in prefs">VSPrefs</A> prefs, + <A HREF="../simulator/VSSimulator.html" title="class in simulator">VSSimulator</A> simulator, + <A HREF="../simulator/VSLogging.html" title="class in simulator">VSLogging</A> loging)</CODE> + +<BR> + Instantiates a new VSSimulatorVisualization object.</TD> +</TR> +</TABLE> + +<!-- ========== METHOD SUMMARY =========== --> + +<A NAME="method_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Method Summary</B></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#deserialize(serialize.VSSerialize, java.io.ObjectInputStream)">deserialize</A></B>(<A HREF="../serialize/VSSerialize.html" title="class in serialize">VSSerialize</A> serialize, + java.io.ObjectInputStream objectInputStream)</CODE> + +<BR> + Deserializes</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#editProcess(int)">editProcess</A></B>(int processNum)</CODE> + +<BR> + Edits the process.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#editProcess(core.VSInternalProcess)">editProcess</A></B>(<A HREF="../core/VSInternalProcess.html" title="class in core">VSInternalProcess</A> process)</CODE> + +<BR> + Edits the process.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#finish()">finish</A></B>()</CODE> + +<BR> + Called if the simulator has finished.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> int</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getNumProcesses()">getNumProcesses</A></B>()</CODE> + +<BR> + Gets the num of processes.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../core/VSInternalProcess.html" title="class in core">VSInternalProcess</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getProcess(int)">getProcess</A></B>(int processNum)</CODE> + +<BR> + Gets the specified process.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> java.util.ArrayList<<A HREF="../core/VSInternalProcess.html" title="class in core">VSInternalProcess</A>></CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getProcesses()">getProcesses</A></B>()</CODE> + +<BR> + Gets the processes.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> java.util.ArrayList<<A HREF="../core/VSInternalProcess.html" title="class in core">VSInternalProcess</A>></CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getProcessesArray()">getProcessesArray</A></B>()</CODE> + +<BR> + Gets the processes array.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> java.lang.Integer[]</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getProcessIDs()">getProcessIDs</A></B>()</CODE> + +<BR> + Gets the processes IDs.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> long</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getStartTime()">getStartTime</A></B>()</CODE> + +<BR> + Gets the start time.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../core/VSTaskManager.html" title="class in core">VSTaskManager</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getTaskManager()">getTaskManager</A></B>()</CODE> + +<BR> + Gets the task manager.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> long</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getTime()">getTime</A></B>()</CODE> + +<BR> + Gets the time.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> long</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#getUntilTime()">getUntilTime</A></B>()</CODE> + +<BR> + Gets the until time.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> boolean</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#hasThreadStopped()">hasThreadStopped</A></B>()</CODE> + +<BR> + Checks if the thread has been stopped.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#isAntiAliased(boolean)">isAntiAliased</A></B>(boolean isAntiAliased)</CODE> + +<BR> + Sets if the simulator graphics are anti aliased.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#paint()">paint</A></B>()</CODE> + +<BR> + Paints the simulator.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#pause()">pause</A></B>()</CODE> + +<BR> + Call this, in order to pause the simulator.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#play()">play</A></B>()</CODE> + +<BR> + Starts/plays the simulator.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> int</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#processIDCount()">processIDCount</A></B>()</CODE> + +<BR> + Gets the next process id.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#reset()">reset</A></B>()</CODE> + +<BR> + Call this, in order to reset the simulator.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#run()">run</A></B>()</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#sendMessage(core.VSMessage)">sendMessage</A></B>(<A HREF="../core/VSMessage.html" title="class in core">VSMessage</A> message)</CODE> + +<BR> + Sends a message.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#serialize(serialize.VSSerialize, java.io.ObjectOutputStream)">serialize</A></B>(<A HREF="../serialize/VSSerialize.html" title="class in serialize">VSSerialize</A> serialize, + java.io.ObjectOutputStream objectOutputStream)</CODE> + +<BR> + Serializes</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#showLamport(boolean)">showLamport</A></B>(boolean showLamport)</CODE> + +<BR> + Sets, if the the lamport time should be shown.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#showVectorTime(boolean)">showVectorTime</A></B>(boolean showVectorTime)</CODE> + +<BR> + Sets, if the vector time should be shown.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#stopThread()">stopThread</A></B>()</CODE> + +<BR> + Stops the thread of the simulator.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../simulator/VSSimulatorVisualization.html#updateFromPrefs()">updateFromPrefs</A></B>()</CODE> + +<BR> + Updates from the prefs.</TD> +</TR> +</TABLE> + <A NAME="methods_inherited_from_class_java.awt.Canvas"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Methods inherited from class java.awt.Canvas</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, paint, update</CODE></TD> +</TR> +</TABLE> + <A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Methods inherited from class java.awt.Component</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate</CODE></TD> +</TR> +</TABLE> + <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> +</TR> +</TABLE> + +<P> + +<!-- ========= CONSTRUCTOR DETAIL ======== --> + +<A NAME="constructor_detail"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> +<B>Constructor Detail</B></FONT></TH> +</TR> +</TABLE> + +<A NAME="VSSimulatorVisualization(prefs.VSPrefs, simulator.VSSimulator, simulator.VSLogging)"><!-- --></A><H3> +VSSimulatorVisualization</H3> +<PRE> +public <B>VSSimulatorVisualization</B>(<A HREF="../prefs/VSPrefs.html" title="class in prefs">VSPrefs</A> prefs, + <A HREF="../simulator/VSSimulator.html" title="class in simulator">VSSimulator</A> simulator, + <A HREF="../simulator/VSLogging.html" title="class in simulator">VSLogging</A> loging)</PRE> +<DL> +<DD>Instantiates a new VSSimulatorVisualization object. +<P> +<DL> +<DT><B>Parameters:</B><DD><CODE>prefs</CODE> - the prefs<DD><CODE>simulator</CODE> - the simulator<DD><CODE>loging</CODE> - the loging</DL> +</DL> + +<!-- ============ METHOD DETAIL ========== --> + +<A NAME="method_detail"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> +<B>Method Detail</B></FONT></TH> +</TR> +</TABLE> + +<A NAME="paint()"><!-- --></A><H3> +paint</H3> +<PRE> +public void <B>paint</B>()</PRE> +<DL> +<DD>Paints the simulator. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getTime()"><!-- --></A><H3> +getTime</H3> +<PRE> +public long <B>getTime</B>()</PRE> +<DL> +<DD>Gets the time. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the time</DL> +</DD> +</DL> +<HR> + +<A NAME="getUntilTime()"><!-- --></A><H3> +getUntilTime</H3> +<PRE> +public long <B>getUntilTime</B>()</PRE> +<DL> +<DD>Gets the until time. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the until time</DL> +</DD> +</DL> +<HR> + +<A NAME="getStartTime()"><!-- --></A><H3> +getStartTime</H3> +<PRE> +public long <B>getStartTime</B>()</PRE> +<DL> +<DD>Gets the start time. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the start time</DL> +</DD> +</DL> +<HR> + +<A NAME="processIDCount()"><!-- --></A><H3> +processIDCount</H3> +<PRE> +public int <B>processIDCount</B>()</PRE> +<DL> +<DD>Gets the next process id. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the next process id</DL> +</DD> +</DL> +<HR> + +<A NAME="getTaskManager()"><!-- --></A><H3> +getTaskManager</H3> +<PRE> +public <A HREF="../core/VSTaskManager.html" title="class in core">VSTaskManager</A> <B>getTaskManager</B>()</PRE> +<DL> +<DD>Gets the task manager. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the task manager</DL> +</DD> +</DL> +<HR> + +<A NAME="getNumProcesses()"><!-- --></A><H3> +getNumProcesses</H3> +<PRE> +public int <B>getNumProcesses</B>()</PRE> +<DL> +<DD>Gets the num of processes. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>the num of processes</DL> +</DD> +</DL> +<HR> + +<A NAME="getProcess(int)"><!-- --></A><H3> +getProcess</H3> +<PRE> +public <A HREF="../core/VSInternalProcess.html" title="class in core">VSInternalProcess</A> <B>getProcess</B>(int processNum)</PRE> +<DL> +<DD>Gets the specified process. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>processNum</CODE> - the process num to get the process of +<DT><B>Returns:</B><DD>the process</DL> +</DD> +</DL> +<HR> + +<A NAME="run()"><!-- --></A><H3> +run</H3> +<PRE> +public void <B>run</B>()</PRE> +<DL> +<DD><DL> +<DT><B>Specified by:</B><DD><CODE>run</CODE> in interface <CODE>java.lang.Runnable</CODE></DL> +</DD> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="play()"><!-- --></A><H3> +play</H3> +<PRE> +public void <B>play</B>()</PRE> +<DL> +<DD>Starts/plays the simulator. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="finish()"><!-- --></A><H3> +finish</H3> +<PRE> +public void <B>finish</B>()</PRE> +<DL> +<DD>Called if the simulator has finished. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="pause()"><!-- --></A><H3> +pause</H3> +<PRE> +public void <B>pause</B>()</PRE> +<DL> +<DD>Call this, in order to pause the simulator. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="reset()"><!-- --></A><H3> +reset</H3> +<PRE> +public void <B>reset</B>()</PRE> +<DL> +<DD>Call this, in order to reset the simulator. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="stopThread()"><!-- --></A><H3> +stopThread</H3> +<PRE> +public void <B>stopThread</B>()</PRE> +<DL> +<DD>Stops the thread of the simulator. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="hasThreadStopped()"><!-- --></A><H3> +hasThreadStopped</H3> +<PRE> +public boolean <B>hasThreadStopped</B>()</PRE> +<DL> +<DD>Checks if the thread has been stopped. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> + +<DT><B>Returns:</B><DD>true, if is thread has stopped</DL> +</DD> +</DL> +<HR> + +<A NAME="showLamport(boolean)"><!-- --></A><H3> +showLamport</H3> +<PRE> +public void <B>showLamport</B>(boolean showLamport)</PRE> +<DL> +<DD>Sets, if the the lamport time should be shown. It implicitly disables + the vector time. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>showLamport</CODE> - true, if the lamport time should be shown</DL> +</DD> +</DL> +<HR> + +<A NAME="showVectorTime(boolean)"><!-- --></A><H3> +showVectorTime</H3> +<PRE> +public void <B>showVectorTime</B>(boolean showVectorTime)</PRE> +<DL> +<DD>Sets, if the vector time should be shown. It implicitly disables the + lamport time. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>showVectorTime</CODE> - true, if the vector time should be shown</DL> +</DD> +</DL> +<HR> + +<A NAME="isAntiAliased(boolean)"><!-- --></A><H3> +isAntiAliased</H3> +<PRE> +public void <B>isAntiAliased</B>(boolean isAntiAliased)</PRE> +<DL> +<DD>Sets if the simulator graphics are anti aliased. +<P> +<DD><DL> +</DL> +</DD> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>isAntiAliased</CODE> - true, if the simulator is anti aliased</DL> +</DD> +</DL> +<HR> + +<A NAME="sendMessage(core.VSMessage)"><!-- --></A><H3> +sendMessage</H3> +<PRE> +public void <B>sendMessage</B>(<A HREF="../core/VSMessage.html" title="class in core">VSMessage</A> message)</PRE> +<DL> +<DD>Sends a message. +<P> +<DD><DL> +</DL> +</DD> |
