Hub
The Multimodal Hub is the core network component manager.
-
class MultimodalMiddlewareProtocol.Hub.MultimodalHub(name, server)
-
calculateClients(UCID, fProduces)
-
calculateMatch(UCID, my, others)
-
calculateSuppliers(UCID, fConsumes)
-
forward(command)
- This method is called when a default message handler is not found.
It forwards the message to the list of consumers based on the EventID
-
generateRegistrationReply(command, UCID, fConsumes, fProduces)
-
informProcessor(eventID, UCID)
-
raiseException(exception, message, fatal)
-
recalculateClientsAndSuppliersExceptOne(UCID)
- This method recalculates the lists of clients and suppliers for all connected devices.
-
receive(sender, data)
-
receiveDisconnectionNotification(command)
-
registerComponent(command)
-
removeDevice(UCID)
- This method removes a device, cleaning the producers and consumers lists
-
removeDevicesByAddress(address)
-
sendByServer(server, destination, data)
-
sendDisconnectToAll(reason)
- This method send a disconnection notigication to all connected devices.
It also reinitializes the devices, producers and consumers lists, as no device is supposed to be registered after its execution
-
sendDisconnectionNotification(UCID, reason)
-
sendFields(destination, fields)
-
sendFieldsByServer(server, destination, fields)
-
setProcessor(processor)