Public Member Functions | Protected Attributes

wosh::bundles::CommunicationManagerBundle Class Reference
[WOSH Bundles]

Network-singleton service designed to manage and route messages between users (as the system itself). More...

#include <H:/WOSH/win32_vc2010/src/bundles/CommunicationManager/CommunicationManagerBundle.h>

List of all members.

Public Member Functions

void busMessage (const Message &message, const Bus *source)
 Method raised by the Bus when it processes a new message. Implementations will probably analyze the message and perform actions.

Protected Member Functions

Internal methods
WRESULT updateCommunicators ()
WRESULT updateInterpreters ()

Protected Attributes

CommunicationManagerImplcommWorker
 real implementation
CommunicationManagerParsercommParser
 real implementation

Detailed Description

Network-singleton service designed to manage and route messages between users (as the system itself).

Communication Manager manages the (updated) list of Communicator(s) and Interpreter(s) services.

WOSH system may have many Communicator services with different features and properties (time-dependent). There are also Interpreter services which convert/translate Notification format (language/type).

Moreover the service interacts with the wosh::UserManager core module reading and updating the Communication-related fields of each user. Each user holds information about used communicators, their timestamp and ranking.

Communication Manager manages collection of NotificationFlow. A wosh::communication::NotificationFlow contains the original Notification (implementation), evetually its translated version and some processing information.

Main goal is to select the (best) communication channel (Communicator) for a Notification. Notification may be interpreted (translated) within the flow. On sending acknoledgment, the flow is archived.

Communication Manager intercepts Notification(s) and creates/updates flows. Creating a new flow for a new Notification and appending translated version when it exists (and is under processing).

Processing is asynchronous, FIFO order (by internal queue).

Version:
Id:
CommunicationManagerBundle.h 3775 2011-01-01 16:38:17Z alex
Author:
Alessandro Polo

Definition at line 92 of file CommunicationManagerBundle.h.


Member Function Documentation

void wosh::bundles::CommunicationManagerBundle::busMessage ( const Message message,
const Bus source 
) [virtual]

Method raised by the Bus when it processes a new message. Implementations will probably analyze the message and perform actions.

Parameters:
[in]messagethe incoming message
[in]sourcethe source Bus of the incoming message
Warning:
The current thread is own and managed by the caller Bus. Heavy, dangerous or time expensive operations should be executed asynchronously and not inline!

Reimplemented from wosh::BundleGeneric.

Definition at line 195 of file CommunicationManagerBundle.cpp.

References BusCore, wosh::Message::getContent(), wosh::Message::getSource(), wosh::Message::isEmpty(), wosh::MessageContent::isNotification(), wosh::MessageContent::isRequest(), wosh::MessageContent::isResponse(), and wosh::BusConnector::postMessage().


Member Data Documentation

real implementation

Definition at line 143 of file CommunicationManagerBundle.h.

real implementation

Definition at line 142 of file CommunicationManagerBundle.h.


The documentation for this class was generated from the following files:

Generated on Tue Feb 8 2011 09:33:33 for WOSH system 0.8.888 [wolf] by Alessandro Polo, using DoxyGen 1.7.2 hosted by WOSH Framework