[−][src]Constant game::pregame::built_info::BUILT_TIME_UTC
pub const BUILT_TIME_UTC: &str = "Tue, 12 Jan 2021 20:00:46 +0000";
[−][src]Constant game::pregame::built_info::BUILT_TIME_UTC
pub const BUILT_TIME_UTC: &str = "Tue, 12 Jan 2021 20:23:16 +0000";
The built-time in RFC2822, UTC
[−][src]Module sim::mechanics::driving
Structs
+[−][src]Module sim::mechanics::driving
Structs
DrivingSimState | Simulates vehicles! |
Constants
BLIND_RETRY_TO_CREEP_FORWARDS | |
BLIND_RETRY_TO_REACH_END_DIST | |
TIME_TO_WAIT_AT_BUS_STOP |
fn update_car_without_distances(
&mut self,
car: &mut Car,
now: Time,
ctx: &mut Ctx<'_>,
transit: &mut TransitSimState
) -> bool
[src]
&mut self,
car: &mut Car,
now: Time,
ctx: &mut Ctx<'_>,
transit: &mut TransitSimState
) -> bool
fn update_car_with_distances(
&mut self,
car: &mut Car,
dists: &Vec<(CarID, Distance)>,
idx: usize,
now: Time,
ctx: &mut Ctx<'_>,
trips: &mut TripManager,
transit: &mut TransitSimState,
walking: &mut WalkingSimState
) -> bool
[src]
&mut self,
car: &mut Car,
dists: &Vec<(CarID, Distance)>,
idx: usize,
now: Time,
ctx: &mut Ctx<'_>,
trips: &mut TripManager,
transit: &mut TransitSimState,
walking: &mut WalkingSimState
) -> bool
pub fn delete_car(&mut self, c: CarID, now: Time, ctx: &mut Ctx<'_>) -> Vehicle
[src]
Abruptly remove a vehicle from the simulation. They may be in any arbitrary state, like in the middle of a turn or parking.
-fn delete_car_internal(
&mut self,
car: &mut Car,
dists: Vec<(CarID, Distance)>,
idx: usize,
now: Time,
ctx: &mut Ctx<'_>
)
[src]
&mut self,
car: &mut Car,
dists: Vec<(CarID, Distance)>,
idx: usize,
now: Time,
ctx: &mut Ctx<'_>
)
pub fn update_laggy_head(&mut self, id: CarID, now: Time, ctx: &mut Ctx<'_>)
[src]
fn trim_last_steps(
&mut self,
car: &mut Car,
now: Time,
n: usize,
ctx: &mut Ctx<'_>
)
[src]
&mut self,
car: &mut Car,
now: Time,
n: usize,
ctx: &mut Ctx<'_>
)
pub fn collect_events(&mut self) -> Vec<Event>
[src]
pub fn handle_live_edits(&mut self, map: &Map)
[src]
impl DrivingSimState
[src]
pub fn get_unzoomed_agents(&self, now: Time, map: &Map) -> Vec<UnzoomedAgent>
[src]
Note the ordering of results is non-deterministic!
+fn delete_car_internal(
&mut self,
car: &mut Car,
dists: Vec<(CarID, Distance)>,
idx: usize,
now: Time,
ctx: &mut Ctx<'_>
)
[src]
&mut self,
car: &mut Car,
dists: Vec<(CarID, Distance)>,
idx: usize,
now: Time,
ctx: &mut Ctx<'_>
)
pub fn update_laggy_head(&mut self, id: CarID, now: Time, ctx: &mut Ctx<'_>)
[src]
fn trim_last_steps(
&mut self,
car: &mut Car,
now: Time,
n: usize,
ctx: &mut Ctx<'_>
)
[src]
&mut self,
car: &mut Car,
now: Time,
n: usize,
ctx: &mut Ctx<'_>
)
pub fn collect_events(&mut self) -> Vec<Event>
[src]
pub fn handle_live_edits(&mut self, map: &Map)
[src]
impl DrivingSimState
[src]
pub fn get_unzoomed_agents(&self, now: Time, map: &Map) -> Vec<UnzoomedAgent>
[src]
Note the ordering of results is non-deterministic!
pub fn does_car_exist(&self, id: CarID) -> bool
[src]
pub fn get_all_draw_cars(
&self,
now: Time,
map: &Map,
transit: &TransitSimState
) -> Vec<DrawCarInput>
[src]
&self,
now: Time,
map: &Map,
transit: &TransitSimState
) -> Vec<DrawCarInput>
Note the ordering of results is non-deterministic!
pub fn get_single_draw_car(
&self,
id: CarID,
now: Time,
map: &Map,
transit: &TransitSimState
) -> Option<DrawCarInput>
[src]
&self,
id: CarID,
now: Time,
map: &Map,
transit: &TransitSimState
) -> Option<DrawCarInput>
This is about as expensive as get_draw_cars_on.
-pub fn get_draw_cars_on(
&self,
now: Time,
on: Traversable,
map: &Map,
transit: &TransitSimState
) -> Vec<DrawCarInput>
[src]
&self,
now: Time,
on: Traversable,
map: &Map,
transit: &TransitSimState
) -> Vec<DrawCarInput>
pub fn debug_car(&self, id: CarID)
[src]
pub fn debug_lane(&self, id: LaneID)
[src]
pub fn agent_properties(&self, id: CarID, now: Time) -> AgentProperties
[src]
pub fn get_path(&self, id: CarID) -> Option<&Path>
[src]
pub fn get_all_driving_paths(&self) -> Vec<&Path>
[src]
pub fn trace_route(&self, now: Time, id: CarID, map: &Map) -> Option<PolyLine>
[src]
pub fn percent_along_route(&self, id: CarID) -> f64
[src]
pub fn get_owner_of_car(&self, id: CarID) -> Option<PersonID>
[src]
pub fn target_lane_penalty(&self, l: LaneID) -> (usize, usize)
[src]
pub fn find_trips_to_edited_parking(
&self,
spots: BTreeSet<ParkingSpot>
) -> Vec<(AgentID, TripID)>
[src]
&self,
spots: BTreeSet<ParkingSpot>
) -> Vec<(AgentID, TripID)>
pub fn find_vehicles_affected_by_live_edits(
&self,
closed_intersections: &HashSet<IntersectionID>,
edited_lanes: &BTreeSet<LaneID>
) -> Vec<(AgentID, TripID)>
[src]
&self,
closed_intersections: &HashSet<IntersectionID>,
edited_lanes: &BTreeSet<LaneID>
) -> Vec<(AgentID, TripID)>
Finds vehicles that're laggy heads on affected parts of the map.
-pub fn all_waiting_people(
&self,
now: Time,
delays: &mut BTreeMap<PersonID, Duration>
)
[src]
&self,
now: Time,
delays: &mut BTreeMap<PersonID, Duration>
)
pub fn debug_queue_lengths(&self, l: LaneID) -> Option<(Distance, Distance)>
[src]
pub fn get_blocked_by_graph(
&self,
now: Time,
map: &Map,
intersections: &IntersectionSimState
) -> BTreeMap<AgentID, (Duration, DelayCause)>
[src]
&self,
now: Time,
map: &Map,
intersections: &IntersectionSimState
) -> BTreeMap<AgentID, (Duration, DelayCause)>
fn get_car_front(&self, now: Time, car: &Car) -> Distance
[src]
Trait Implementations
impl Clone for DrivingSimState
[src]
fn clone(&self) -> DrivingSimState
[src]
pub fn get_draw_cars_on(
&self,
now: Time,
on: Traversable,
map: &Map,
transit: &TransitSimState
) -> Vec<DrawCarInput>
[src]
&self,
now: Time,
on: Traversable,
map: &Map,
transit: &TransitSimState
) -> Vec<DrawCarInput>
pub fn debug_car(&self, id: CarID)
[src]
pub fn debug_lane(&self, id: LaneID)
[src]
pub fn agent_properties(&self, id: CarID, now: Time) -> AgentProperties
[src]
pub fn get_path(&self, id: CarID) -> Option<&Path>
[src]
pub fn get_all_driving_paths(&self) -> Vec<&Path>
[src]
pub fn trace_route(&self, now: Time, id: CarID, map: &Map) -> Option<PolyLine>
[src]
pub fn percent_along_route(&self, id: CarID) -> f64
[src]
pub fn get_owner_of_car(&self, id: CarID) -> Option<PersonID>
[src]
pub fn target_lane_penalty(&self, l: LaneID) -> (usize, usize)
[src]
pub fn find_trips_to_edited_parking(
&self,
spots: BTreeSet<ParkingSpot>
) -> Vec<(AgentID, TripID)>
[src]
&self,
spots: BTreeSet<ParkingSpot>
) -> Vec<(AgentID, TripID)>
pub fn find_vehicles_affected_by_live_edits(
&self,
closed_intersections: &HashSet<IntersectionID>,
edited_lanes: &BTreeSet<LaneID>
) -> Vec<(AgentID, TripID)>
[src]
&self,
closed_intersections: &HashSet<IntersectionID>,
edited_lanes: &BTreeSet<LaneID>
) -> Vec<(AgentID, TripID)>
Finds vehicles that're laggy heads on affected parts of the map.
+pub fn all_waiting_people(
&self,
now: Time,
delays: &mut BTreeMap<PersonID, Duration>
)
[src]
&self,
now: Time,
delays: &mut BTreeMap<PersonID, Duration>
)
pub fn debug_queue_lengths(&self, l: LaneID) -> Option<(Distance, Distance)>
[src]
pub fn get_blocked_by_graph(
&self,
now: Time,
map: &Map,
intersections: &IntersectionSimState
) -> BTreeMap<AgentID, (Duration, DelayCause)>
[src]
&self,
now: Time,
map: &Map,
intersections: &IntersectionSimState
) -> BTreeMap<AgentID, (Duration, DelayCause)>
fn get_car_front(&self, now: Time, car: &Car) -> Distance
[src]
Trait Implementations
impl Clone for DrivingSimState
[src]
fn clone(&self) -> DrivingSimState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for DrivingSimState
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DrivingSimState
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Display for CarID
[src]
impl Eq for CarID
[src]
impl Hash for CarID
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,