TrafficSim/doc/apidoc/de/hems/trafficsim/VehicleTimeRecord.html

453 lines
21 KiB
HTML
Raw Permalink Normal View History

2020-11-15 16:34:32 +01:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (1.8.0_242-release) on Sun Nov 15 16:26:40 CET 2020 -->
<title>VehicleTimeRecord</title>
<meta content="2020-11-15" name="date">
<link href="../../../stylesheet.css" rel="stylesheet" title="Style" type="text/css">
<script src="../../../script.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="VehicleTimeRecord";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation
links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../de/hems/trafficsim/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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><a href="../../../de/hems/trafficsim/Vehicle.html"
title="class in de.hems.trafficsim"><span class="typeNameLink">Prev&nbsp;Class</span></a>
</li>
<li><a href="../../../de/hems/trafficsim/Worker.html"
title="class in de.hems.trafficsim"><span class="typeNameLink">Next&nbsp;Class</span></a>
</li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?de/hems/trafficsim/VehicleTimeRecord.html" target="_top">Frames</a>
</li>
<li><a href="VehicleTimeRecord.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All&nbsp;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">de.hems.trafficsim</div>
<h2 class="title" title="Class VehicleTimeRecord">Class VehicleTimeRecord</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>de.hems.trafficsim.VehicleTimeRecord</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">VehicleTimeRecord</span>
extends java.lang.Object</pre>
<div class="block">Model class which keeps the previous simulation data for
analysis.
</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 border="0" cellpadding="3" cellspacing="0" class="memberSummary"
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>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../de/hems/trafficsim/VehicleTimeRecord.html#id">id</a></span></code>
<div class="block">the id of the vehicle it belongs to</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../de/hems/trafficsim/VehicleTimeRecord.html#maxVelocity">maxVelocity</a></span></code>
<div class="block">the maximum velocity of the vehicle</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../de/hems/trafficsim/VehicleTimeRecord.html#position">position</a></span></code>
<div class="block">the position of the vehicle after the last
simulation step
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../de/hems/trafficsim/VehicleTimeRecord.html#velocity">velocity</a></span></code>
<div class="block">the velocity of the vehicle during the last
simulation step
</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary"
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><span class="memberNameLink"><a
href="../../../de/hems/trafficsim/VehicleTimeRecord.html#VehicleTimeRecord-int-float-float-float-">VehicleTimeRecord</a></span>(int&nbsp;id,
float&nbsp;position,
float&nbsp;velocity,
float&nbsp;maxVelocity)</code>
<div class="block">Construct a new VehicleTimeRecord.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary"
summary="Method Summary table, listing methods, and an explanation">
<caption><span class="activeTableTab"
id="t0"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span
class="tableTab" id="t2"><span><a href="javascript:show(2);">Instance Methods</a></span><span
class="tabEnd">&nbsp;</span></span><span class="tableTab"
id="t4"><span><a
href="javascript:show(8);">Concrete Methods</a></span><span
class="tabEnd">&nbsp;</span></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" id="i0">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../de/hems/trafficsim/VehicleTimeRecord.html#getMaxVelocity--">getMaxVelocity</a></span>()</code>&nbsp;
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../de/hems/trafficsim/VehicleTimeRecord.html#getPosition--">getPosition</a></span>()</code>&nbsp;
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../de/hems/trafficsim/VehicleTimeRecord.html#getVelocity--">getVelocity</a></span>()</code>&nbsp;
</td>
</tr>
</table>
<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>clone, equals, finalize, getClass, hashCode, notify,
notifyAll, toString, 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="id">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>id</h4>
<pre>protected&nbsp;int id</pre>
<div class="block">the id of the vehicle it belongs to</div>
</li>
</ul>
<a name="position">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>position</h4>
<pre>protected&nbsp;float position</pre>
<div class="block">the position of the vehicle after the last
simulation step
</div>
</li>
</ul>
<a name="velocity">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>velocity</h4>
<pre>protected&nbsp;float velocity</pre>
<div class="block">the velocity of the vehicle during the last
simulation step
</div>
</li>
</ul>
<a name="maxVelocity">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>maxVelocity</h4>
<pre>protected&nbsp;float maxVelocity</pre>
<div class="block">the maximum velocity of the vehicle</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="VehicleTimeRecord-int-float-float-float-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>VehicleTimeRecord</h4>
<pre>public&nbsp;VehicleTimeRecord(int&nbsp;id,
float&nbsp;position,
float&nbsp;velocity,
float&nbsp;maxVelocity)</pre>
<div class="block">Construct a new VehicleTimeRecord.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the id of the vehicle it belongs to</dd>
<dd><code>position</code> - the position of the vehicle after
the last simulation step
</dd>
<dd><code>velocity</code> - the velocity of the vehicle during
the last simulation step
</dd>
<dd><code>maxVelocity</code> - the maximum velocity of the
vehicle
</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="getMaxVelocity--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxVelocity</h4>
<pre>public&nbsp;float&nbsp;getMaxVelocity()</pre>
</li>
</ul>
<a name="getPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPosition</h4>
<pre>public&nbsp;float&nbsp;getPosition()</pre>
</li>
</ul>
<a name="getVelocity--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getVelocity</h4>
<pre>public&nbsp;float&nbsp;getVelocity()</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation
links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../de/hems/trafficsim/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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><a href="../../../de/hems/trafficsim/Vehicle.html"
title="class in de.hems.trafficsim"><span class="typeNameLink">Prev&nbsp;Class</span></a>
</li>
<li><a href="../../../de/hems/trafficsim/Worker.html"
title="class in de.hems.trafficsim"><span class="typeNameLink">Next&nbsp;Class</span></a>
</li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?de/hems/trafficsim/VehicleTimeRecord.html" target="_top">Frames</a>
</li>
<li><a href="VehicleTimeRecord.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All&nbsp;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>