pub struct SimpleControl {
pub link: usize,
pub trigger_type: TriggerType,
pub trigger_time: Option<f64>,
pub trigger_node: Option<usize>,
pub trigger_grade: Option<f64>,
pub action_status: Option<LinkStatus>,
pub action_setting: Option<f64>,
pub enabled: bool,
}Expand description
A simple control that fires at most once per hydraulic time step (§2.8.1).
Fields§
§link: usize1-based link index.
trigger_type: TriggerTypeWhat kind of event triggers this control.
trigger_time: Option<f64>Absolute simulation time (s) for Timer; seconds from midnight for TimeOfDay.
trigger_node: Option<usize>1-based node index; used for HiLevel/LowLevel.
trigger_grade: Option<f64>Hydraulic grade threshold (m); used for HiLevel/LowLevel.
action_status: Option<LinkStatus>Target status; None if only a setting change is intended.
action_setting: Option<f64>Target setting value; None if only a status change is intended.
enabled: boolWhether this control is active; disabled controls are never evaluated.
Trait Implementations§
Source§impl Clone for SimpleControl
impl Clone for SimpleControl
Source§fn clone(&self) -> SimpleControl
fn clone(&self) -> SimpleControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SimpleControl
impl RefUnwindSafe for SimpleControl
impl Send for SimpleControl
impl Sync for SimpleControl
impl Unpin for SimpleControl
impl UnsafeUnpin for SimpleControl
impl UnwindSafe for SimpleControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more