![]() |
VR-Forces 4.8 Class Documentation
|
The manager for SimInternal messages on a single simulation engine. More...
Public Types | |
| typedef tbb::spin_mutex | Mutex |
Public Member Functions | |
| virtual | ~DtSimInternalCommunicationManager () |
| virtual void | deliverMessage (const DtVrfObjectMessage *message) |
| Puts this message on the message delivery queue. More... | |
| virtual void | tick () |
| Delivers all messages currently on the delivery queue. More... | |
| virtual void | clearQueue () |
| Clears all messages currently on the delivery queue without delivering them. More... | |
| virtual void | registerCommunicationInterface (DtSimInternalCommunicationInterface *commIf) |
| Add/remove a DtSimInternalCommunicationInterface from this manager. More... | |
| virtual void | unregisterCommunicationInterface (DtSimInternalCommunicationInterface *commIf) |
Static Public Member Functions | |
| static DtSimInternalCommunicationManager * | create (DtSimManager *simMgr) |
| Calls the constructor and the virtual init(). More... | |
Protected Types | |
| typedef std::list < DtSimInternalCommunicationInterface * > | DtCommInterfaceList |
| typedef std::deque < DtVrfObjectMessage * > | DtMessageDeque |
Protected Member Functions | |
| DtSimInternalCommunicationManager (DtSimManager *simMgr) | |
| Use the create() method instead of the constructor. More... | |
| virtual bool | init () |
| Virtual init() called by the create() method. More... | |
| virtual void | deliverMessageLocally (const DtVrfObjectMessage *message) |
| Sends this message to any local interfaces that should receive the messages. More... | |
| virtual void | deliverMessageRemotely (const DtVrfObjectMessage *message) |
| Sends this message to the network so other VRF sim engines can receive and process it. More... | |
| virtual bool | objectShouldReceiveMessage (DtVrfObject *vrfObj, const DtVrfObjectMessage *msg) |
Protected Attributes | |
| DtSimManager * | mySimManager |
| DtCommInterfaceList | myCommInterfaceList |
| DtMessageDeque | myMessagesToDeliver |
| Queue which stores messages that need to be delivered. More... | |
| Mutex | myMessageMutex |
Private Member Functions | |
| DtSimInternalCommunicationManager () | |
| Not Implemented. More... | |
| DtSimInternalCommunicationManager (const DtSimInternalCommunicationManager &orig) | |
| Not Implemented. More... | |
| DtSimInternalCommunicationManager & | operator= (const DtSimInternalCommunicationManager &orig) |
| Not Implemented. More... | |
| virtual void | processDeliverRadioMessage (DtSimMessage *msg) |
| static void | deliverRadioMessageCallback (DtSimMessage *msg, void *usr) |
| Callback for processing deliver radio message types of interface messages. More... | |
The manager for SimInternal messages on a single simulation engine.
This class manages the passing of DtVrfObjectMessage instances between different DtSimInternalCommunicationInterface instances. A message is passed from the communication interface to this class, which then passes it out to the appropriate destination interfaces, if any. This class is also responsible for sending the messages onto the network to other instances of this class in other VRF simulation engines.
| typedef tbb::spin_mutex DtSimInternalCommunicationManager::Mutex |
|
protected |
|
protected |
|
private |
Not Implemented.
|
private |
Not Implemented.
|
protected |
Use the create() method instead of the constructor.
|
virtual |
|
private |
Not Implemented.
|
static |
Calls the constructor and the virtual init().
|
protectedvirtual |
|
virtual |
Add/remove a DtSimInternalCommunicationInterface from this manager.
Only interfaces that are registered will be able to receive messages from this manager.
|
virtual |
|
virtual |
Puts this message on the message delivery queue.
The message will be cloned by this method.
|
virtual |
Delivers all messages currently on the delivery queue.
|
virtual |
Clears all messages currently on the delivery queue without delivering them.
|
staticprotected |
Callback for processing deliver radio message types of interface messages.
|
protectedvirtual |
|
protectedvirtual |
Sends this message to any local interfaces that should receive the messages.
|
protectedvirtual |
Sends this message to the network so other VRF sim engines can receive and process it.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
Queue which stores messages that need to be delivered.
|
mutableprotected |