Skip to main content

hydr_structures/structures/
operation.rs

1//! Explicit identity-bound passive, pump, and gate operation packets.
2
3/// Original operation held during a constitutive proposal.
4#[derive(Clone, Copy, Debug, PartialEq)]
5pub enum StructureOperatingPoint {
6    /// No active device operation applies to a passive law.
7    Passive,
8    /// Explicitly isolated against forward siphoning and reverse flow.
9    PumpStoppedIsolated,
10    /// Running at an explicit positive supported speed ratio.
11    PumpRunning {
12        /// Original ratio to the supplied reference speed.
13        speed_ratio: f64,
14    },
15    /// Original aperture height held during the instantaneous gate proposal.
16    GateOpening {
17        /// Finite relative opening within the gate's declared closed range, in metres.
18        opening_m: f64,
19    },
20}
21/// Complete ordered identity-bound operation, without implicit stopped/running defaults.
22#[derive(Clone, Debug, PartialEq)]
23pub struct StructureOperation {
24    /// Exact immutable structure identity.
25    pub structure_id: String,
26    /// Original passive or explicit device operation.
27    pub operating_point: StructureOperatingPoint,
28}