pub struct EventEnrollmentEvalState {
pub pending: Option<EventEnrollmentPending>,
pub cov_baseline: Option<PropertyValue>,
pub last_offnormal_value: Option<u64>,
}Expand description
Algorithm-side evaluation state owned by an Event Enrollment object.
Not BACnet properties: none of the three slots maps to a Clause 12.12
property (nor to the Table 12-14 Time_Delay_Normal, which is
configuration and lives on the object directly). Clause 13.3 assigns the
baseline’s initialization and the countdown’s existence to local matters,
so they are reachable only through the internal trait channel
(BACnetObject::enrollment_eval_state_internal /
BACnetObject::set_enrollment_eval_state_internal),
mirroring the set_event_state_internal precedent (issue #130).
Fields§
§pending: Option<EventEnrollmentPending>Delayed transition in flight, if any.
cov_baseline: Option<PropertyValue>CHANGE_OF_VALUE detection baseline (Clause 13.3.3: “the value of the
monitored value when a transition to NORMAL is indicated shall be used
in evaluation of the conditions until the next transition to NORMAL is
indicated”). None before the first sample; the first observed value
initializes it without indicating a transition (“the initialization of
the value used in evaluation before the first transition to NORMAL is
indicated is a local matter” — the policy chosen here).
last_offnormal_value: Option<u64>Domain-tagged identity of the monitored value that caused the last transition to OFFNORMAL. CHANGE_OF_STATE condition (c) requires a re-indication only for a different alarm value; retaining the BACnet datatype keeps equal numeric values from different domains distinct.
Trait Implementations§
Source§impl Clone for EventEnrollmentEvalState
impl Clone for EventEnrollmentEvalState
Source§fn clone(&self) -> EventEnrollmentEvalState
fn clone(&self) -> EventEnrollmentEvalState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more