hydr_structures/structures/control/schedule.rs
1//! Original finite control support and explicit sampled timing policy.
2
3/// Complete original decision schedule without implicit extension.
4#[derive(Clone, Debug, PartialEq)]
5pub struct ControlDecisionSchedule {
6 /// Nonnegative accepted start in seconds.
7 pub initial_time_s: f64,
8 /// Strictly increasing decisions after the start, at or before the horizon.
9 pub decision_times_s: Vec<f64>,
10 /// Inclusive finite support horizon in seconds.
11 pub end_s: f64,
12}
13/// Caller-declared sampled applicability and timing bounds.
14#[derive(Clone, Debug, PartialEq)]
15pub struct SampledControlTiming {
16 /// Maximum exact observation/decision spacing in seconds.
17 pub maximum_decision_gap_s: f64,
18 /// Maximum qualification-expiry lateness in seconds.
19 pub maximum_timer_lateness_s: f64,
20 /// Evidence that this sampled policy fits the intended use.
21 pub sampled_applicability: String,
22}
23/// Next original decision, terminal boundary, or both.
24#[derive(Clone, Copy, Debug, PartialEq)]
25pub struct ControlEvent {
26 /// Original event time in seconds.
27 pub time_s: f64,
28 /// Original decision index, absent at a separate terminal boundary.
29 pub decision_index: Option<usize>,
30 /// Event equals the declared support horizon.
31 pub terminal: bool,
32}