Expand description
Clause 21 codecs for BACnetCalendarEntry and BACnetDateRange.
A calendar entry is the element of the Calendar object’s Date_List
(Clause 12.9) and the inline period of a Schedule BACnetSpecialEvent
(Clause 12.24). It is a CHOICE whose alternatives carry their own context
tags:
| Alternative | Tag | Encoding |
|---|---|---|
| date | [0] | primitive, the four Date octets |
| date-range | [1] | opening/closing pair around a BACnetDateRange |
| weekNDay | [2] | primitive, the three BACnetWeekNDay octets |
BACnetDateRange is a SEQUENCE of two untagged Dates, so each is
application-tagged: start date, then end date. Unframed, as a Schedule’s
Effective_Period carries it, that pair is the whole encoding. A BACnetLIST
of calendar entries is the plain concatenation of its elements.
Functions§
- decode_
calendar_ entry - Decode one
BACnetCalendarEntryatoffset. - decode_
calendar_ entry_ list - Decode a complete BACnetLIST of
BACnetCalendarEntry. - decode_
date_ range - Decode one unframed
BACnetDateRangeatoffset. - encode_
calendar_ entry - Encode one
BACnetCalendarEntryunder its CHOICE tag. - encode_
calendar_ entry_ list - Encode a BACnetLIST of
BACnetCalendarEntryas concatenated elements. - encode_
date_ range - Encode one unframed
BACnetDateRange: its start and end application Dates.