![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Processes information on each local RTI component that is connected to this Assistant. More...
Inheritance diagram for DtAssistantComponentMgr:
Collaboration diagram for DtAssistantComponentMgr:Public Slots | |
| virtual void | updateComponent (int compId, const DtAssistantComponentInfo &comp) |
| Updates the component with the given ID. More... | |
Public Slots inherited from DtAssistantMgr | |
| void | displayWarningDialogs () |
| Displays all warning dialogs. More... | |
Signals | |
Component added signals | |
Emitted when a new local RTI component is added | |
| void | lrcComponentAdded (const DtAssistantComponentInfo *) |
| void | rtiexecComponentAdded (const DtAssistantComponentInfo *) |
| void | forwarderComponentAdded (const DtAssistantComponentInfo *) |
| void | sharedMemComponentAdded (const DtAssistantComponentInfo *) |
Component removed signals | |
Emitted when a local RTI component is removed | |
| void | lrcComponentRemoved (const DtAssistantComponentInfo *) |
| void | rtiexecComponentRemoved (const DtAssistantComponentInfo *) |
| void | forwarderComponentRemoved (const DtAssistantComponentInfo *) |
| void | sharedMemComponentRemoved (const DtAssistantComponentInfo *) |
Component removed unexpectedly signals | |
Emitted when a local RTI component is removed unexpectedly | |
| void | lrcComponentRemovedUnexpectedly (const DtAssistantComponentInfo *) |
| void | rtiexecComponentRemovedUnexpectedly (const DtAssistantComponentInfo *) |
| void | forwarderComponentRemovedUnexpectedly (const DtAssistantComponentInfo *) |
| void | sharedMemComponentRemovedUnexpectedly (const DtAssistantComponentInfo *) |
Component renamed signals | |
Emitted when a local RTI component is renamed | |
| void | lrcComponentRenamed (const DtAssistantComponentInfo *) |
| void | rtiexecComponentRenamed (const DtAssistantComponentInfo *) |
| void | forwarderComponentRenamed (const DtAssistantComponentInfo *) |
| void | sharedMemComponentRenamed (const DtAssistantComponentInfo *) |
Component connected signals | |
Emitted when a local RTI component disconnects its RTI connection | |
| void | lrcComponentConnected (const DtAssistantComponentInfo *) |
| void | rtiexecComponentConnected (const DtAssistantComponentInfo *) |
| void | forwarderComponentConnected (const DtAssistantComponentInfo *) |
| void | lrcComponentDisconnected (const DtAssistantComponentInfo *) |
| void | rtiexecComponentDisconnected (const DtAssistantComponentInfo *) |
| void | forwarderComponentDisconnected (const DtAssistantComponentInfo *) |
Component updated signals | |
Emitted when a local RTI component is updated | |
| void | lrcComponentUpdated (const DtAssistantComponentInfo *) |
| void | rtiexecComponentUpdated (const DtAssistantComponentInfo *) |
| void | forwarderComponentUpdated (const DtAssistantComponentInfo *) |
| void | sharedMemComponentUpdated (const DtAssistantComponentInfo *) |
Signals inherited from DtAssistantMgr | |
| void | warningDialogDisplayed () |
| Emitted when a warning dialog is displayed. More... | |
| void | warningDialogDismissed () |
| Emitted when a warning dialog is dismissed. More... | |
| void | popupRequested (const MAKRti::DtString &text, int sourceCompId, const MAKRti::DtString &advancedText) |
| Emitted when a popup dialog should be displayed. More... | |
| void | popupRequested (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText) |
| Emitted when a popup dialog should be displayed. More... | |
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId, bool logOnly) |
| Emitted when a notification should be displayed. More... | |
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source, bool logOnly) |
| Emitted when a notification should be displayed. More... | |
Public Member Functions | |
| DtAssistantComponentMgr (std::shared_ptr< DtRtiAssistantServer > server, std::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter) | |
| Constructor. More... | |
| virtual | ~DtAssistantComponentMgr () |
| Destructor. More... | |
| virtual const DtAssistantComponentInfo * | componentInfo (int compId) const |
| Returns a reference to the information for the component with the given component ID. More... | |
| virtual const DtIdToComponentInfoMap & | components () const |
| Returns components the assistant is connected to. More... | |
| virtual const DtIdToComponentInfoMap & | rtiexecComponents () const |
| Returns rtiexec components the assistant is connected to. More... | |
| virtual const DtIdToComponentInfoMap & | lrcComponents () const |
| Returns LRC components the assistant is connected to. More... | |
| virtual const DtIdToComponentInfoMap & | forwarderComponents () const |
| Returns forwarder components the assistant is connected to. More... | |
| virtual const DtIdToComponentInfoMap & | sharedMemComponents () const |
| Returns shared memory queue components the assistant is connected to. More... | |
| virtual MAKRti::DtString | printLocalComponentList () const |
| Print list of local components. More... | |
| virtual MAKRti::DtString | printFederationList (const DtAssistantExecStateMsg &msg) |
| Print formatted federation info. More... | |
| virtual MAKRti::DtString | printRtiExecComponentsList (std::map< int, MAKRti::DtString > &data) const |
| Print list of rtiExec Components. More... | |
| virtual MAKRti::DtString | printForwarderComponentsList (const std::map< int, MAKRti::DtString > &data) const |
| Print list of Forwarder Components. More... | |
Public Member Functions inherited from DtAssistantMgr | |
| DtAssistantMgr (std::shared_ptr< DtRtiAssistantServer > server, std::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter) | |
| Constructor. More... | |
| virtual | ~DtAssistantMgr () |
| Destructor. More... | |
| virtual void | initialize () |
| Initializes this manager just prior to beginning assistant processing. More... | |
| virtual void | tick () |
| Performs tasks that need to be completed periodically. More... | |
| virtual void | startShutdown () |
| Performs any necessary processing at the start of shutdown. More... | |
| virtual bool | dialogsVisible () const |
| Determines if there are any visible dialogs for which this manager is responsible. More... | |
| virtual void | configWidget (DtAssistantConfigWidget **widget, QIcon &icon, QString &name, DtPreferencesPage &pageId) |
| Retrieves a widget which will be placed in the configuration dialog for configuring user preferences. More... | |
| virtual void | updateConfigWidget () |
| Forces the configuration widget to be updated. More... | |
| virtual void | processConfigWidgetAccept () |
| Process the changes that were accepted in the configuration widget. More... | |
Protected Member Functions | |
| virtual void | processSocketRemoval (int compId, const MAKRti::DtString &reason) |
| Called by the callback function to process the removal of a socket. More... | |
Protected Member Functions inherited from DtAssistantMgr | |
| void | startDialog (QDialog *dlg, bool inTaskbar, bool warningDialog) |
| Sets up the given widget as a dialog. More... | |
| void | finishDialog (QDialog *dlg) |
| Should be called prior to deleting any dialog started with startDialog. More... | |
| void | showDialog (QDialog *dlg) |
| Shows the dialog. More... | |
| void | startMainWindow (QMainWindow *dlg) |
| Sets up a main window dialog. More... | |
| void | finishMainWindow (QMainWindow *dlg) |
| Should be called prior to deleting any dialog started with startMainWindow. More... | |
| void | showMainWindow (QMainWindow *dlg) |
| Shows the dialog. More... | |
| void | showPopup (const MAKRti::DtString &text, int sourceCompId=-1, const MAKRti::DtString &advancedText=MAKRti::DtString::nullString()) |
| Displays a popup message with the given text, advanced text, and name of the given source component. More... | |
| void | showPopup (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText=MAKRti::DtString::nullString()) |
| Displays a popup message with the given text, advanced text, and source name. More... | |
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| Displays and logs a notification from the given component. More... | |
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| Displays and logs notification with the given component name. More... | |
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| Logs a notification from the given component, does not display. More... | |
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| Logs a notification with the given component name, does not display. More... | |
| virtual DtAssistantInfo | assistantInfoFromAssistantMsg (const DtAssistantMsg &assistantMsg, DtInetAddrSet *interfaces=0) |
Static Protected Member Functions | |
| static void | processSocketRemoval (int compId, const MAKRti::DtString &reason, void *usr) |
| Callback to process the removal of a socket connection. More... | |
Protected Attributes | |
| DtClock | myClock |
| The clock. More... | |
Protected Attributes inherited from DtAssistantMgr | |
| std::shared_ptr < DtRtiAssistantServer > | myServer |
| The Assistant server from which new messages will arrive from local RTI components. More... | |
| std::shared_ptr < DtRtiAssistantPeer > | myPeer |
| The Assistant peer which communicates with other Assistants. More... | |
| std::set< QDialog * > | myUnparentedDialogs |
| All unparented dialogs that are created by the GUI should be added to this set. More... | |
| std::set< QMainWindow * > | myMainWindows |
| All main windows that are created by the GUI should be added to this set. More... | |
| std::set< QDialog * > | myWarningDialogs |
| Set of the popup dialogs, either parented or unparented, which, when active, should cause a warning icon to be displayed. More... | |
Private Member Functions | |
| DtAssistantComponentMgr (DtAssistantComponentMgr const &) | |
| Copy Constructor not implemented – Copy Not Allowed! More... | |
| DtAssistantComponentMgr & | operator= (DtAssistantComponentMgr const &) |
| Assignment not implemented – Assignment Not Allowed! More... | |
Message Callbacks | |
| static void | processConnMsg (const DtAssistantConnMsg &msg, void *usr) |
| Callback to process a connection update message from a component. More... | |
| static void | processLrcCompInfoMsg (const DtAssistantLrcCompInfoMsg &msg, void *usr) |
| Callback to process a component information message from an LRC. More... | |
| static void | processRtiexecCompInfoMsg (const DtAssistantRtiexecCompInfoMsg &msg, void *usr) |
| Callback to process a component information message from an rtiexec. More... | |
| static void | processRtiForwarderCompInfoMsg (const DtAssistantRtiForwarderCompInfoMsg &msg, void *usr) |
| Callback to process a component information message from an RTI Forwarder. More... | |
| virtual void | processConnMsg (const DtAssistantConnMsg &msg) |
| Called by the callback function to process connection messages. More... | |
| virtual void | processNewConnMsg (const DtAssistantConnMsg &msg) |
| Processes a connection message for a new connection. More... | |
| virtual void | processCloseConnMsg (const DtAssistantConnMsg &msg) |
| Processes a connection message for a connection which is closing. More... | |
| virtual void | processLrcCompInfoMsg (const DtAssistantLrcCompInfoMsg &msg) |
| Called by the callback function to process LRC component information messages. More... | |
| virtual void | processRtiexecCompInfoMsg (const DtAssistantRtiexecCompInfoMsg &msg) |
| Called by the callback function to process rtiexec component information messages. More... | |
| virtual void | processRtiForwarderCompInfoMsg (const DtAssistantRtiForwarderCompInfoMsg &msg) |
| Called by the callback function to process RTI Forwarder component information messages. More... | |
Recover connection query signal | |
| DtIdToComponentInfoMap | myComponentsById |
| Map containing the information on all connected components indexed by component ID. More... | |
| DtIdToComponentInfoMap | myRtiExecComponentsById |
| Map containing the information on all connected components indexed by component ID. More... | |
| DtIdToComponentInfoMap | myLrcComponentsById |
| Map containing the information on all connected components indexed by component ID. More... | |
| DtIdToComponentInfoMap | myForwarderComponentsById |
| Map containing the information on all connected components indexed by component ID. More... | |
| DtIdToComponentInfoMap | mySharedMemComponentsById |
| Map containing the information on all connected components indexed by component ID. More... | |
| void | recoverConnection (const DtRtiConnectionInfo &connInfo, DtRtiConnectionInfo &recoveredConn) |
| Map containing the information on all connected components indexed by component ID. More... | |
| void | localFederateJoined (const DtAssistantComponentInfo *, const MAKRti::DtString &federateType, const MAKRti::DtString &federateName, unsigned federateHandle, const MAKRti::DtString &federationName, unsigned federationHandle, DtHlaVersionId hlaVersion) |
| Emitted when a local federate joins a federation. More... | |
| void | localFederateResigned (const DtAssistantComponentInfo *) |
| Emitted when a local federate resigns from a federation. More... | |
| void | forwarderHasRtiexec (const DtAssistantComponentInfo *) |
| Emitted when a local forwarder connects with an rtiexec. More... | |
| void | forwarderHasNoRtiexec (const DtAssistantComponentInfo *) |
| Emitted when a local forwarder disconnects with an rtiexec. More... | |
Additional Inherited Members | |
Static Protected Attributes inherited from DtAssistantMgr | |
| static QIcon | theRtiIcon |
| The icons used by the RTI Assistant. More... | |
| static QIcon | theSmallRtiIcon |
| static QIcon | theWebIcon |
| static QIcon | theNotifyRtiIcon |
| static QIcon | theWarningRtiIcon |
| static QIcon | thePreferencesIcon |
| static QIcon | theAboutIcon |
| static QIcon | theHelpIcon |
| static bool | theIconsAreLoaded |
| Whether or not the icons have yet been loaded. More... | |
Processes information on each local RTI component that is connected to this Assistant.
This information is stored so that it may be retrieved by other assistant managers as needed. Emits signals to notify other classes when information has been updated.
| DtAssistantComponentMgr::DtAssistantComponentMgr | ( | std::shared_ptr< DtRtiAssistantServer > | server, |
| std::shared_ptr< DtRtiAssistantPeer > | peer, | ||
| DtAssistantSignalRouter & | signalRouter | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy Constructor not implemented – Copy Not Allowed!
|
virtual |
Returns a reference to the information for the component with the given component ID.
Returns a null pointer if the component could not be found.
|
virtual |
Returns components the assistant is connected to.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
Returns forwarder components the assistant is connected to.
|
signal |
|
signal |
Emitted when a local forwarder disconnects with an rtiexec.
|
signal |
Emitted when a local forwarder connects with an rtiexec.
|
signal |
Emitted when a local federate joins a federation.
|
signal |
Emitted when a local federate resigns from a federation.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
Returns LRC components the assistant is connected to.
|
signal |
|
private |
Assignment not implemented – Assignment Not Allowed!
|
virtual |
Print formatted federation info.
|
virtual |
Print list of Forwarder Components.
|
virtual |
Print list of local components.
|
virtual |
Print list of rtiExec Components.
|
protectedvirtual |
Processes a connection message for a connection which is closing.
|
staticprotected |
Callback to process a connection update message from a component.
|
protectedvirtual |
Called by the callback function to process connection messages.
|
staticprotected |
Callback to process a component information message from an LRC.
|
protectedvirtual |
Called by the callback function to process LRC component information messages.
|
protectedvirtual |
Processes a connection message for a new connection.
|
staticprotected |
Callback to process a component information message from an rtiexec.
|
protectedvirtual |
Called by the callback function to process rtiexec component information messages.
|
staticprotected |
Callback to process a component information message from an RTI Forwarder.
|
protectedvirtual |
Called by the callback function to process RTI Forwarder component information messages.
|
staticprotected |
Callback to process the removal of a socket connection.
|
protectedvirtual |
Called by the callback function to process the removal of a socket.
|
signal |
Map containing the information on all connected components indexed by component ID.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
Returns rtiexec components the assistant is connected to.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
Returns shared memory queue components the assistant is connected to.
|
signal |
|
virtualslot |
Updates the component with the given ID.
|
protected |
The clock.
|
protected |
Map containing the information on all connected components indexed by component ID.
|
protected |
Map containing the information on all connected components indexed by component ID.
|
protected |
Map containing the information on all connected components indexed by component ID.
|
protected |
Map containing the information on all connected components indexed by component ID.
|
protected |
Map containing the information on all connected components indexed by component ID.