Files
2012-10-22 23:08:52 +02:00

575 lines
20 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="pl">
<head>
<!-- Generated by javadoc (version 1.7.0_09) on Mon Oct 22 23:08:21 CEST 2012 -->
<title>Run</title>
<meta name="date" content="2012-10-22">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Run";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../BiathlonSymulation/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Run.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-files/index-1.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../BiathlonSymulation/Runner.html" title="class in BiathlonSymulation"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?BiathlonSymulation/Run.html" target="_top">Frames</a></li>
<li><a href="Run.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">BiathlonSymulation</div>
<h2 title="Class Run" class="title">Class Run</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>desmoj.core.simulator.NamedObject</li>
<li>
<ul class="inheritance">
<li>desmoj.core.simulator.ModelComponent</li>
<li>
<ul class="inheritance">
<li>desmoj.core.simulator.Reportable</li>
<li>
<ul class="inheritance">
<li>desmoj.core.simulator.Model</li>
<li>
<ul class="inheritance">
<li>BiathlonSymulation.Run</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">Run</span>
extends desmoj.core.simulator.Model</pre>
<div class="block">This is the model class. It is the main class of a simple process-oriented
model of the biathlon mass start run.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#ACTIVE_RUNNERS_NUM">ACTIVE_RUNNERS_NUM</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/SR.html" title="class in BiathlonSymulation">SR</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#SR_1">SR_1</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/SR.html" title="class in BiathlonSymulation">SR</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#SR_2">SR_2</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/SR.html" title="class in BiathlonSymulation">SR</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#SR_3">SR_3</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/SR.html" title="class in BiathlonSymulation">SR</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#SR_4">SR_4</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#stage1">stage1</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#stage2">stage2</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#stage3">stage3</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#stage4">stage4</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a></code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#stage5">stage5</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../BiathlonSymulation/Run.html#Run(desmoj.core.simulator.Model, java.lang.String, boolean, boolean)">Run</a></strong>(desmoj.core.simulator.Model&nbsp;owner,
java.lang.String&nbsp;modelName,
boolean&nbsp;showInReport,
boolean&nbsp;showInTrace)</code>
<div class="block">Run constructor.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#description()">description</a></strong>()</code>
<div class="block">returns a description of the model to be used in the report.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#doInitialSchedules()">doInitialSchedules</a></strong>()</code>
<div class="block">activates dynamic model components (simulation processes).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#Finish()">Finish</a></strong>()</code>
<div class="block">Collect all data.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#init()">init</a></strong>()</code>
<div class="block">initialises static model components like distributions and queues.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#main(java.lang.String[])">main</a></strong>(java.lang.String[]&nbsp;args)</code>
<div class="block">Runs the model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../BiathlonSymulation/Run.html#QueueRunner(BiathlonSymulation.Runner)">QueueRunner</a></strong>(<a href="../BiathlonSymulation/Runner.html" title="class in BiathlonSymulation">Runner</a>&nbsp;runner)</code>
<div class="block">Queue runner to next stage.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_desmoj.core.simulator.Model">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;desmoj.core.simulator.Model</h3>
<code>connectToExperiment, createReporter, getEntities, getEntity, getExperiment, getParameterManager, getReportables, hasSubModels, init, isConnected, isMainModel, isSubModel, reset</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_desmoj.core.simulator.Reportable">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;desmoj.core.simulator.Reportable</h3>
<code>getCorrespondingSchedulable, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setReporter</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_desmoj.core.simulator.ModelComponent">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;desmoj.core.simulator.ModelComponent</h3>
<code>current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_desmoj.core.simulator.NamedObject">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;desmoj.core.simulator.NamedObject</h3>
<code>getName, getQuotedName, toString</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="ACTIVE_RUNNERS_NUM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ACTIVE_RUNNERS_NUM</h4>
<pre>public static&nbsp;int ACTIVE_RUNNERS_NUM</pre>
</li>
</ul>
<a name="stage1">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stage1</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a> stage1</pre>
</li>
</ul>
<a name="stage2">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stage2</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a> stage2</pre>
</li>
</ul>
<a name="stage3">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stage3</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a> stage3</pre>
</li>
</ul>
<a name="stage4">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stage4</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a> stage4</pre>
</li>
</ul>
<a name="stage5">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stage5</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/Stage.html" title="class in BiathlonSymulation">Stage</a> stage5</pre>
</li>
</ul>
<a name="SR_1">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SR_1</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/SR.html" title="class in BiathlonSymulation">SR</a> SR_1</pre>
</li>
</ul>
<a name="SR_2">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SR_2</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/SR.html" title="class in BiathlonSymulation">SR</a> SR_2</pre>
</li>
</ul>
<a name="SR_3">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SR_3</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/SR.html" title="class in BiathlonSymulation">SR</a> SR_3</pre>
</li>
</ul>
<a name="SR_4">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SR_4</h4>
<pre>public&nbsp;<a href="../BiathlonSymulation/SR.html" title="class in BiathlonSymulation">SR</a> SR_4</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Run(desmoj.core.simulator.Model, java.lang.String, boolean, boolean)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Run</h4>
<pre>public&nbsp;Run(desmoj.core.simulator.Model&nbsp;owner,
java.lang.String&nbsp;modelName,
boolean&nbsp;showInReport,
boolean&nbsp;showInTrace)</pre>
<div class="block">Run constructor.
Creates a new Run model via calling
the constructor of the superclass.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>owner</code> - the model this model is part of (set to <tt>null</tt> when there is no such model)</dd><dd><code>modelName</code> - this model's name</dd><dd><code>showInReport</code> - flag to indicate if this model shall produce output to the report file</dd><dd><code>showInTrace</code> - flag to indicate if this model shall produce output to the trace file</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="main(java.lang.String[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>main</h4>
<pre>public static&nbsp;void&nbsp;main(java.lang.String[]&nbsp;args)</pre>
<div class="block">Runs the model.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>args</code> - is an array of command-line arguments (will be ignored here)</dd></dl>
</li>
</ul>
<a name="QueueRunner(BiathlonSymulation.Runner)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>QueueRunner</h4>
<pre>public&nbsp;void&nbsp;QueueRunner(<a href="../BiathlonSymulation/Runner.html" title="class in BiathlonSymulation">Runner</a>&nbsp;runner)</pre>
<div class="block">Queue runner to next stage.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>runner</code> - - current, which has to be queued.</dd></dl>
</li>
</ul>
<a name="description()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>description</h4>
<pre>public&nbsp;java.lang.String&nbsp;description()</pre>
<div class="block">returns a description of the model to be used in the report.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>description</code>&nbsp;in class&nbsp;<code>desmoj.core.simulator.Model</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>model description as a string</dd></dl>
</li>
</ul>
<a name="doInitialSchedules()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doInitialSchedules</h4>
<pre>public&nbsp;void&nbsp;doInitialSchedules()</pre>
<div class="block">activates dynamic model components (simulation processes).
This method is used to place all events or processes on the
internal event list of the simulator which are necessary to start
the simulation.
In this case, the truck generator and the van carrier(s) have to be
created and activated.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>doInitialSchedules</code>&nbsp;in class&nbsp;<code>desmoj.core.simulator.Model</code></dd>
</dl>
</li>
</ul>
<a name="init()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public&nbsp;void&nbsp;init()</pre>
<div class="block">initialises static model components like distributions and queues.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>init</code>&nbsp;in class&nbsp;<code>desmoj.core.simulator.Model</code></dd>
</dl>
</li>
</ul>
<a name="Finish()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Finish</h4>
<pre>public&nbsp;void&nbsp;Finish()</pre>
<div class="block">Collect all data.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../BiathlonSymulation/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Run.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-files/index-1.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../BiathlonSymulation/Runner.html" title="class in BiathlonSymulation"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?BiathlonSymulation/Run.html" target="_top">Frames</a></li>
<li><a href="Run.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>