Struct sim::make::generator::ScenarioGenerator [−][src]
pub struct ScenarioGenerator { pub scenario_name: String, pub only_seed_buses: Option<BTreeSet<String>>, pub spawn_over_time: Vec<SpawnOverTime>, pub border_spawn_over_time: Vec<BorderSpawnOverTime>, }
Fields
scenario_name: String
only_seed_buses: Option<BTreeSet<String>>
spawn_over_time: Vec<SpawnOverTime>
border_spawn_over_time: Vec<BorderSpawnOverTime>
Implementations
impl ScenarioGenerator
[src]
impl ScenarioGenerator
[src]pub fn proletariat_robot(
map: &Map,
rng: &mut XorShiftRng,
timer: &mut Timer<'_>
) -> Scenario
[src]
map: &Map,
rng: &mut XorShiftRng,
timer: &mut Timer<'_>
) -> Scenario
Designed in https://github.com/a-b-street/abstreet/issues/154
impl ScenarioGenerator
[src]
impl ScenarioGenerator
[src]pub fn generate(
&self,
map: &Map,
rng: &mut XorShiftRng,
timer: &mut Timer<'_>
) -> Scenario
[src]
&self,
map: &Map,
rng: &mut XorShiftRng,
timer: &mut Timer<'_>
) -> Scenario
pub fn small_run(map: &Map) -> ScenarioGenerator
[src]
pub fn empty(name: &str) -> ScenarioGenerator
[src]
Trait Implementations
impl Clone for ScenarioGenerator
[src]
impl Clone for ScenarioGenerator
[src]fn clone(&self) -> ScenarioGenerator
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for ScenarioGenerator
[src]
impl<'de> Deserialize<'de> for ScenarioGenerator
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ScenarioGenerator
[src]
impl Serialize for ScenarioGenerator
[src]Auto Trait Implementations
impl RefUnwindSafe for ScenarioGenerator
impl Send for ScenarioGenerator
impl Sync for ScenarioGenerator
impl Unpin for ScenarioGenerator
impl UnwindSafe for ScenarioGenerator
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>,