pub enum EventTransition {
ToOffnormal,
ToFault,
ToNormal,
}Expand description
Event transition category per ASHRAE 135-2020 Clause 13.2.5.
Variants§
ToOffnormal
Transition to an off-normal state (OFFNORMAL, HIGH_LIMIT, LOW_LIMIT, etc.).
ToFault
Transition to FAULT.
ToNormal
Transition to NORMAL.
Implementations§
Source§impl EventTransition
impl EventTransition
Sourcepub fn for_target_state(state: EventState) -> Self
pub fn for_target_state(state: EventState) -> Self
Classify a destination event state under ASHRAE 135-2020 Clause 13.2.
NORMAL and FAULT are the only states outside the offnormal category, as also specified by Clause 13.2.2.1.2. Therefore the residual case is deliberately TO_OFFNORMAL, not TO_FAULT.
Sourcepub fn bit_mask(self) -> EventTransitionBits
pub fn bit_mask(self) -> EventTransitionBits
This transition’s flag in a BACnetEventTransitionBits value, such as
Event_Enable, Acked_Transitions, Ack_Required or a
BACnetDestination’s transitions.
Sourcepub fn index(self) -> usize
pub fn index(self) -> usize
Positional index into the NotificationClass PRIORITY array, ordered
[TO_OFFNORMAL, TO_FAULT, TO_NORMAL]. ACK_REQUIRED is a bit string:
test it with EventTransition::bit_mask.