AgentMaps/devdocs/Agentmap.html
noncomputable 4e473fe9ce Updates
2018-09-27 12:52:29 -04:00

3111 lines
42 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: Agentmap</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: Agentmap</h1>
<section>
<header>
<h2><span class="attribs"><span class="type-signature"></span></span>Agentmap<span class="signature">(map, animation_interval<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h2>
</header>
<article>
<div class="container-overview">
<h4 class="name" id="Agentmap"><span class="type-signature"></span>new Agentmap<span class="signature">(map, animation_interval<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
The main class for building, storing, simulating, and manipulating agent-based models on Leaflet maps.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>map</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">A Leaflet Map instance.</td>
</tr>
<tr>
<td class="name"><code>animation_interval</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
1
</td>
<td class="description last">The number of steps agents must move before being redrawn. Given 1, they will be redrawn after every step. Given 0, the animation will not update at all. 1 by default. Must be a nonnegative integer.</td>
</tr>
</tbody>
</table>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>map</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
</td>
<td class="description last">A Leaflet Map instance.</td>
</tr>
<tr>
<td class="name"><code>agents</code></td>
<td class="type">
<span class="param-type">FeatureGroup</span>
</td>
<td class="attributes">
</td>
<td class="description last">A featureGroup containing all agents.</td>
</tr>
<tr>
<td class="name"><code>units</code></td>
<td class="type">
<span class="param-type">FeatureGroup</span>
</td>
<td class="attributes">
</td>
<td class="description last">A featureGroup containing all units.</td>
</tr>
<tr>
<td class="name"><code>streets</code></td>
<td class="type">
<span class="param-type">FeatureGroup</span>
</td>
<td class="attributes">
</td>
<td class="description last">A featureGroup containing all streets.</td>
</tr>
<tr>
<td class="name"><code>state</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
</td>
<td class="description last">Properties detailing the state of the simulation process.
<h6>Properties</h6>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>running</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
</td>
<td class="description last">Whether the simulation is running or not.</td>
</tr>
<tr>
<td class="name"><code>paused</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
</td>
<td class="description last">Whether the simulation is paused.</td>
</tr>
<tr>
<td class="name"><code>animation_frame_id</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last">The id of the agentmap's update function in the queue of functions to call for the coming animation frame.</td>
</tr>
<tr>
<td class="name"><code>ticks</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last">The number of ticks elapsed since the start of the simulation.</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="name"><code>animation_interval</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
</td>
<td class="description last">The number of steps agents must move before being redrawn. Given 1, they will be redrawn after every step. Given 0, the animation will not update at all. 1 by default. Will be a nonnegative integer.</td>
</tr>
<tr>
<td class="name"><code>controller</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last">User-defined function to be called on each update.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line6">line 6</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id=".checkAnimIntervalOption"><span class="type-signature">(private, static) </span>checkAnimIntervalOption<span class="signature">(animation_interval)</span><span class="type-signature"></span></h4>
<div class="description">
Check whether the animation interval option provided is valid.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>animation_interval</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">An input specifying an animation interval distance.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line61">line 61</a>
</li></ul></dd>
</dl>
<h4 class="name" id="agentify"><span class="type-signature"></span>agentify<span class="signature">(count, agentFeatureMaker)</span><span class="type-signature"></span></h4>
<div class="description">
Generate some number of agents and place them on the map.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>count</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">The desired number of agents.</td>
</tr>
<tr>
<td class="name"><code>agentFeatureMaker</code></td>
<td class="type">
<span class="param-type"><a href="global.html#agentFeatureMaker">agentFeatureMaker</a></span>
</td>
<td class="description last">A callback that determines an agent i's feature properties and geometry (always a Point).</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agents.js.html">agents.js</a>, <a href="agents.js.html#line738">line 738</a>
</li></ul></dd>
</dl>
<h4 class="name" id="buildingify"><span class="type-signature"></span>buildingify<span class="signature">(bounding_box, OSM_data, street_options<span class="signature-attributes">opt</span>, unit_options<span class="signature-attributes">opt</span>, unit_layers<span class="signature-attributes">opt</span>, street_layers<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Generate and setup the desired map features (e.g. streets, houses).
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>bounding_box</code></td>
<td class="type">
<span class="param-type">Array.&lt;Array.&lt;number>></span>
</td>
<td class="attributes">
</td>
<td class="description last">The map's top-left and bottom-right coordinates.</td>
</tr>
<tr>
<td class="name"><code>OSM_data</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
</td>
<td class="description last">A GeoJSON Feature Collection object containing the OSM street features inside the bounding box.</td>
</tr>
<tr>
<td class="name"><code>street_options</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">An object containing the Leaflet styling options for streets. See available options here: <a href="https://leafletjs.com/reference-1.3.2.html#polyline-l-polyline">https://leafletjs.com/reference-1.3.2.html#polyline-l-polyline</a>.</td>
</tr>
<tr>
<td class="name"><code>unit_options</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">An object containing the Leaflet & AgentMaps styling options for units.<br/>See available Leaflet options here: <a href="https://leafletjs.com/reference-1.3.2.html#polygon-l-polygon">https://leafletjs.com/reference-1.3.2.html#polygon-l-polygon</a><br/>Additional AgentMaps-specific options are described below.
<h6>Properties</h6>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>front_buffer</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
6
</td>
<td class="description last">The number of meters beetween the front of unit and its street.</td>
</tr>
<tr>
<td class="name"><code>side_buffer</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
3
</td>
<td class="description last">The number of meters between two units on the same street.</td>
</tr>
<tr>
<td class="name"><code>length</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
14
</td>
<td class="description last">The length of the unit in meters along the street.</td>
</tr>
<tr>
<td class="name"><code>depth</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
18
</td>
<td class="description last">The depth of the unit in meters out from its front.</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="name"><code>unit_layers</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">If you want to load a previously generated AgentMaps.units object instead of generating one from scratch: A GeoJSON Feature Collection of an AgentMaps.units featureGroup.</td>
</tr>
<tr>
<td class="name"><code>street_layers</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">If you want to load a previously generated AgentMaps.streets object instead of generating one from scratch: A GeoJSON Feature Collection of an AgentMaps.streets featureGroup.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="buildings.js.html">buildings.js</a>, <a href="buildings.js.html#line28">line 28</a>
</li></ul></dd>
</dl>
<h4 class="name" id="clear"><span class="type-signature"></span>clear<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Stop the animation, reset the animation state properties, and delete the features.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line110">line 110</a>
</li></ul></dd>
</dl>
<h4 class="name" id="downloadUnits"><span class="type-signature"></span>downloadUnits<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Since units may take a noticeably long time to generate while typically staying the same over simulations,
downloadUnits makes it easy to get a JS file containing the units object, so it can be included with an
AgentMaps app and imported into Agentmap.buildingify so they will not need to be regenerated.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line261">line 261</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getNearestIntersection"><span class="type-signature"></span>getNearestIntersection<span class="signature">(lat_lng, place)</span><span class="type-signature"> &rarr; {<a href="global.html#LatLng">LatLng</a>}</span></h4>
<div class="description">
Given a point on a street, find the nearest intersection on that street (with any other street).
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>lat_lng</code></td>
<td class="type">
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</td>
<td class="description last">The coordinates of the point on the street to search from.</td>
</tr>
<tr>
<td class="name"><code>place</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Place">Place</a></span>
</td>
<td class="description last">A place object corresponding to the street.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line215">line 215</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
- The coordinates of the nearest intersection.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</dd>
</dl>
<h4 class="name" id="getPath"><span class="type-signature">(private) </span>getPath<span class="signature">(start_int_lat_lng, goal_int_lat_lng, start_lat_lng, goal_lat_lng, sparse<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;Array.&lt;number>>}</span></h4>
<div class="description">
Get a path between two points on a graph.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>start_int_lat_lng</code></td>
<td class="type">
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">The coordinates of the nearest intersection on the same street at the start_lat_lng.</td>
</tr>
<tr>
<td class="name"><code>goal_int_lat_lng</code></td>
<td class="type">
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">The coordinates of the nearest intersection on the same street as the goal_lat_lng.</td>
</tr>
<tr>
<td class="name"><code>start_lat_lng</code></td>
<td class="type">
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">The coordinates of the point on the street from which the agent will be traveling.</td>
</tr>
<tr>
<td class="name"><code>goal_lat_lng</code></td>
<td class="type">
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">The coordinates of the point on the street to which the agent should travel.</td>
</tr>
<tr>
<td class="name"><code>sparse</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last">Whether to exclude intersections between the first and last along a street-specific path (which are superfluous for extracting the necessary sub-street).</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="routing.js.html">routing.js</a>, <a href="routing.js.html#line115">line 115</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
- An array of points along the graph, leading from the start to the end.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Array.&lt;Array.&lt;number>></span>
</dd>
</dl>
<h4 class="name" id="getStreetNearDoor"><span class="type-signature"></span>getStreetNearDoor<span class="signature">(unit_id)</span><span class="type-signature"> &rarr; {<a href="global.html#LatLng">LatLng</a>}</span></h4>
<div class="description">
Get the point on the adjacent street in front of the unit's door.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>unit_id</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">The unique ID of the unit whose door's corresponding point on the street you want.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line158">line 158</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
- The coordinates point of the adjacent street directly in front of unit's door.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</dd>
</dl>
<h4 class="name" id="getUnitDoor"><span class="type-signature"></span>getUnitDoor<span class="signature">(unit_id)</span><span class="type-signature"> &rarr; {<a href="global.html#LatLng">LatLng</a>}</span></h4>
<div class="description">
Get a point through which an agent can exit/enter a unit.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>unit_id</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">The unique ID of the unit whose door you want.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line137">line 137</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
- The coordinates of the center point of the segment of the unit parallel to the street.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</dd>
</dl>
<h4 class="name" id="getUnitPoint"><span class="type-signature"></span>getUnitPoint<span class="signature">(unit_id, x, y)</span><span class="type-signature"> &rarr; {<a href="global.html#LatLng">LatLng</a>}</span></h4>
<div class="description">
Given a unit and a pair of coordinates between 0 and 1, return a corresponding point inside the unit, offset from its first corner along the street.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>unit_id</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">The unique ID of the unit whose interior point you want.</td>
</tr>
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">A point between 0 and 1 representing a position along the width of a unit.</td>
</tr>
<tr>
<td class="name"><code>y</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">A point between 0 and 1 representing a position along the depth of a unit.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line179">line 179</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
- The global coordinates of the specified position within the unit.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#LatLng">LatLng</a></span>
</dd>
</dl>
<h4 class="name" id="pause"><span class="type-signature"></span>pause<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Stop the animation, stop updating the agents.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line125">line 125</a>
</li></ul></dd>
</dl>
<h4 class="name" id="run"><span class="type-signature"></span>run<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Get an animation frame, have the agents update & get ready to be drawn, and keep doing that until paused or reset.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line70">line 70</a>
</li></ul></dd>
</dl>
<h4 class="name" id="seqUnitAgentMaker"><span class="type-signature"></span>seqUnitAgentMaker<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
A standard <a href="global.html#agentFeatureMaker">agentFeatureMaker</a>, which sets an agent's location to be the point near the center of the iᵗʰ unit of the map,
its place property to be that unit's, and its layer_options to be red and of radius .5 meters.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agents.js.html">agents.js</a>, <a href="agents.js.html#line714">line 714</a>
</li></ul></dd>
</dl>
<h4 class="name" id="setAnimationInterval"><span class="type-signature"></span>setAnimationInterval<span class="signature">(animation_interval)</span><span class="type-signature"></span></h4>
<div class="description">
Change the animation interval of the simulation & redraw the agents.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>animation_interval</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">The desired animation interval to give the simulation. Must be a nonnegative integer.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line47">line 47</a>
</li></ul></dd>
</dl>
<h4 class="name" id="update"><span class="type-signature">(private) </span>update<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Update the simulation at the given time.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="agentmap.js.html">agentmap.js</a>, <a href="agentmap.js.html#line91">line 91</a>
</li></ul></dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Agent.html">Agent</a></li><li><a href="Agentmap.html">Agentmap</a></li></ul><h3>Tutorials</h3><ul><li><a href="tutorial-quickstart.html">quickstart</a></li></ul><h3>Global</h3><ul><li><a href="global.html#addStreetLayerIntersections">addStreetLayerIntersections</a></li><li><a href="global.html#agent">agent</a></li><li><a href="global.html#agentmap">agentmap</a></li><li><a href="global.html#checkEndExcess">checkEndExcess</a></li><li><a href="global.html#checkStartExcess">checkStartExcess</a></li><li><a href="global.html#decodeCoordString">decodeCoordString</a></li><li><a href="global.html#encodeLatLng">encodeLatLng</a></li><li><a href="global.html#generateUnitFeatures">generateUnitFeatures</a></li><li><a href="global.html#getIntersections">getIntersections</a></li><li><a href="global.html#getPathFinder">getPathFinder</a></li><li><a href="global.html#getStreetFeatures">getStreetFeatures</a></li><li><a href="global.html#getUnitAnchors">getUnitAnchors</a></li><li><a href="global.html#getUnitFeatures">getUnitFeatures</a></li><li><a href="global.html#getUnitNeighborLayerIDs">getUnitNeighborLayerIDs</a></li><li><a href="global.html#isPointCoordinates">isPointCoordinates</a></li><li><a href="global.html#noOverlaps">noOverlaps</a></li><li><a href="global.html#pointToCoordinateArray">pointToCoordinateArray</a></li><li><a href="global.html#reversedCoordinates">reversedCoordinates</a></li><li><a href="global.html#setupStreetFeatures">setupStreetFeatures</a></li><li><a href="global.html#setupUnitFeatures">setupUnitFeatures</a></li><li><a href="global.html#streetsToGraph">streetsToGraph</a></li><li><a href="global.html#streetToGraph">streetToGraph</a></li><li><a href="global.html#unitsOutOfStreets">unitsOutOfStreets</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Sep 27 2018 12:52:10 GMT-0400 (Eastern Daylight Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>