![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Compiles network component information from RTI Forwarders. More...
Inheritance diagram for DtAssistantForwarderCompInfoMgr:
Collaboration diagram for DtAssistantForwarderCompInfoMgr:Public Slots | |
| void | processConnectionsUpdate (const DtRtiConnectionAndConfiguration &conns) |
| Processes changes in connection state. More... | |
| void | processConnectionsRemoval (const DtRtiConnectionAndConfiguration &conns) |
| Processes removal of known connections. More... | |
| void | sendAllForwarderInfo () |
| Sends udpate message for all local conns to remote assistants. More... | |
| void | sendObserveForwarderMsgToPeer (bool shouldObserve=true) |
| This Assistant is viewing or stopped viewing a remote forwarder. More... | |
| void | sendObserveForwarderMsgForViewedPeers (bool shouldObserve=true) |
| Sends a message to the peers of the current connection that they are being observed by this assistant. More... | |
| void | federateRemovalTimeChanged (float val) |
| Handle a change in the defunct federation removal time. More... | |
| void | provideForwarderInfo (const DtRtiConnectionInfo &conn, const DtAssistantForwarderInfo **info) |
| Response to a query for forwarder info. More... | |
| void | providePeerForwarderInfo (const DtRtiConnectionInfo &, std::vector< DtAssistantForwarderInfo > *) |
| Response to a query for peer forwarder info. More... | |
Public Slots inherited from DtAssistantMgr | |
| void | displayWarningDialogs () |
| Displays all warning dialogs. More... | |
Signals | |
| void | forwarderAdded (const DtRtiConnectionInfo &conn) |
| Emitted when a new forwarder is discovered. More... | |
| void | forwarderConnUpdated (const DtRtiConnectionInfo &conn) |
| Emitted when the connection info of a known forwarder is updated. More... | |
| void | forwarderUpdated (const DtRtiConnectionInfo &conn) |
| Emitted when a known forwarder is updated. More... | |
| void | forwarderRemoved (const DtRtiConnectionInfo &conn) |
| Emitted when a known forwarder is removed. More... | |
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 | |
| DtAssistantForwarderCompInfoMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter, DtBoost::shared_ptr< DtAssistantComponentMgr > compMgr, DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > connInfoMgr) | |
| Constructor. More... | |
| ~DtAssistantForwarderCompInfoMgr () | |
| Destructor. More... | |
| virtual void | tick () |
| Performs tasks that need to be completed periodically. More... | |
| virtual bool | isLocalForwarder (const DtRtiConnectionInfo &conn) const |
| Returns true if the given forwarder connection is for an active local forwarder. More... | |
| virtual bool | isRemoteForwarder (const DtRtiConnectionInfo &conn) const |
| Returns true if the given forwarder connection is for an active remote forwarder. More... | |
| virtual void | requestSingleUpdateFromConnectedForwarders (int id) |
| Performs a single data request of the connected RTI Forwarders. More... | |
| virtual void | viewNetworkComponentsForConnection (const DtRtiConnectionInfo &conn) |
| Sets the connection which is currently being viewed. More... | |
| virtual const DtAssistantForwarderInfo * | forwarderInfo (const DtRtiConnectionInfo &conn) const |
| Gets the stored information for the given forwarder. More... | |
| const std::set< const DtAssistantForwarderInfo * > | peerForwarderInfos (const DtRtiConnectionInfo &conn) const |
| Gets the stored information for the given forwarder's peer forwarders. More... | |
| virtual std::pair < DtRtiConnectionInfo, bool > | forwarderConnectionInfo (const DtAssistantNetworkCompInfo &conn) const |
| Searches for Connection info and locality for a forwarder component (used to find peer forwarder connections) More... | |
| virtual bool | isObservedPeerOfViewedConnection (const DtRtiConnectionInfo &conn) const |
| Returns whether given connection is an observed peer of viewed connection. More... | |
| virtual void | updateObservedPeers (const DtRtiConnectionInfo &conn, bool addOrRemove) |
| Update set of stored observed rtiForwarder connections. More... | |
| virtual int | getPeerForwarders (const DtRtiConnectionInfo &conn, std::set< DtRtiConnectionInfo > &peers) const |
| Get the set of peer forwarders Return number of connections in set. More... | |
| virtual bool | isPeerForwarder (const DtRtiConnectionInfo &conn, const DtRtiConnectionInfo &peerConn) const |
| Return true if the given connections are peers within a network of forwarders. More... | |
Public Member Functions inherited from DtAssistantMgr | |
| DtAssistantMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::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 | 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 Types | |
| typedef std::map < DtRtiConnectionInfo, DtAssistantInfoSet > | DtConnectionToObserversMap |
| typedef std::map < DtRtiConnectionInfo, DtAssistantForwarderInfo > | DtForwarderStateByConnectionMap |
Protected Member Functions | |
| virtual void | pruneTimedOutSingleUpdates () |
| If there were RTI Forwarder updates that timed out, we send back the incomplete msg. 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) |
Protected Attributes | |
| DtBoost::shared_ptr < DtAssistantComponentMgr > | myCompMgr |
| The local RTI component manager. More... | |
| DtBoost::shared_ptr < DtAssistantConnectionInfoMgr > | myConnInfoMgr |
| The connection info manager. More... | |
| DtRtiConnectionInfo | myViewedRtiForwarder |
| The forwarder connection currently being viewed at this Assistant. More... | |
| DtConnectionToObserversMap | myRemotelyViewedRtiForwarders |
| Local forwarder connections currently being viewed by remote Assistants, and the set of all Assistants which are viewing them. More... | |
| DtForwarderStateByConnectionMap | myRemoteForwarders |
| information on all known remote forwarders. More... | |
| DtForwarderStateByConnectionMap | myLocalForwarders |
| information on all local forwarders. More... | |
| MAKRti::DtClock | myClock |
| Clock used to determine if we need to resend lost messages. More... | |
| unsigned int | myTimeStateUpdateInterval |
| The interval, in ms, at which local rtiForwarders should be requested to send updated time state information from local rtiForwarders. More... | |
| float | myDefunctRemovalTime |
| Defunct removal time for dropped federates. More... | |
| std::map< std::pair< int, MAKRti::DtTime >, std::map < int, MAKRti::DtString > > | myRequestedRtiForwarderUpdates |
| std::set< DtRtiConnectionInfo > | myObservedPeerRtiForwarderSet |
Protected Attributes inherited from DtAssistantMgr | |
| DtBoost::shared_ptr < DtRtiAssistantServer > | myServer |
| The Assistant server from which new messages will arrive from local RTI components. More... | |
| DtBoost::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... | |
Static Protected Attributes | |
| static const int | theTimeToWaitForForwarderInfo |
| The time, in seconds, to wait for information from the remotely viewed RTI Forwarder before resending the observation request. More... | |
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... | |
Private Member Functions | |
| DtAssistantForwarderCompInfoMgr (DtAssistantForwarderCompInfoMgr const &) | |
| Copy Constructor not implemented – Copy Not Allowed! More... | |
| DtAssistantForwarderCompInfoMgr & | operator= (DtAssistantForwarderCompInfoMgr const &) |
| Assignment not implemented – Assignment Not Allowed! More... | |
Message Callbacks | |
| virtual void | processForwarderObserveMsg (const DtAssistantStateObserveMsg &msg) |
| Called by the callback function to process a forwarder state message. More... | |
| virtual void | processForwarderStateMsgForConnection (const DtAssistantForwarderStateMsg &msg) |
| Called by the callback function to process a federation state message on behalf of an rtiAssistanttoAssistantClient that requested the data. More... | |
| virtual void | handleRtiCommands (const DtAssistantForwarderStateMsg &msg) |
| Called by the callback function to process a forwarder state message. More... | |
| virtual void | processAssistantCommandMsg (const DtAssistantCommandMsg &msg) |
| Processes an RTI Assistant command message. More... | |
| static void | processForwarderObserveMsg (const DtAssistantStateObserveMsg &msg, void *usr) |
| Callback to process a forwarder state message. More... | |
| static void | processForwarderStateMsgForConnection (const DtAssistantForwarderStateMsg &msg, void *usr) |
| Called to process a forwarder state message on behalf of an rtiAssistanttoAssistantClient that requested the data. More... | |
| static void | processAssistantCommandMsg (const DtAssistantCommandMsg &msg, void *usr) |
| Processes an RTI Assistant command message. More... | |
Compiles network component information from RTI Forwarders.
|
protected |
|
protected |
| DtAssistantForwarderCompInfoMgr::DtAssistantForwarderCompInfoMgr | ( | DtBoost::shared_ptr< DtRtiAssistantServer > | server, |
| DtBoost::shared_ptr< DtRtiAssistantPeer > | peer, | ||
| DtAssistantSignalRouter & | signalRouter, | ||
| DtBoost::shared_ptr< DtAssistantComponentMgr > | compMgr, | ||
| DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > | connInfoMgr | ||
| ) |
Constructor.
| DtAssistantForwarderCompInfoMgr::~DtAssistantForwarderCompInfoMgr | ( | ) |
Destructor.
|
private |
Copy Constructor not implemented – Copy Not Allowed!
|
slot |
Handle a change in the defunct federation removal time.
|
signal |
Emitted when a new forwarder is discovered.
|
virtual |
Searches for Connection info and locality for a forwarder component (used to find peer forwarder connections)
|
signal |
Emitted when the connection info of a known forwarder is updated.
|
virtual |
Gets the stored information for the given forwarder.
|
signal |
Emitted when a known forwarder is removed.
|
signal |
Emitted when a known forwarder is updated.
|
virtual |
Get the set of peer forwarders Return number of connections in set.
|
virtual |
Called by the callback function to process a forwarder state message.
|
virtual |
Returns true if the given forwarder connection is for an active local forwarder.
|
virtual |
Returns whether given connection is an observed peer of viewed connection.
|
virtual |
Return true if the given connections are peers within a network of forwarders.
|
virtual |
Returns true if the given forwarder connection is for an active remote forwarder.
|
private |
Assignment not implemented – Assignment Not Allowed!
| const std::set<const DtAssistantForwarderInfo*> DtAssistantForwarderCompInfoMgr::peerForwarderInfos | ( | const DtRtiConnectionInfo & | conn | ) | const |
Gets the stored information for the given forwarder's peer forwarders.
|
static |
Processes an RTI Assistant command message.
|
virtual |
Processes an RTI Assistant command message.
|
slot |
Processes removal of known connections.
|
slot |
Processes changes in connection state.
|
static |
Callback to process a forwarder state message.
|
virtual |
Called by the callback function to process a forwarder state message.
|
static |
Called to process a forwarder state message on behalf of an rtiAssistanttoAssistantClient that requested the data.
|
virtual |
Called by the callback function to process a federation state message on behalf of an rtiAssistanttoAssistantClient that requested the data.
|
slot |
Response to a query for forwarder info.
|
slot |
Response to a query for peer forwarder info.
|
protectedvirtual |
If there were RTI Forwarder updates that timed out, we send back the incomplete msg.
|
virtual |
Performs a single data request of the connected RTI Forwarders.
|
slot |
Sends udpate message for all local conns to remote assistants.
|
slot |
Sends a message to the peers of the current connection that they are being observed by this assistant.
|
slot |
This Assistant is viewing or stopped viewing a remote forwarder.
Send an observe forwarder message to the forwarder's assistant.
|
virtual |
Performs tasks that need to be completed periodically.
Reimplemented from DtAssistantMgr.
|
virtual |
Update set of stored observed rtiForwarder connections.
|
virtual |
Sets the connection which is currently being viewed.
|
protected |
Clock used to determine if we need to resend lost messages.
|
protected |
The local RTI component manager.
|
protected |
The connection info manager.
|
protected |
Defunct removal time for dropped federates.
|
protected |
information on all local forwarders.
|
protected |
|
protected |
information on all known remote forwarders.
|
protected |
Local forwarder connections currently being viewed by remote Assistants, and the set of all Assistants which are viewing them.
|
protected |
|
protected |
The interval, in ms, at which local rtiForwarders should be requested to send updated time state information from local rtiForwarders.
Takes into account remote assistants as well.
|
protected |
The forwarder connection currently being viewed at this Assistant.
|
staticprotected |
The time, in seconds, to wait for information from the remotely viewed RTI Forwarder before resending the observation request.