Skip to main content

rust_robotics_planning/experiments/moving_ai_runtime/
first_scenario.rs

1use super::{RuntimeAggregationVariant, VariantDescriptor};
2
3#[derive(Debug, Default)]
4pub struct FirstScenarioRuntimeAggregation;
5
6impl FirstScenarioRuntimeAggregation {
7    pub fn new() -> Self {
8        Self
9    }
10}
11
12impl RuntimeAggregationVariant for FirstScenarioRuntimeAggregation {
13    fn descriptor(&self) -> VariantDescriptor {
14        VariantDescriptor {
15            id: "first-scenario",
16            design_style: "direct-imperative",
17            source_path: concat!(
18                env!("CARGO_MANIFEST_DIR"),
19                "/src/experiments/moving_ai_runtime/first_scenario.rs"
20            ),
21            knob_count: 0,
22            reports_dispersion: false,
23        }
24    }
25
26    fn selected_slots(&self, total_scenarios: usize) -> Vec<usize> {
27        if total_scenarios == 0 {
28            Vec::new()
29        } else {
30            vec![0]
31        }
32    }
33}