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))
def execute(self): ##################################### # # # REFERENCE IMPLEMENTATION # # # ##################################### recordDone = Record(ProcCMD(None, bStop=True), 'Sending Stop command') self.return_queue.put(recordDone)
def stop(self): logging.debug( 'ProcessHandler::stop() - id: 0x{:08x}, ident: {:04d}'.format( self.element['Id'], self.identifier)) self.cmd_queue.put(ProcCMD(True))
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))