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