Crate abstio[−][src]
A/B Street organizes data files in a particular +
Crate abstio[−][src]
A/B Street organizes data files in a particular way. This crate implements methods to find files and (mostly) treat them the same way on native and web.
Modules
diff --git a/rustdoc/fifteen_min/find_amenities/fn.create_border_isochrone.html b/rustdoc/fifteen_min/find_amenities/fn.create_border_isochrone.html index 613fb365fb..730463273f 100644 --- a/rustdoc/fifteen_min/find_amenities/fn.create_border_isochrone.html +++ b/rustdoc/fifteen_min/find_amenities/fn.create_border_isochrone.html @@ -1,6 +1,6 @@Function fifteen_min::find_amenities::create_border_isochrone [−][src]
fn create_border_isochrone(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
options: Options
) -> BorderIsochrone
Function fifteen_min::find_amenities::create_border_isochrone [−][src]
fn create_border_isochrone(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
options: Options
) -> BorderIsochrone
Draw an isochrone from every intersection border
Function fifteen_min::find_amenities::create_multi_isochrone [−][src]
fn create_multi_isochrone(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
category: AmenityType,
options: Options
) -> Isochrone
Function fifteen_min::find_amenities::create_multi_isochrone [−][src]
fn create_multi_isochrone(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
category: AmenityType,
options: Options
) -> Isochrone
For every one of the requested amenity on the map, draw an isochrone
Struct fifteen_min::find_amenities::FindAmenity [−][src]
pub struct FindAmenity;
Calculate isochrones around each amenity on a map and merge them together using the min value
-Implementations
impl FindAmenity
[src]
Auto Trait Implementations
impl RefUnwindSafe for FindAmenity
impl Send for FindAmenity
impl Sync for FindAmenity
impl Unpin for FindAmenity
impl UnwindSafe for FindAmenity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src]
Gets the TypeId
of self
. Read more
Implementations
impl FindAmenity
[src]
Auto Trait Implementations
impl RefUnwindSafe for FindAmenity
impl Send for FindAmenity
impl Sync for FindAmenity
impl Unpin for FindAmenity
impl UnwindSafe for FindAmenity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
diff --git a/rustdoc/fifteen_min/find_amenities/struct.Results.html b/rustdoc/fifteen_min/find_amenities/struct.Results.html
index 7b12b808de..6f534da056 100644
--- a/rustdoc/fifteen_min/find_amenities/struct.Results.html
+++ b/rustdoc/fifteen_min/find_amenities/struct.Results.html
@@ -6,11 +6,11 @@
isochrone: Isochrone,
hovering_on_bldg: Cached<(BuildingID, f64), HoverOnBuilding>,
}
- Fields
draw: Drawable
isochrone: Isochrone
hovering_on_bldg: Cached<(BuildingID, f64), HoverOnBuilding>
Implementations
impl Results
[src]
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: Isochrone,
border_isochrone: BorderIsochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: Isochrone,
border_isochrone: BorderIsochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
Trait Implementations
impl SimpleState<SimpleApp<()>> for Results
[src]
fn on_click(
&mut self,
_: &mut EventCtx<'_>,
_: &mut SimpleApp<()>,
x: &str,
_: &Panel
) -> Transition<SimpleApp<()>>
[src]
&mut self,
_: &mut EventCtx<'_>,
_: &mut SimpleApp<()>,
x: &str,
_: &Panel
) -> Transition<SimpleApp<()>>
Called when something on the panel has been clicked. Since the action is just a string,
+ Fieldsdraw: Drawable
isochrone: Isochrone
hovering_on_bldg: Cached<(BuildingID, f64), HoverOnBuilding>
Implementations
impl Results
[src]
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: Isochrone,
border_isochrone: BorderIsochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: Isochrone,
border_isochrone: BorderIsochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
Trait Implementations
impl SimpleState<SimpleApp<()>> for Results
[src]
fn on_click(
&mut self,
_: &mut EventCtx<'_>,
_: &mut SimpleApp<()>,
x: &str,
_: &Panel
) -> Transition<SimpleApp<()>>
[src]
&mut self,
_: &mut EventCtx<'_>,
_: &mut SimpleApp<()>,
x: &str,
_: &Panel
) -> Transition<SimpleApp<()>>
Called when something on the panel has been clicked. Since the action is just a string,
the fallback case can just use unreachable!()
. Read more
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
If a panel on_click
event didn’t occur and panel_changed
didn’t return transition, then
+
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
If a panel on_click
event didn’t occur and panel_changed
didn’t return transition, then
call this to handle all other events. Read more
fn draw(&self, g: &mut GfxCtx<'_>, _: &SimpleApp<()>)
[src]
pub fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
Called when something on the panel has changed. If a transition is returned, stop handling +
fn draw(&self, g: &mut GfxCtx<'_>, _: &SimpleApp<()>)
[src]
pub fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
Called when something on the panel has changed. If a transition is returned, stop handling the event and immediately apply the transition. Read more
pub fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
Called when the mouse has moved.
pub fn draw_baselayer(&self) -> DrawBaselayer
Auto Trait Implementations
impl !RefUnwindSafe for Results
impl !Send for Results
impl !Sync for Results
impl Unpin for Results
impl UnwindSafe for Results
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src]
Gets the TypeId
of self
. Read more
Function fifteen_min::find_home::score_houses [−][src]
fn score_houses(
app: &SimpleApp<()>,
amenities: Vec<AmenityType>,
options: Options,
timer: &mut Timer<'_>
) -> HashMap<BuildingID, Percent>
Function fifteen_min::find_home::score_houses [−][src]
fn score_houses(
app: &SimpleApp<()>,
amenities: Vec<AmenityType>,
options: Options,
timer: &mut Timer<'_>
) -> HashMap<BuildingID, Percent>
For every house in the map, return the percent of amenities located within a 15min walkshed. A single matching business per category is enough to count as satisfied.
Ask what types of amenities are necessary to be within a walkshed, then rank every house with how many of those needs are satisfied.
- Fields
options: Options
Implementations
impl FindHome
[src]
Trait Implementations
impl SimpleState<SimpleApp<()>> for FindHome
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>,
x: &str,
panel: &Panel
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>,
x: &str,
panel: &Panel
) -> Transition<SimpleApp<()>>
Called when something on the panel has been clicked. Since the action is just a string,
+ Fieldsoptions: Options
Implementations
impl FindHome
[src]
Trait Implementations
impl SimpleState<SimpleApp<()>> for FindHome
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>,
x: &str,
panel: &Panel
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>,
x: &str,
panel: &Panel
) -> Transition<SimpleApp<()>>
Called when something on the panel has been clicked. Since the action is just a string,
the fallback case can just use unreachable!()
. Read more
pub fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
Called when something on the panel has changed. If a transition is returned, stop handling the event and immediately apply the transition. Read more
diff --git a/rustdoc/fifteen_min/find_home/struct.Results.html b/rustdoc/fifteen_min/find_home/struct.Results.html index 38abe521bb..625cf40755 100644 --- a/rustdoc/fifteen_min/find_home/struct.Results.html +++ b/rustdoc/fifteen_min/find_home/struct.Results.html @@ -4,11 +4,11 @@Struct fifteen_min::find_home::Results [−][src]
struct Results { draw_houses: Drawable, }
- Fields
draw_houses: Drawable
Implementations
impl Results
[src]
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
scores: HashMap<BuildingID, Percent>,
amenities: Vec<AmenityType>
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
scores: HashMap<BuildingID, Percent>,
amenities: Vec<AmenityType>
) -> Box<dyn State<SimpleApp<()>>>
Trait Implementations
impl SimpleState<SimpleApp<()>> for Results
[src]
fn on_click(
&mut self,
_: &mut EventCtx<'_>,
_: &mut SimpleApp<()>,
x: &str,
_: &Panel
) -> Transition<SimpleApp<()>>
[src]
&mut self,
_: &mut EventCtx<'_>,
_: &mut SimpleApp<()>,
x: &str,
_: &Panel
) -> Transition<SimpleApp<()>>
Called when something on the panel has been clicked. Since the action is just a string,
+ Fieldsdraw_houses: Drawable
Implementations
impl Results
[src]
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
scores: HashMap<BuildingID, Percent>,
amenities: Vec<AmenityType>
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
scores: HashMap<BuildingID, Percent>,
amenities: Vec<AmenityType>
) -> Box<dyn State<SimpleApp<()>>>
Trait Implementations
impl SimpleState<SimpleApp<()>> for Results
[src]
fn on_click(
&mut self,
_: &mut EventCtx<'_>,
_: &mut SimpleApp<()>,
x: &str,
_: &Panel
) -> Transition<SimpleApp<()>>
[src]
&mut self,
_: &mut EventCtx<'_>,
_: &mut SimpleApp<()>,
x: &str,
_: &Panel
) -> Transition<SimpleApp<()>>
Called when something on the panel has been clicked. Since the action is just a string,
the fallback case can just use unreachable!()
. Read more
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
If a panel on_click
event didn’t occur and panel_changed
didn’t return transition, then
+
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
If a panel on_click
event didn’t occur and panel_changed
didn’t return transition, then
call this to handle all other events. Read more
fn draw(&self, g: &mut GfxCtx<'_>, _: &SimpleApp<()>)
[src]
pub fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
Called when something on the panel has changed. If a transition is returned, stop handling +
fn draw(&self, g: &mut GfxCtx<'_>, _: &SimpleApp<()>)
[src]
pub fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&mut Panel
) -> Option<Transition<A>>
Called when something on the panel has changed. If a transition is returned, stop handling the event and immediately apply the transition. Read more
pub fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
Called when the mouse has moved.
pub fn draw_baselayer(&self) -> DrawBaselayer
Auto Trait Implementations
impl !RefUnwindSafe for Results
impl !Send for Results
impl !Sync for Results
impl Unpin for Results
impl UnwindSafe for Results
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src]
Gets the TypeId
of self
. Read more
Function fifteen_min::isochrone::draw_isochrone [−][src]
pub fn draw_isochrone(
app: &SimpleApp<()>,
time_to_reach_building: &HashMap<BuildingID, Duration>,
thresholds: &[f64],
colors: &[Color]
) -> GeomBatch
Function fifteen_min::isochrone::draw_isochrone [−][src]
pub fn draw_isochrone(
app: &SimpleApp<()>,
time_to_reach_building: &HashMap<BuildingID, Duration>,
thresholds: &[f64],
colors: &[Color]
) -> GeomBatch
thresholds: Vec<f64>
Thresholds used to draw the isochrone
colors: Vec<Color>
Colors used to draw the isochrone
time_to_reach_building: HashMap<BuildingID, Duration>
How far away is each building from the start?
-Implementations
impl BorderIsochrone
[src]
pub fn new(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<IntersectionID>,
options: Options
) -> BorderIsochrone
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<IntersectionID>,
options: Options
) -> BorderIsochrone
Auto Trait Implementations
impl !RefUnwindSafe for BorderIsochrone
impl !Send for BorderIsochrone
impl !Sync for BorderIsochrone
impl Unpin for BorderIsochrone
impl UnwindSafe for BorderIsochrone
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src]
Gets the TypeId
of self
. Read more
Implementations
impl BorderIsochrone
[src]
pub fn new(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<IntersectionID>,
options: Options
) -> BorderIsochrone
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<IntersectionID>,
options: Options
) -> BorderIsochrone
Auto Trait Implementations
impl !RefUnwindSafe for BorderIsochrone
impl !Send for BorderIsochrone
impl !Sync for BorderIsochrone
impl Unpin for BorderIsochrone
impl UnwindSafe for BorderIsochrone
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
diff --git a/rustdoc/fifteen_min/isochrone/struct.Isochrone.html b/rustdoc/fifteen_min/isochrone/struct.Isochrone.html
index 44d092624e..ddf2d399a4 100644
--- a/rustdoc/fifteen_min/isochrone/struct.Isochrone.html
+++ b/rustdoc/fifteen_min/isochrone/struct.Isochrone.html
@@ -23,7 +23,7 @@
population: usize
How many people live in the returned area, according to estimates included in the map (from city-specific parcel data, guesses from census, or a guess based on OSM tags)
onstreet_parking_spots: usize
How many sreet parking spots are on the same road as any buildings returned.
-Implementations
impl Isochrone
[src]
pub fn new(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<BuildingID>,
options: Options
) -> Isochrone
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<BuildingID>,
options: Options
) -> Isochrone
pub fn path_to(&self, map: &Map, to: BuildingID) -> Option<Path>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Isochrone
impl !Send for Isochrone
impl !Sync for Isochrone
impl Unpin for Isochrone
impl UnwindSafe for Isochrone
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src]
Gets the TypeId
of self
. Read more
Implementations
impl Isochrone
[src]
pub fn new(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<BuildingID>,
options: Options
) -> Isochrone
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: Vec<BuildingID>,
options: Options
) -> Isochrone
pub fn path_to(&self, map: &Map, to: BuildingID) -> Option<Path>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Isochrone
impl !Send for Isochrone
impl !Sync for Isochrone
impl Unpin for Isochrone
impl UnwindSafe for Isochrone
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
diff --git a/rustdoc/fifteen_min/type.App.html b/rustdoc/fifteen_min/type.App.html
index 5475e118a1..bd15091af9 100644
--- a/rustdoc/fifteen_min/type.App.html
+++ b/rustdoc/fifteen_min/type.App.html
@@ -1,5 +1,5 @@
Type Definition fifteen_min::App [−][src]
type App = SimpleApp<()>;
Type Definition fifteen_min::App [−][src]
type App = SimpleApp<()>;
Function fifteen_min::viewer::build_panel [−][src]
fn build_panel(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: &Building,
isochrone: &Isochrone
) -> Panel
Function fifteen_min::viewer::build_panel [−][src]
fn build_panel(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: &Building,
isochrone: &Isochrone
) -> Panel
Function fifteen_min::viewer::draw_unwalkable_roads [−][src]
pub fn draw_unwalkable_roads(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
opts: &Options
) -> Drawable
Function fifteen_min::viewer::draw_unwalkable_roads [−][src]
pub fn draw_unwalkable_roads(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
opts: &Options
) -> Drawable
Struct fifteen_min::viewer::ExploreAmenities [−][src]
struct ExploreAmenities { - table: Table<SimpleApp<()>, Entry, ()>, + table: Table<SimpleApp<()>, Entry, ()>, panel: Panel, draw: Drawable, }
- Fields
table: Table<SimpleApp<()>, Entry, ()>
panel: Panel
draw: Drawable
Implementations
impl ExploreAmenities
[src]
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: &Isochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: &Isochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
Trait Implementations
impl State<SimpleApp<()>> for ExploreAmenities
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
Respond to a UI event, such as input or time passing.
-fn draw(&self, g: &mut GfxCtx<'_>, app: &SimpleApp<()>)
[src]
Draw
+ Fieldstable: Table<SimpleApp<()>, Entry, ()>
panel: Panel
draw: Drawable
Implementations
impl ExploreAmenities
[src]
fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: &Isochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
isochrone: &Isochrone,
category: AmenityType
) -> Box<dyn State<SimpleApp<()>>>
Trait Implementations
impl State<SimpleApp<()>> for ExploreAmenities
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
Respond to a UI event, such as input or time passing.
+fn draw(&self, g: &mut GfxCtx<'_>, app: &SimpleApp<()>)
[src]
Draw
pub fn draw_baselayer(&self) -> DrawBaselayer
Specifies what to draw before draw()
pub fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
Before this state is popped or replaced, call this.
Auto Trait Implementations
impl !RefUnwindSafe for ExploreAmenities
impl !Send for ExploreAmenities
impl !Sync for ExploreAmenities
impl Unpin for ExploreAmenities
impl !UnwindSafe for ExploreAmenities
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src]
Gets the TypeId
of self
. Read more
- Fields
tooltip: Text
drawn_route: Drawable
Implementations
impl HoverOnBuilding
[src]
pub fn key(ctx: &EventCtx<'_>, app: &SimpleApp<()>) -> Option<(BuildingID, f64)>
[src]
pub fn value(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
key: (BuildingID, f64),
isochrone: &Isochrone
) -> HoverOnBuilding
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
key: (BuildingID, f64),
isochrone: &Isochrone
) -> HoverOnBuilding
Auto Trait Implementations
impl !RefUnwindSafe for HoverOnBuilding
impl !Send for HoverOnBuilding
impl !Sync for HoverOnBuilding
impl Unpin for HoverOnBuilding
impl UnwindSafe for HoverOnBuilding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src]
Gets the TypeId
of self
. Read more
tooltip: Text
drawn_route: Drawable
Implementations
impl HoverOnBuilding
[src]
pub fn key(ctx: &EventCtx<'_>, app: &SimpleApp<()>) -> Option<(BuildingID, f64)>
[src]
pub fn value(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
key: (BuildingID, f64),
isochrone: &Isochrone
) -> HoverOnBuilding
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
key: (BuildingID, f64),
isochrone: &Isochrone
) -> HoverOnBuilding
Auto Trait Implementations
impl !RefUnwindSafe for HoverOnBuilding
impl !Send for HoverOnBuilding
impl !Sync for HoverOnBuilding
impl Unpin for HoverOnBuilding
impl UnwindSafe for HoverOnBuilding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
diff --git a/rustdoc/fifteen_min/viewer/struct.Viewer.html b/rustdoc/fifteen_min/viewer/struct.Viewer.html
index 6807a14bcd..7bae786666 100644
--- a/rustdoc/fifteen_min/viewer/struct.Viewer.html
+++ b/rustdoc/fifteen_min/viewer/struct.Viewer.html
@@ -10,9 +10,9 @@
draw_unwalkable_roads: Drawable,
}
This is the UI state for exploring the isochrone/walkshed from a single building.
- Fields
panel: Panel
highlight_start: Drawable
isochrone: Isochrone
hovering_on_bldg: Cached<(BuildingID, f64), HoverOnBuilding>
hovering_on_category: Option<(AmenityType, Drawable)>
draw_unwalkable_roads: Drawable
Implementations
impl Viewer
[src]
pub fn random_start(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>
) -> Box<dyn State<SimpleApp<()>>>
Start with a random building
-pub fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: BuildingID
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: BuildingID
) -> Box<dyn State<SimpleApp<()>>>
Trait Implementations
impl State<SimpleApp<()>> for Viewer
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
Respond to a UI event, such as input or time passing.
-fn draw(&self, g: &mut GfxCtx<'_>, _: &SimpleApp<()>)
[src]
Draw
+ Fieldspanel: Panel
highlight_start: Drawable
isochrone: Isochrone
hovering_on_bldg: Cached<(BuildingID, f64), HoverOnBuilding>
hovering_on_category: Option<(AmenityType, Drawable)>
draw_unwalkable_roads: Drawable
Implementations
impl Viewer
[src]
pub fn random_start(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>
) -> Box<dyn State<SimpleApp<()>>>
Start with a random building
+pub fn new_state(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: BuildingID
) -> Box<dyn State<SimpleApp<()>>>
[src]
ctx: &mut EventCtx<'_>,
app: &SimpleApp<()>,
start: BuildingID
) -> Box<dyn State<SimpleApp<()>>>
Trait Implementations
impl State<SimpleApp<()>> for Viewer
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<()>
) -> Transition<SimpleApp<()>>
Respond to a UI event, such as input or time passing.
+fn draw(&self, g: &mut GfxCtx<'_>, _: &SimpleApp<()>)
[src]
Draw
pub fn draw_baselayer(&self) -> DrawBaselayer
Specifies what to draw before draw()
pub fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
Before this state is popped or replaced, call this.
Auto Trait Implementations
impl !RefUnwindSafe for Viewer
impl !Send for Viewer
impl !Sync for Viewer
impl Unpin for Viewer
impl !UnwindSafe for Viewer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
[src]
Gets the TypeId
of self
. Read more
Constant game::pregame::built_info::BUILT_TIME_UTC [−][src]
pub const BUILT_TIME_UTC: &str = r"Fri, 11 Jun 2021 17:19:26 +0000";
Constant game::pregame::built_info::BUILT_TIME_UTC [−][src]
pub const BUILT_TIME_UTC: &str = r"Sat, 12 Jun 2021 20:47:40 +0000";
The build time in RFC2822, UTC.
A: 'static + AppLike,
T: 'static, ","synthetic":false,"types":["map_gui::load::FutureLoader"]},{"text":"impl<A: AppLike> State<A> for OptionsPanel","synthetic":false,"types":["map_gui::options::OptionsPanel"]},{"text":"impl<T> State<SimpleApp<T>> for SimpleWarper","synthetic":false,"types":["map_gui::simple_app::SimpleWarper"]},{"text":"impl<A: AppLike + 'static> State<A> for CityPicker<A>","synthetic":false,"types":["map_gui::tools::city_picker::CityPicker"]},{"text":"impl<A: AppLike + 'static> State<A> for AllCityPicker<A>","synthetic":false,"types":["map_gui::tools::city_picker::AllCityPicker"]},{"text":"impl<A: AppLike + 'static> State<A> for CitiesInCountryPicker<A>","synthetic":false,"types":["map_gui::tools::city_picker::CitiesInCountryPicker"]},{"text":"impl<A: AppLike + 'static> State<A> for RunCommand<A>","synthetic":false,"types":["map_gui::tools::command::RunCommand"]},{"text":"impl<A: AppLike + 'static> State<A> for ImportCity<A>","synthetic":false,"types":["map_gui::tools::importer::ImportCity"]},{"text":"impl<A: AppLike + 'static> State<A> for Navigator","synthetic":false,"types":["map_gui::tools::navigate::Navigator"]},{"text":"impl<A: AppLike + 'static> State<A> for CrossStreet","synthetic":false,"types":["map_gui::tools::navigate::CrossStreet"]},{"text":"impl<A: AppLike + 'static> State<A> for SearchBuildings","synthetic":false,"types":["map_gui::tools::navigate::SearchBuildings"]},{"text":"impl<A: AppLike + 'static> State<A> for TurnExplorer","synthetic":false,"types":["map_gui::tools::turn_explorer::TurnExplorer"]},{"text":"impl<A: AppLike + 'static, T: 'static> State<A> for ChooseSomething<A, T>","synthetic":false,"types":["map_gui::tools::ui::ChooseSomething"]},{"text":"impl<A: AppLike + 'static> State<A> for PromptInput<A>","synthetic":false,"types":["map_gui::tools::ui::PromptInput"]},{"text":"impl<A: AppLike> State<A> for PopupMsg","synthetic":false,"types":["map_gui::tools::ui::PopupMsg"]}]; diff --git a/rustdoc/map_model/edits/index.html b/rustdoc/map_model/edits/index.html index 482735bc0e..49379b3b14 100644 --- a/rustdoc/map_model/edits/index.html +++ b/rustdoc/map_model/edits/index.html @@ -1,9 +1,9 @@ -
Module map_model::edits [−][src]
Once a Map exists, the player can edit it in the UI (producing MapEdits
in-memory), then save
the changes to a file (as PermanentMapEdits
). See
-https://a-b-street.github.io/docs/map/edits.html.
Re-exports
pub use self::perma::PermanentMapEdits; |
Modules
compat | |
perma |
Structs
diff --git a/rustdoc/map_model/index.html b/rustdoc/map_model/index.html index ed8fb59b8c..f3c395a55b 100644 --- a/rustdoc/map_model/index.html +++ b/rustdoc/map_model/index.html @@ -7,7 +7,7 @@ inconvert_osm
and here.
- ch = contraction hierarchy, for speeding up pathfinding
- degenerate intersection = only has 2 roads connected, so why is it an intersection at all? -
- lc = lane-change (which is modelled very strangely: https://a-b-street.github.io/docs/trafficsim/discrete_event.html#lane-changing) +
- lc = lane-change (which is modelled very strangely: https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#lane-changing)
- ltr = left-to-right, the order of lanes for a road
- osm = OpenStreetMap
convert_osm
and here.
Modules
city | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
connectivity | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
edits | Once a Map exists, the player can edit it in the UI (producing | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
make | See https://a-b-street.github.io/docs/map/importing/index.html for an overview. This module +https://a-b-street.github.io/docs/tech/map/edits.html. + | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
make | See https://a-b-street.github.io/docs/tech/map/importing/index.html for an overview. This module covers the RawMap->Map stage. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
map | A bunch of (mostly read-only) queries on a Map. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
osm | Useful utilities for working with OpenStreetMap. diff --git a/rustdoc/map_model/make/index.html b/rustdoc/map_model/make/index.html index 4f6bf0ff46..552207c0de 100644 --- a/rustdoc/map_model/make/index.html +++ b/rustdoc/map_model/make/index.html @@ -1,12 +1,12 @@ -Module map_model:: |
pub use self::parking_lots::snap_driveway; |
Modules
bridges | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
buildings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collapse_intersections | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
initial | Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just -for the step of producing https://a-b-street.github.io/docs/map/importing/geometry.html. +for the step of producing https://a-b-street.github.io/docs/tech/map/importing/geometry.html. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
medians | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
merge_intersections | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
parking_lots | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
remove_disconnected | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
traffic_signals | The various traffic signal generators live in the traffic signal module. Eventually, we might want to move to a trait. For now, there’s a single make_traffic_signal static method in each generator file, which is called to generate a traffic signal of a particular flavor. diff --git a/rustdoc/map_model/make/initial/index.html b/rustdoc/map_model/make/initial/index.html index 53da3cb29c..3b7700ad9f 100644 --- a/rustdoc/map_model/make/initial/index.html +++ b/rustdoc/map_model/make/initial/index.html @@ -1,8 +1,8 @@ -Module map_model:: |
pub use self::geometry::intersection_polygon; |
Modules
geometry | OSM describes roads as center-lines that intersect. Turn these into road and intersection diff --git a/rustdoc/map_model/make/sidebar-items.js b/rustdoc/map_model/make/sidebar-items.js index 97c0b47c69..ab00d15b4f 100644 --- a/rustdoc/map_model/make/sidebar-items.js +++ b/rustdoc/map_model/make/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"fn":[["match_points_to_lanes","Snap points to an exact Position along the nearest lane. If the result doesn’t contain a requested point, then there was no matching lane close enough."],["trim_path","Adjust the path to start on the polygon’s border, not center."]],"mod":[["bridges",""],["buildings",""],["collapse_intersections",""],["initial","Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just for the step of producing https://a-b-street.github.io/docs/map/importing/geometry.html."],["medians",""],["merge_intersections",""],["parking_lots",""],["remove_disconnected",""],["traffic_signals","The various traffic signal generators live in the traffic signal module. Eventually, we might want to move to a trait. For now, there’s a single make_traffic_signal static method in each generator file, which is called to generate a traffic signal of a particular flavor."],["transit",""],["turns",""],["walking_turns",""]],"struct":[["RawToMapOptions","Options for converting RawMaps to Maps."]]}); \ No newline at end of file +initSidebarItems({"fn":[["match_points_to_lanes","Snap points to an exact Position along the nearest lane. If the result doesn’t contain a requested point, then there was no matching lane close enough."],["trim_path","Adjust the path to start on the polygon’s border, not center."]],"mod":[["bridges",""],["buildings",""],["collapse_intersections",""],["initial","Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just for the step of producing https://a-b-street.github.io/docs/tech/map/importing/geometry.html."],["medians",""],["merge_intersections",""],["parking_lots",""],["remove_disconnected",""],["traffic_signals","The various traffic signal generators live in the traffic signal module. Eventually, we might want to move to a trait. For now, there’s a single make_traffic_signal static method in each generator file, which is called to generate a traffic signal of a particular flavor."],["transit",""],["turns",""],["walking_turns",""]],"struct":[["RawToMapOptions","Options for converting RawMaps to Maps."]]}); \ No newline at end of file diff --git a/rustdoc/map_model/sidebar-items.js b/rustdoc/map_model/sidebar-items.js index a8112daa44..bf45319e53 100644 --- a/rustdoc/map_model/sidebar-items.js +++ b/rustdoc/map_model/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"constant":[["MAX_BIKE_SPEED",""],["MAX_WALKING_SPEED",""],["NORMAL_LANE_THICKNESS",""],["PARKING_LOT_SPOT_LENGTH","From some manually audited cases in Seattle, the length of parallel street parking spots is a bit different than the length in parking lots, so set a different value here."],["SIDEWALK_THICKNESS",""]],"enum":[["AmenityType","Businesses are categorized into one of these types."],["AreaType",""],["BuildingType",""],["Direction",""],["DrivingSide",""],["EditCmd",""],["EditIntersection",""],["IntersectionType",""],["LaneType",""],["OffstreetParking","Represent no parking as Private(0, false)."],["PathConstraints","Who’s asking for a path?"],["PathStep",""],["PathStepV2","One step along a path."],["StageType",""],["Traversable","Either a lane or a turn, where most movement happens."],["TurnPriority",""],["TurnType",""]],"mod":[["city",""],["connectivity",""],["edits","Once a Map exists, the player can edit it in the UI (producing `MapEdits` in-memory), then save the changes to a file (as `PermanentMapEdits`). See https://a-b-street.github.io/docs/map/edits.html."],["make","See https://a-b-street.github.io/docs/map/importing/index.html for an overview. This module covers the RawMap->Map stage."],["map","A bunch of (mostly read-only) queries on a Map."],["objects",""],["osm","Useful utilities for working with OpenStreetMap."],["pathfind","Everything related to pathfinding through a map for different types of agents."],["raw","The convert_osm crate produces a RawMap from OSM and other data. Storing this intermediate structure is useful to iterate quickly on parts of the map importing pipeline without having to constantly read .osm files, and to visualize the intermediate state with map_editor."],["traversable",""]],"struct":[["AccessRestrictions",""],["Amenity","A business located inside a building."],["Area","Areas are just used for drawing."],["AreaID",""],["Building","A building has connections to the road and sidewalk, may contain commercial amenities, and have off-street parking."],["BuildingID",""],["BusRoute",""],["BusRouteID",""],["BusStop",""],["BusStopID",""],["City","A single city (like Seattle) can be broken down into multiple boundary polygons (udistrict, ballard, downtown, etc). The load map screen uses this struct to display the entire city."],["CompressedMovementID","This is cheaper to store than a MovementID. It simply indexes into the list of movements."],["ControlStopSign",""],["ControlTrafficSignal","A traffic signal consists of a sequence of Stages that repeat in a cycle. Most Stages last for a fixed duration. During a single Stage, some movements are protected (can proceed with the highest priority), while others are permitted (have to yield before proceeding)."],["DirectedRoadID",""],["EditEffects",""],["EditRoad",""],["Intersection","An intersection connects roads. Most have >2 roads and are controlled by stop signs or traffic signals. Roads that lead to the boundary of the map end at border intersections, with only that one road attached."],["IntersectionCluster","This only applies to VehiclePathfinder; walking through these intersections is nothing special."],["IntersectionID",""],["Lane","A road segment is broken down into individual lanes, which have a LaneType."],["LaneID",""],["LaneSpec",""],["Map",""],["MapConfig",""],["MapEdits","Represents changes to a map. Note this isn’t serializable – that’s what `PermanentMapEdits` does."],["Movement","A Movement groups all turns from one road to another, letting traffic signals operate at a higher level of abstraction. This is used for pathfinding and traffic signals currently; other places focus instead on turns."],["MovementID","A movement is like a turn, but with less detail – it identifies a movement from one directed road to another. One road usually has 4 crosswalks, each a singleton Movement. We need all of the information here to keep each crosswalk separate."],["NamePerLanguage","None corresponds to the native name"],["ParkingLot","Parking lots have some fixed capacity for cars, and are connected to a sidewalk and road."],["ParkingLotID",""],["Path",""],["PathRequest",""],["PathV2","A path between two endpoints for a particular mode. This representation is immutable and doesn’t prescribe specific lanes and turns to follow."],["PermanentMapEdits","MapEdits are converted to this before serializing. Referencing things like LaneID in a Map won’t work if the basemap is rebuilt from new OSM data, so instead we use stabler OSM IDs that’re less likely to change."],["Position","Represents a specific point some distance along a lane."],["RawToMapOptions","Options for converting RawMaps to Maps."],["Road","A Road represents a segment between exactly two Intersections. It contains Lanes as children."],["RoadID",""],["RoadWithStopSign",""],["RoutingParams","Tuneable parameters for all types of routing."],["Stage",""],["Turn","A Turn leads from the end of one Lane to the start of another. (Except for pedestrians; sidewalks are bidirectional.)"],["TurnID","Turns are uniquely identified by their (src, dst) lanes and their parent intersection. Intersection is needed to distinguish crosswalks that exist at two ends of a sidewalk."],["UberTurn",""],["Zone","A contiguous set of roads with access restrictions. This is derived from all the map’s roads and kept cached for performance."]]}); \ No newline at end of file +initSidebarItems({"constant":[["MAX_BIKE_SPEED",""],["MAX_WALKING_SPEED",""],["NORMAL_LANE_THICKNESS",""],["PARKING_LOT_SPOT_LENGTH","From some manually audited cases in Seattle, the length of parallel street parking spots is a bit different than the length in parking lots, so set a different value here."],["SIDEWALK_THICKNESS",""]],"enum":[["AmenityType","Businesses are categorized into one of these types."],["AreaType",""],["BuildingType",""],["Direction",""],["DrivingSide",""],["EditCmd",""],["EditIntersection",""],["IntersectionType",""],["LaneType",""],["OffstreetParking","Represent no parking as Private(0, false)."],["PathConstraints","Who’s asking for a path?"],["PathStep",""],["PathStepV2","One step along a path."],["StageType",""],["Traversable","Either a lane or a turn, where most movement happens."],["TurnPriority",""],["TurnType",""]],"mod":[["city",""],["connectivity",""],["edits","Once a Map exists, the player can edit it in the UI (producing `MapEdits` in-memory), then save the changes to a file (as `PermanentMapEdits`). See https://a-b-street.github.io/docs/tech/map/edits.html."],["make","See https://a-b-street.github.io/docs/tech/map/importing/index.html for an overview. This module covers the RawMap->Map stage."],["map","A bunch of (mostly read-only) queries on a Map."],["objects",""],["osm","Useful utilities for working with OpenStreetMap."],["pathfind","Everything related to pathfinding through a map for different types of agents."],["raw","The convert_osm crate produces a RawMap from OSM and other data. Storing this intermediate structure is useful to iterate quickly on parts of the map importing pipeline without having to constantly read .osm files, and to visualize the intermediate state with map_editor."],["traversable",""]],"struct":[["AccessRestrictions",""],["Amenity","A business located inside a building."],["Area","Areas are just used for drawing."],["AreaID",""],["Building","A building has connections to the road and sidewalk, may contain commercial amenities, and have off-street parking."],["BuildingID",""],["BusRoute",""],["BusRouteID",""],["BusStop",""],["BusStopID",""],["City","A single city (like Seattle) can be broken down into multiple boundary polygons (udistrict, ballard, downtown, etc). The load map screen uses this struct to display the entire city."],["CompressedMovementID","This is cheaper to store than a MovementID. It simply indexes into the list of movements."],["ControlStopSign",""],["ControlTrafficSignal","A traffic signal consists of a sequence of Stages that repeat in a cycle. Most Stages last for a fixed duration. During a single Stage, some movements are protected (can proceed with the highest priority), while others are permitted (have to yield before proceeding)."],["DirectedRoadID",""],["EditEffects",""],["EditRoad",""],["Intersection","An intersection connects roads. Most have >2 roads and are controlled by stop signs or traffic signals. Roads that lead to the boundary of the map end at border intersections, with only that one road attached."],["IntersectionCluster","This only applies to VehiclePathfinder; walking through these intersections is nothing special."],["IntersectionID",""],["Lane","A road segment is broken down into individual lanes, which have a LaneType."],["LaneID",""],["LaneSpec",""],["Map",""],["MapConfig",""],["MapEdits","Represents changes to a map. Note this isn’t serializable – that’s what `PermanentMapEdits` does."],["Movement","A Movement groups all turns from one road to another, letting traffic signals operate at a higher level of abstraction. This is used for pathfinding and traffic signals currently; other places focus instead on turns."],["MovementID","A movement is like a turn, but with less detail – it identifies a movement from one directed road to another. One road usually has 4 crosswalks, each a singleton Movement. We need all of the information here to keep each crosswalk separate."],["NamePerLanguage","None corresponds to the native name"],["ParkingLot","Parking lots have some fixed capacity for cars, and are connected to a sidewalk and road."],["ParkingLotID",""],["Path",""],["PathRequest",""],["PathV2","A path between two endpoints for a particular mode. This representation is immutable and doesn’t prescribe specific lanes and turns to follow."],["PermanentMapEdits","MapEdits are converted to this before serializing. Referencing things like LaneID in a Map won’t work if the basemap is rebuilt from new OSM data, so instead we use stabler OSM IDs that’re less likely to change."],["Position","Represents a specific point some distance along a lane."],["RawToMapOptions","Options for converting RawMaps to Maps."],["Road","A Road represents a segment between exactly two Intersections. It contains Lanes as children."],["RoadID",""],["RoadWithStopSign",""],["RoutingParams","Tuneable parameters for all types of routing."],["Stage",""],["Turn","A Turn leads from the end of one Lane to the start of another. (Except for pedestrians; sidewalks are bidirectional.)"],["TurnID","Turns are uniquely identified by their (src, dst) lanes and their parent intersection. Intersection is needed to distinguish crosswalks that exist at two ends of a sidewalk."],["UberTurn",""],["Zone","A contiguous set of roads with access restrictions. This is derived from all the map’s roads and kept cached for performance."]]}); \ No newline at end of file diff --git a/rustdoc/sim/index.html b/rustdoc/sim/index.html index a14a32ae64..94ea09fd41 100644 --- a/rustdoc/sim/index.html +++ b/rustdoc/sim/index.html @@ -1,8 +1,8 @@ - Crate sim[−][src]The sim crate runs a traffic simulation on top of the map_model. See also -https://a-b-street.github.io/docs/trafficsim/index.html. +https://a-b-street.github.io/docs/tech/trafficsim/index.html.The simulation is very roughly layered into two pieces: the low-level “mechanics” of simulating individual agents over time, and higher-level systems like TripManager and TransitSimState that glue together individual goals executed by the agents. @@ -13,7 +13,7 @@ are not currently modelled)Modules
Modules
Enums-
Functions
Struct sim:: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Person | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trip | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TripInfo | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TripManager | Manages people, each of which executes some trips through the day. Each trip is further broken down into legs – for example, a driving trip might start with somebody walking to their car, driving somewhere, parking, and then walking to their final destination. -https://a-b-street.github.io/docs/trafficsim/trips.html describes some of the variations. +https://a-b-street.github.io/tech/docs/trafficsim/trips.html describes some of the variations. |
PersonState | |
TripLeg | These don’t specify where the leg starts, since it might be unknown – like when we drive and don’t know where we’ll wind up parking. diff --git a/rustdoc/sim/trips/sidebar-items.js b/rustdoc/sim/trips/sidebar-items.js index a4b414bec0..414d5d4c33 100644 --- a/rustdoc/sim/trips/sidebar-items.js +++ b/rustdoc/sim/trips/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"enum":[["PersonState",""],["TripLeg","These don’t specify where the leg starts, since it might be unknown – like when we drive and don’t know where we’ll wind up parking."],["TripMode",""],["TripResult",""]],"struct":[["CommutersVehiclesCounts","The number of active vehicles and commuters, broken into different categories."],["Person",""],["Trip",""],["TripInfo",""],["TripManager","Manages people, each of which executes some trips through the day. Each trip is further broken down into legs – for example, a driving trip might start with somebody walking to their car, driving somewhere, parking, and then walking to their final destination. https://a-b-street.github.io/docs/trafficsim/trips.html describes some of the variations."]]}); \ No newline at end of file +initSidebarItems({"enum":[["PersonState",""],["TripLeg","These don’t specify where the leg starts, since it might be unknown – like when we drive and don’t know where we’ll wind up parking."],["TripMode",""],["TripResult",""]],"struct":[["CommutersVehiclesCounts","The number of active vehicles and commuters, broken into different categories."],["Person",""],["Trip",""],["TripInfo",""],["TripManager","Manages people, each of which executes some trips through the day. Each trip is further broken down into legs – for example, a driving trip might start with somebody walking to their car, driving somewhere, parking, and then walking to their final destination. https://a-b-street.github.io/tech/docs/trafficsim/trips.html describes some of the variations."]]}); \ No newline at end of file diff --git a/rustdoc/sim/trips/struct.TripManager.html b/rustdoc/sim/trips/struct.TripManager.html index 6419404e52..42015e4940 100644 --- a/rustdoc/sim/trips/struct.TripManager.html +++ b/rustdoc/sim/trips/struct.TripManager.html @@ -1,4 +1,4 @@ -Struct sim:: |