Struct sim::router::Router [−][src]
Fields
path: Path
Front is always the current step
goal: Goal
owner: CarID
Implementations
impl Router
[src]
impl Router
[src]pub fn end_at_border(
owner: CarID,
path: Path,
end_dist: Distance,
i: IntersectionID
) -> Router
[src]
owner: CarID,
path: Path,
end_dist: Distance,
i: IntersectionID
) -> Router
pub fn vanish_bus(owner: CarID, start: Position, map: &Map) -> Router
[src]
pub fn park_near(owner: CarID, path: Path, bldg: BuildingID) -> Router
[src]
pub fn bike_then_stop(owner: CarID, path: Path, goal: SidewalkSpot) -> Router
[src]
pub fn follow_bus_route(owner: CarID, path: Path) -> Router
[src]
pub fn head(&self) -> Traversable
[src]
pub fn next(&self) -> Traversable
[src]
pub fn maybe_next(&self) -> Option<Traversable>
[src]
pub fn last_step(&self) -> bool
[src]
pub fn get_end_dist(&self) -> Distance
[src]
pub fn get_path(&self) -> &Path
[src]
pub fn advance(
&mut self,
vehicle: &Vehicle,
parking: &ParkingSimState,
map: &Map,
trip_and_person: Option<(TripID, PersonID)>,
events: &mut Vec<Event>
) -> Traversable
[src]
&mut self,
vehicle: &Vehicle,
parking: &ParkingSimState,
map: &Map,
trip_and_person: Option<(TripID, PersonID)>,
events: &mut Vec<Event>
) -> Traversable
Returns the step just finished
pub fn maybe_handle_end(
&mut self,
front: Distance,
vehicle: &Vehicle,
parking: &ParkingSimState,
map: &Map,
trip_and_person: Option<(TripID, PersonID)>,
events: &mut Vec<Event>
) -> Option<ActionAtEnd>
[src]
&mut self,
front: Distance,
vehicle: &Vehicle,
parking: &ParkingSimState,
map: &Map,
trip_and_person: Option<(TripID, PersonID)>,
events: &mut Vec<Event>
) -> Option<ActionAtEnd>
Called when the car is Queued at the last step, or when they initially advance to the last step.
pub fn opportunistically_lanechange(
&mut self,
queues: &HashMap<Traversable, Queue>,
map: &Map,
handle_uber_turns: bool
)
[src]
&mut self,
queues: &HashMap<Traversable, Queue>,
map: &Map,
handle_uber_turns: bool
)
pub fn is_parking(&self) -> bool
[src]
pub fn get_parking_spot_goal(&self) -> Option<&ParkingSpot>
[src]
Trait Implementations
impl<'de> Deserialize<'de> for Router
[src]
impl<'de> Deserialize<'de> for Router
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Router
[src]
Auto Trait Implementations
impl RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnwindSafe for Router
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,