hydr_structures/structures/control/definition.rs
1//! Immutable original sampled-relay definitions.
2
3use super::{ControlCommand, ControlStageSignal};
4
5/// Explicit two-threshold sampled qualification model for one actual device.
6#[derive(Clone, Debug, PartialEq)]
7pub struct OperatingControlDefinition {
8 /// Unique controller identity.
9 pub controller_id: String,
10 /// Unique actual controlled structure identity.
11 pub structure_id: String,
12 /// Explicit external observation support.
13 pub signal: ControlStageSignal,
14 /// Inclusive stage threshold for leaving the high latch, in metres.
15 pub lower_stage_m: f64,
16 /// Inclusive stage threshold for leaving the low latch, in metres.
17 pub upper_stage_m: f64,
18 /// Required sampled high qualification duration in seconds.
19 pub high_qualification_delay_s: f64,
20 /// Required sampled low qualification duration in seconds.
21 pub low_qualification_delay_s: f64,
22 /// Original low-latch command.
23 pub low_command: ControlCommand,
24 /// Original high-latch command.
25 pub high_command: ControlCommand,
26 /// Source and physical operating-envelope evidence.
27 pub provenance: String,
28}