예제 #1
0
 def feed(self, data):
     logging.debug(
         'ProcessHandler::feed() - id: 0x{:08x}, ident: {:04d}'.format(
             self.element['Id'], self.identifier))
     """
     if isinstance(data, ProcCMD):
         self.cmd_queue.put(data)
     else:
     """
     self.cmd_queue.put(ProcCMD(data))
예제 #2
0
    def execute(self):


        #####################################
        #                                   #
        #     REFERENCE IMPLEMENTATION      #
        #                                   #
        #####################################

        recordDone = Record(ProcCMD(None, bStop=True), 'Sending Stop command')     
        self.return_queue.put(recordDone)
예제 #3
0
 def stop(self):
     logging.debug(
         'ProcessHandler::stop() - id: 0x{:08x}, ident: {:04d}'.format(
             self.element['Id'], self.identifier))
     self.cmd_queue.put(ProcCMD(True))
예제 #4
0
 def feed(self, data):
     logging.debug(
         'ProcessHandler::feed() - id: 0x{:08x}, ident: {:04d}'.format(
             self.element['Id'], self.identifier))
     self.cmd_queue.put(ProcCMD(data))