📄 simulation.html
字号:
<A HREF="../com/Message.html" title="class in com">Message</A> message)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../sim/Application.html" title="class in sim">Application</A></CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#getApplication()">getApplication</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../sim/Network.html" title="class in sim">Network</A></CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#getNetwork()">getNetwork</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Properties</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#getProperties()">getProperties</A></B>()</CODE><BR> Returns all simulation's properties.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#getProperty(java.lang.String)">getProperty</A></B>(java.lang.String key)</CODE><BR> Returns a single property.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#getTime()">getTime</A></B>()</CODE><BR> Returns the simulation's current time.</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="../sim/Simulation.html#initialize()">initialize</A></B>()</CODE><BR> Initializes the fields of all needed classes, where default values may be overriden.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#initializeProperties(java.util.Properties)">initializeProperties</A></B>(java.util.Properties properties)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE><BR> Main method to start a simulation. </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="../sim/Simulation.html#measure()">measure</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="../sim/Simulation.html#removeEvent(sim.Event)">removeEvent</A></B>(<A HREF="../sim/Event.html" title="class in sim">Event</A> e)</CODE><BR> Removes a scheduled event from the event queue.</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="../sim/Simulation.html#scheduleEvent(sim.Event)">scheduleEvent</A></B>(<A HREF="../sim/Event.html" title="class in sim">Event</A> e)</CODE><BR> Schedules an already timed event.</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="../sim/Simulation.html#scheduleEventAt(double, sim.Event)">scheduleEventAt</A></B>(double time, <A HREF="../sim/Event.html" title="class in sim">Event</A> e)</CODE><BR> Schedules an event at a certain time.</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="../sim/Simulation.html#scheduleEventIn(double, sim.Event)">scheduleEventIn</A></B>(double delay, <A HREF="../sim/Event.html" title="class in sim">Event</A> e)</CODE><BR> Schedules a new event after a given delay.</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="../sim/Simulation.html#scheduleEventNow(sim.Event)">scheduleEventNow</A></B>(<A HREF="../sim/Event.html" title="class in sim">Event</A> e)</CODE><BR> Schedules the event for a current handling.</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="../sim/Simulation.html#setup()">setup</A></B>()</CODE><BR> Sets up the simulation by creating network and application setting. </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="../sim/Simulation.html#stop()">stop</A></B>()</CODE><BR> </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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="properties"><!-- --></A><H3>properties</H3><PRE>protected java.util.Properties <B>properties</B></PRE><DL><DD>The properties for initializing all classes.<P><DL></DL></DL><HR><A NAME="eventQueue"><!-- --></A><H3>eventQueue</H3><PRE>protected <A HREF="../sim/EventQueue.html" title="class in sim">EventQueue</A> <B>eventQueue</B></PRE><DL><DD>The simulation's event queue.<P><DL></DL></DL><HR><A NAME="time"><!-- --></A><H3>time</H3><PRE>protected double <B>time</B></PRE><DL><DD>The simulation's current time.<P><DL></DL></DL><HR><A NAME="net"><!-- --></A><H3>net</H3><PRE>protected <A HREF="../sim/Network.html" title="class in sim">Network</A> <B>net</B></PRE><DL><DD>The simulated borker network.<P><DL></DL></DL><HR><A NAME="application"><!-- --></A><H3>application</H3><PRE>protected <A HREF="../sim/Application.html" title="class in sim">Application</A> <B>application</B></PRE><DL><DD>The simulated application setting.<P><DL></DL></DL><HR><A NAME="costs"><!-- --></A><H3>costs</H3><PRE>protected double <B>costs</B></PRE><DL><DL></DL></DL><HR><A NAME="processingCosts"><!-- --></A><H3>processingCosts</H3><PRE>protected double <B>processingCosts</B></PRE><DL><DL></DL></DL><HR><A NAME="communicationCosts"><!-- --></A><H3>communicationCosts</H3><PRE>protected double <B>communicationCosts</B></PRE><DL><DL></DL></DL><HR><A NAME="pureForwarding"><!-- --></A><H3>pureForwarding</H3><PRE>protected int <B>pureForwarding</B></PRE><DL><DL></DL></DL><HR><A NAME="correctProcessing"><!-- --></A><H3>correctProcessing</H3><PRE>protected int <B>correctProcessing</B></PRE><DL><DL></DL></DL><HR><A NAME="outFile"><!-- --></A><H3>outFile</H3><PRE>protected java.lang.String <B>outFile</B></PRE><DL><DL></DL></DL><HR><A NAME="out"><!-- --></A><H3>out</H3><PRE>protected java.io.PrintWriter <B>out</B></PRE><DL><DL></DL></DL><HR><A NAME="measureStarts"><!-- --></A><H3>measureStarts</H3><PRE>protected double[] <B>measureStarts</B></PRE><DL><DL></DL></DL><HR><A NAME="measureStops"><!-- --></A><H3>measureStops</H3><PRE>protected double[] <B>measureStops</B></PRE><DL><DL></DL></DL><HR><A NAME="measureInterval"><!-- --></A><H3>measureInterval</H3><PRE>protected double <B>measureInterval</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Simulation(java.util.Properties)"><!-- --></A><H3>Simulation</H3><PRE>public <B>Simulation</B>(java.util.Properties properties)</PRE><DL><DD>Creates a new simulation object.<P><DT><B>Parameters:</B><DD><CODE>properties</CODE> - the properties to initialize.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -