public void ASN1encode(EncodeBuffer buffer) { ASN1.bacapp_encode_application_data(buffer, new BacnetValue(WeekofDay)); ASN1.bacapp_encode_application_data(buffer, new BacnetValue(BacnetApplicationTags.BACNET_APPLICATION_TAG_TIME, fromTime)); ASN1.bacapp_encode_application_data(buffer, new BacnetValue(BacnetApplicationTags.BACNET_APPLICATION_TAG_TIME, toTime)); if (adr != null) { adr.ASN1encode(buffer); } else { ASN1.encode_context_object_id(buffer, 0, Id.type, Id.instance); // BacnetObjectId is context specific encoded } ASN1.bacapp_encode_application_data(buffer, new BacnetValue(processIdentifier)); ASN1.bacapp_encode_application_data(buffer, new BacnetValue(Ack_Required)); ASN1.bacapp_encode_application_data(buffer, new BacnetValue(evenType)); }