Example #1
0
 private void process_event_report(DataApdu data, EventReportArgumentSimple event) {
   // (A.10.3 EVENT REPORT service)
   if (event.getObj_handle().getValue().getValue().intValue() == 0) {
     // obj-handle is 0 to represent the MDS
     process_MDS_Object_Event(event);
     this.state_handler.send(MessageFactory.PrstTypeResponse(data, state_handler.getMDS()));
   } else {
     switch (event.getEvent_type().getValue().getValue().intValue()) {
         // Episodic configurable scanner object events:
       case Nomenclature.MDC_NOTI_UNBUF_SCAN_REPORT_VAR:
       case Nomenclature.MDC_NOTI_UNBUF_SCAN_REPORT_FIXED:
       case Nomenclature.MDC_NOTI_UNBUF_SCAN_REPORT_GROUPED:
       case Nomenclature.MDC_NOTI_UNBUF_SCAN_REPORT_MP_VAR:
       case Nomenclature.MDC_NOTI_UNBUF_SCAN_REPORT_MP_FIXED:
       case Nomenclature.MDC_NOTI_UNBUF_SCAN_REPORT_MP_GROUPED:
         processUnbufScannerEvent(event);
         this.state_handler.send(MessageFactory.PrstTypeResponse(data, state_handler.getMDS()));
         break;
         // Periodic configurable scanner object events:
       case Nomenclature.MDC_NOTI_BUF_SCAN_REPORT_VAR:
       case Nomenclature.MDC_NOTI_BUF_SCAN_REPORT_FIXED:
       case Nomenclature.MDC_NOTI_BUF_SCAN_REPORT_GROUPED:
       case Nomenclature.MDC_NOTI_BUF_SCAN_REPORT_MP_VAR:
       case Nomenclature.MDC_NOTI_BUF_SCAN_REPORT_MP_FIXED:
       case Nomenclature.MDC_NOTI_BUF_SCAN_REPORT_MP_GROUPED:
         processBufScannerEvent(event);
         this.state_handler.send(MessageFactory.PrstTypeResponse(data, state_handler.getMDS()));
         break;
       default:
         // TODO: handle representing a scanner or PM-store object.
         Logging.error(
             "Warning: Received Handle="
                 + event.getObj_handle().getValue().getValue()
                 + " in Operating state. Ignore.");
     }
   }
 }
Example #2
0
 private void roiv_cmip_get(DataApdu data) {
   state_handler.send(MessageFactory.PrstTypeResponse(data, state_handler.getMDS()));
 }