pub struct ChangeOfStateDetector {
pub alarm_values: Vec<u32>,
pub notification_class: u32,
pub notify_type: u32,
pub event_enable: u8,
pub time_delay: u32,
pub time_delay_normal: Option<u32>,
pub event_state: EventState,
pub acked_transitions: u8,
pub pending: Option<PendingTransition>,
pub fault_reliability: Option<u32>,
}Expand description
CHANGE_OF_STATE event detector for binary and multi-state objects.
Transitions to OFFNORMAL when the monitored value
matches any value in the alarm_values list. Returns to NORMAL when
the value no longer matches any alarm value.
Time_Delay is honored via the split Self::probe / Self::tick
entry points; see OutOfRangeDetector for the delay contract.
Fields§
§alarm_values: Vec<u32>Values that trigger an OFFNORMAL state.
notification_class: u32§notify_type: u32§event_enable: u8§time_delay: u32§time_delay_normal: Option<u32>Time_Delay_Normal (property 356): the Clause 13.3.2 pTimeDelayNormal
parameter — seconds that Normal conditions must persist before a
NORMAL event state is indicated. None is the not-configured case
and takes on time_delay: “If no value is available for this
parameter, then it takes on the value of the pTimeDelay parameter.”
event_state: EventState§acked_transitions: u8§pending: Option<PendingTransition>Pending delayed transition, or None when no delay is in progress.
fault_reliability: Option<u32>Reliability value in force at the last entry to FAULT; None outside FAULT.
Implementations§
Source§impl ChangeOfStateDetector
impl ChangeOfStateDetector
Sourcepub const ALGORITHM: EventType = EventType::CHANGE_OF_STATE
pub const ALGORITHM: EventType = EventType::CHANGE_OF_STATE
BACnet Event Type corresponding to this detector’s event algorithm.
Sourcepub fn evaluate(
&mut self,
present_value: u32,
reliability: u32,
) -> Option<TransitionOutcome>
pub fn evaluate( &mut self, present_value: u32, reliability: u32, ) -> Option<TransitionOutcome>
Per-write entry point; see OutOfRangeDetector::evaluate.
Trait Implementations§
Source§impl Clone for ChangeOfStateDetector
impl Clone for ChangeOfStateDetector
Source§fn clone(&self) -> ChangeOfStateDetector
fn clone(&self) -> ChangeOfStateDetector
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more