⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simulation.html

📁 发布/订阅系统路由重配算法,可应用于ad hoc环境
💻 HTML
📖 第 1 页 / 共 3 页
字号:
                         <A HREF="../com/Message.html" title="class in com">Message</A>&nbsp;message)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Properties</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#getProperties()">getProperties</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns all simulation's properties.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#getProperty(java.lang.String)">getProperty</A></B>(java.lang.String&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a single property.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#getTime()">getTime</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the simulation's current time.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#initialize()">initialize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#initializeProperties(java.util.Properties)">initializeProperties</A></B>(java.util.Properties&nbsp;properties)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Main method to start a simulation. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#measure()">measure</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;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>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Schedules an already timed event.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#scheduleEventAt(double, sim.Event)">scheduleEventAt</A></B>(double&nbsp;time,                <A HREF="../sim/Event.html" title="class in sim">Event</A>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#scheduleEventIn(double, sim.Event)">scheduleEventIn</A></B>(double&nbsp;delay,                <A HREF="../sim/Event.html" title="class in sim">Event</A>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#setup()">setup</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../sim/Simulation.html#stop()">stop</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<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>&nbsp;<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&nbsp;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 + -