📄 simulation.html
字号:
</TR></TABLE><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>()</PRE><DL><DD>Initializes the fields of all needed classes, where default values may be overriden.<P><DD><DL></DL></DD></DL><HR><A NAME="initializeProperties(java.util.Properties)"><!-- --></A><H3>initializeProperties</H3><PRE>protected void <B>initializeProperties</B>(java.util.Properties properties)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setup()"><!-- --></A><H3>setup</H3><PRE>public void <B>setup</B>()</PRE><DL><DD>Sets up the simulation by creating network and application setting. Subclasses are encouraged to override this method to set up simulation specific events.<P><DD><DL></DL></DD></DL><HR><A NAME="getProperties()"><!-- --></A><H3>getProperties</H3><PRE>public java.util.Properties <B>getProperties</B>()</PRE><DL><DD>Returns all simulation's properties.<P><DD><DL><DT><B>Returns:</B><DD>all simulation's properties.</DL></DD></DL><HR><A NAME="getProperty(java.lang.String)"><!-- --></A><H3>getProperty</H3><PRE>public java.lang.String <B>getProperty</B>(java.lang.String key)</PRE><DL><DD>Returns a single property.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the property's key.<DT><B>Returns:</B><DD>a single property.</DL></DD></DL><HR><A NAME="getTime()"><!-- --></A><H3>getTime</H3><PRE>public double <B>getTime</B>()</PRE><DL><DD>Returns the simulation's current time.<P><DD><DL><DT><B>Returns:</B><DD>the simulation's current time.</DL></DD></DL><HR><A NAME="scheduleEventIn(double, sim.Event)"><!-- --></A><H3>scheduleEventIn</H3><PRE>public void <B>scheduleEventIn</B>(double delay, <A HREF="../sim/Event.html" title="class in sim">Event</A> e)</PRE><DL><DD>Schedules a new event after a given delay.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>delay</CODE> - the delay to wait.<DD><CODE>e</CODE> - the event itself.</DL></DD></DL><HR><A NAME="scheduleEventAt(double, sim.Event)"><!-- --></A><H3>scheduleEventAt</H3><PRE>public void <B>scheduleEventAt</B>(double time, <A HREF="../sim/Event.html" title="class in sim">Event</A> e)</PRE><DL><DD>Schedules an event at a certain time.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - the time for which the event is scheduled.<DD><CODE>e</CODE> - the event itself.</DL></DD></DL><HR><A NAME="scheduleEvent(sim.Event)"><!-- --></A><H3>scheduleEvent</H3><PRE>public void <B>scheduleEvent</B>(<A HREF="../sim/Event.html" title="class in sim">Event</A> e)</PRE><DL><DD>Schedules an already timed event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the event itself.</DL></DD></DL><HR><A NAME="scheduleEventNow(sim.Event)"><!-- --></A><H3>scheduleEventNow</H3><PRE>public void <B>scheduleEventNow</B>(<A HREF="../sim/Event.html" title="class in sim">Event</A> e)</PRE><DL><DD>Schedules the event for a current handling.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the event itself.</DL></DD></DL><HR><A NAME="removeEvent(sim.Event)"><!-- --></A><H3>removeEvent</H3><PRE>public void <B>removeEvent</B>(<A HREF="../sim/Event.html" title="class in sim">Event</A> e)</PRE><DL><DD>Removes a scheduled event from the event queue.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the event to remove.</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>Main method to start a simulation. It parses the simulations property file given in the first argument and overrides the default values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - arg1 is the simulations property file.</DL></DD></DL><HR><A NAME="getNetwork()"><!-- --></A><H3>getNetwork</H3><PRE>public <A HREF="../sim/Network.html" title="class in sim">Network</A> <B>getNetwork</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getApplication()"><!-- --></A><H3>getApplication</H3><PRE>public <A HREF="../sim/Application.html" title="class in sim">Application</A> <B>getApplication</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="collectStatisticsSending(broker.Destination, broker.Destination, com.Message)"><!-- --></A><H3>collectStatisticsSending</H3><PRE>public void <B>collectStatisticsSending</B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A> from, <A HREF="../broker/Destination.html" title="interface in broker">Destination</A> to, <A HREF="../com/Message.html" title="class in com">Message</A> message)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="collectStatisticsProcessing(broker.Broker, com.Message)"><!-- --></A><H3>collectStatisticsProcessing</H3><PRE>public void <B>collectStatisticsProcessing</B>(<A HREF="../broker/Broker.html" title="class in broker">Broker</A> broker, <A HREF="../com/Message.html" title="class in com">Message</A> message)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="collectStatisticsPureForwarding()"><!-- --></A><H3>collectStatisticsPureForwarding</H3><PRE>public void <B>collectStatisticsPureForwarding</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="collectStatisticsCorrectProcessing()"><!-- --></A><H3>collectStatisticsCorrectProcessing</H3><PRE>public void <B>collectStatisticsCorrectProcessing</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="collectStatisticsEnqueue(broker.Broker, com.Message)"><!-- --></A><H3>collectStatisticsEnqueue</H3><PRE>public void <B>collectStatisticsEnqueue</B>(<A HREF="../broker/Broker.html" title="class in broker">Broker</A> b, <A HREF="../com/Message.html" title="class in com">Message</A> message)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="collectStatisticsDequeue(broker.Broker, com.Message)"><!-- --></A><H3>collectStatisticsDequeue</H3><PRE>public void <B>collectStatisticsDequeue</B>(<A HREF="../broker/Broker.html" title="class in broker">Broker</A> b, <A HREF="../com/Message.html" title="class in com">Message</A> message)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="measure()"><!-- --></A><H3>measure</H3><PRE>public void <B>measure</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="stop()"><!-- --></A><H3>stop</H3><PRE>public void <B>stop</B>()</PRE><DL><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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="../sim/Reconfiguration.html" title="class in sim"><B>PREV CLASS</B></A> <A HREF="../sim/Simulation.MeasureEvent.html" title="class in sim"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" target="_top"><B>FRAMES</B></A> <A HREF="Simulation.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="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -