📄 application.html
字号:
CONSTANT</H3><PRE>protected static final int <B>CONSTANT</B></PRE><DL><DD>Constant to mark a constant time interval.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#sim.Application.CONSTANT">Constant Field Values</A></DL></DL><HR><A NAME="EXPONENTIAL"><!-- --></A><H3>EXPONENTIAL</H3><PRE>protected static final int <B>EXPONENTIAL</B></PRE><DL><DD>Constant to mark an exponential distribution.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#sim.Application.EXPONENTIAL">Constant Field Values</A></DL></DL><HR><A NAME="numberOfJobs"><!-- --></A><H3>numberOfJobs</H3><PRE>protected static int <B>numberOfJobs</B></PRE><DL><DD>The number of active jobs. A job consits of one publisher and several subscribers interested in his notifications.<P><DL></DL></DL><HR><A NAME="numberOfSubscribers"><!-- --></A><H3>numberOfSubscribers</H3><PRE>protected static int <B>numberOfSubscribers</B></PRE><DL><DD>The number of subscribers of a job. These subscribers are interested in the notifications of the job's publisher.<P><DL></DL></DL><HR><A NAME="publicationInterval"><!-- --></A><H3>publicationInterval</H3><PRE>protected static int <B>publicationInterval</B></PRE><DL><DD>The interval type between two consecutive notifications of a job. The interval can be "CONSTANT" or "EXPONENTIAL" distributed.<P><DL></DL></DL><HR><A NAME="publicationConstant"><!-- --></A><H3>publicationConstant</H3><PRE>protected static double <B>publicationConstant</B></PRE><DL><DD>Constant time interval or 'lambda' of an exponential distribution.<P><DL></DL></DL><HR><A NAME="reassignmentInterval"><!-- --></A><H3>reassignmentInterval</H3><PRE>protected static int <B>reassignmentInterval</B></PRE><DL><DD>The interval between a reassignment of jobs to brokers. By reassigning jobs a change of the load may be simulated.<P><DL></DL></DL><HR><A NAME="reassignmentConstant"><!-- --></A><H3>reassignmentConstant</H3><PRE>protected static double <B>reassignmentConstant</B></PRE><DL><DD>Constant time interval or 'lambda' of an exponential distribution.<P><DL></DL></DL><HR><A NAME="locality"><!-- --></A><H3>locality</H3><PRE>protected static double <B>locality</B></PRE><DL><DD>Fraction of locality considered by assigning jobs to brokers. In simulations with a high locality the subscribers are placed close to the job's publisher.<P><DL></DL></DL><HR><A NAME="localityPower"><!-- --></A><H3>localityPower</H3><PRE>public static double <B>localityPower</B></PRE><DL><DL></DL></DL><HR><A NAME="applicationSeed"><!-- --></A><H3>applicationSeed</H3><PRE>protected static long <B>applicationSeed</B></PRE><DL><DD>Random seed for all random values concerning the application.<P><DL></DL></DL><HR><A NAME="rand"><!-- --></A><H3>rand</H3><PRE>protected static java.util.Random <B>rand</B></PRE><DL><DD>The random generator initialized with the given applicationSeed.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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></TR></TABLE><A NAME="initializeProperties(java.util.Properties)"><!-- --></A><H3>initializeProperties</H3><PRE>public static void <B>initializeProperties</B>(java.util.Properties properties)</PRE><DL><DD>Initializes all fields of the application class. The values are stored as Strings in the properties object. The keys are the names of the fields.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>properties</CODE> - properties containing name/value pairs.</DL></DD></DL><HR><A NAME="createApplication(sim.Simulation)"><!-- --></A><H3>createApplication</H3><PRE>public static <A HREF="../sim/Application.html" title="class in sim">Application</A> <B>createApplication</B>(<A HREF="../sim/Simulation.html" title="class in sim">Simulation</A> sim)</PRE><DL><DD>Creates an application setting. Its properties are defined by the class's fields. The application setting is still unassigned to specific network.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sim</CODE> - the current simulation.<DT><B>Returns:</B><DD>an application setting.</DL></DD></DL><HR><A NAME="assignTo(sim.Network)"><!-- --></A><H3>assignTo</H3><PRE>public void <B>assignTo</B>(<A HREF="../sim/Network.html" title="class in sim">Network</A> net)</PRE><DL><DD>Assigns the application's job to the brokers of the network. The jobs are started and also their reassignment is scheduled.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>net</CODE> - a network of brokers.</DL></DD></DL><HR><A NAME="getJob()"><!-- --></A><H3>getJob</H3><PRE>public <A HREF="../sim/Job.html" title="class in sim">Job</A> <B>getJob</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getJobs()"><!-- --></A><H3>getJobs</H3><PRE>public <A HREF="../sim/Job.html" title="class in sim">Job</A>[] <B>getJobs</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"> PREV CLASS <A HREF="../sim/Complexity.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="Application.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: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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 + -