def __init__(self, bus, header, buf): RxPacket.__init__(self, header) self.busEvt = ObusBusEvent.decode(bus, buf) if not self.busEvt: raise DecodeError("RxPacketBusEvent: " + "no bus event decoded")
def createObjectUnregistered(obj): busEvt = ObusBusEvent.create(_busEventDesc_object_unregistered) busEvt.removeList.append(obj) return busEvt
def createObjectEvent(evt): busEvt = ObusBusEvent.create(_busEventDesc_object_event) busEvt.eventList.append(evt) return busEvt
def createObjectRegistered(obj): busEvt = ObusBusEvent.create(_busEventDesc_object_registered) busEvt.addList.append(obj) return busEvt
def createConnectionRefused(): busEvt = ObusBusEvent.create(_busEventDesc_connection_refused) return busEvt
def createDisconnected(objects): busEvt = ObusBusEvent.create(_busEventDesc_disconnected) busEvt.removeList.extend(objects) return busEvt
def createConnected(objects): busEvt = ObusBusEvent.create(_busEventDesc_connected) busEvt.addList.extend(objects) return busEvt
def __init__(self, busEvtDesc): ObusBusEvent.__init__(self, busEvtDesc)