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 retains the sample
from a NORMAL indication for subsequent comparisons until the next
NORMAL indication replaces it. Initialization before that first
indication is implementation-defined: here it is None until the
first sample, which establishes a baseline without a transition.
last_offnormal_value: Option<u64>Domain-tagged identity of the monitored value behind the most recent OFFNORMAL transition. 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.