Beispiel #1
0
	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")
Beispiel #2
0
	def createObjectUnregistered(obj):
		busEvt = ObusBusEvent.create(_busEventDesc_object_unregistered)
		busEvt.removeList.append(obj)
		return busEvt
Beispiel #3
0
	def createObjectEvent(evt):
		busEvt = ObusBusEvent.create(_busEventDesc_object_event)
		busEvt.eventList.append(evt)
		return busEvt
Beispiel #4
0
	def createObjectRegistered(obj):
		busEvt = ObusBusEvent.create(_busEventDesc_object_registered)
		busEvt.addList.append(obj)
		return busEvt
Beispiel #5
0
	def createConnectionRefused():
		busEvt = ObusBusEvent.create(_busEventDesc_connection_refused)
		return busEvt
Beispiel #6
0
	def createDisconnected(objects):
		busEvt = ObusBusEvent.create(_busEventDesc_disconnected)
		busEvt.removeList.extend(objects)
		return busEvt
Beispiel #7
0
	def createConnected(objects):
		busEvt = ObusBusEvent.create(_busEventDesc_connected)
		busEvt.addList.extend(objects)
		return busEvt
Beispiel #8
0
	def __init__(self, busEvtDesc):
		ObusBusEvent.__init__(self, busEvtDesc)