abstreet/rustdoc/map_model/make/traffic_signals/lagging_green/index.html
2021-06-17 16:13:28 +00:00

21 lines
8.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `lagging_green` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, lagging_green"><title>map_model::make::traffic_signals::lagging_green - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module lagging_green</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">traffic_signals</a></p><div id="sidebar-vars" data-name="lagging_green" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">traffic_signals</a>::<wbr><a class="mod" href="">lagging_green</a><button id="copy-path" onclick="copy_path(this)"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../../../src/map_model/make/traffic_signals/lagging_green.rs.html#1-407" title="goto source code">[src]</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
<table><tr class="module-item"><td><a class="fn" href="fn.add_stage.html" title="map_model::make::traffic_signals::lagging_green::add_stage fn">add_stage</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.four_way_four_stage.html" title="map_model::make::traffic_signals::lagging_green::four_way_four_stage fn">four_way_four_stage</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.is_conflict.html" title="map_model::make::traffic_signals::lagging_green::is_conflict fn">is_conflict</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_crosswalk_variable.html" title="map_model::make::traffic_signals::lagging_green::make_crosswalk_variable fn">make_crosswalk_variable</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_lagging_green_variable.html" title="map_model::make::traffic_signals::lagging_green::make_lagging_green_variable fn">make_lagging_green_variable</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_signal.html" title="map_model::make::traffic_signals::lagging_green::make_signal fn">make_signal</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_traffic_signal.html" title="map_model::make::traffic_signals::lagging_green::make_traffic_signal fn">make_traffic_signal</a></td><td class="docblock-short"><p>Create a traffic signal which has a stage that is: protected straight, protected right,
unprotected left, unprotected right on red. Followed by a variable stage that has protected
left, unprotected right on red. With a last stage that is all-walk and variable.
In some degenerate cases, usually with one or more one-way, this can reduce to stage per road.
In some rare cases, usually with an alleyway, oncoming lanes cant both be protected left turns.
In such cases the stage is split into two stages with each having a protected and yeild turn.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.merge_stages.html" title="map_model::make::traffic_signals::lagging_green::merge_stages fn">merge_stages</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.movements.html" title="map_model::make::traffic_signals::lagging_green::movements fn">movements</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.multi_way_stages.html" title="map_model::make::traffic_signals::lagging_green::multi_way_stages fn">multi_way_stages</a></td><td class="docblock-short"><p>Build stages. First find roads that are straight across, they are either one-way or two-way.
For one-way, add any right or left turns, thus completing the stage. For two-way, two
stages will be added. The first stage has protected straight, and right and yield left.
The second stage has protected left. Lastly, sometimes oncomming left turns cant both
be protected, if this occurs the 2nd stage will have one direction protected and the
other yeild and a 3rd, inverse, stage will be added which has the other directions left
protected and other yield. Finally, any turns which werent assigned, because there
are no straights or there are more than just pairs of straight intersections, are assigned a
stage. These, too are handled as pairs until one remains, which is handled as a one-way.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.optimize.html" title="map_model::make::traffic_signals::lagging_green::optimize fn">optimize</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.protected_yield_stage.html" title="map_model::make::traffic_signals::lagging_green::protected_yield_stage fn">protected_yield_stage</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.remove_movement.html" title="map_model::make::traffic_signals::lagging_green::remove_movement fn">remove_movement</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.straight_types.html" title="map_model::make::traffic_signals::lagging_green::straight_types fn">straight_types</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.three_way_three_stage.html" title="map_model::make::traffic_signals::lagging_green::three_way_three_stage fn">three_way_three_stage</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.turns.html" title="map_model::make::traffic_signals::lagging_green::turns fn">turns</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_model" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
<script src="../../../../main.js"></script></body></html>