![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Compiles network component information from RTI Forwarders. More...
Inheritance diagram for DtAssistantNetworkCompInfoMgr:
Collaboration diagram for DtAssistantNetworkCompInfoMgr:Public Slots | |
| void | processConnectionsUpdate (const DtRtiConnectionAndConfiguration &conns) |
| Processes changes in connection state. | |
| void | processConnectionsRemoval (const DtRtiConnectionAndConfiguration &conns) |
| Processes removal of known connections. | |
| void | sendAllForwarderInfo () |
| Sends udpate message for all local conns to remote assistants. | |
| void | sendObserveForwarderMsg () |
| Sends a message indicating the current connection whose forwarder is being observed by this assistant. | |
| void | federateRemovalTimeChanged (float val) |
| Handle a change in the defunct federation removal time. | |
| void | provideForwarderInfo (const DtRtiConnectionInfo &conn, const DtAssistantForwarderInfo **info) |
| Response to a query for forwarder info. | |
Public Slots inherited from DtAssistantMgr | |
| void | displayWarningDialogs () |
| Displays all warning dialogs. | |
Signals | |
| void | forwarderAdded (const DtRtiConnectionInfo &conn) |
| Emitted when a new forwarder is discovered. | |
| void | forwarderConnUpdated (const DtRtiConnectionInfo &conn) |
| Emitted when the connection info of a known forwarder is updated. | |
| void | forwarderUpdated (const DtRtiConnectionInfo &conn) |
| Emitted when a known forwarder is updated. | |
| void | forwarderRemoved (const DtRtiConnectionInfo &conn) |
| Emitted when a known forwarder is removed. | |
Signals inherited from DtAssistantMgr | |
| void | warningDialogDisplayed () |
| Emitted when a warning dialog is displayed. | |
| void | warningDialogDismissed () |
| Emitted when a warning dialog is dismissed. | |
| void | popupRequested (const MAKRti::DtString &text, int sourceCompId, const MAKRti::DtString &advancedText) |
| Emitted when a popup dialog should be displayed. | |
| void | popupRequested (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText) |
| Emitted when a popup dialog should be displayed. | |
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId, bool logOnly) |
| Emitted when a notification should be displayed. | |
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source, bool logOnly) |
| Emitted when a notification should be displayed. | |
Public Member Functions | |
| DtAssistantNetworkCompInfoMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter, DtBoost::shared_ptr< DtAssistantComponentMgr > compMgr, DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > connInfoMgr) | |
| Constructor. | |
| ~DtAssistantNetworkCompInfoMgr () | |
| Destructor. | |
| virtual void | tick () |
| Performs tasks that need to be completed periodically. | |
| virtual bool | isLocalForwarder (const DtRtiConnectionInfo &conn) const |
| Returns true if the given forwarder connection is for an active local forwarder. | |
| virtual bool | isRemoteForwarder (const DtRtiConnectionInfo &conn) const |
| Returns true if the given forwarder connection is for an active remote forwarder. | |
| virtual void | requestSingleUpdateFromConnectedForwarders (int id) |
| Performs a single data request of the connected RTI Forwarders. | |
| virtual void | viewNetworkComponentsForConnection (const DtRtiConnectionInfo &conn) |
| Sets the connection which is currently being viewed. | |
| virtual const DtAssistantForwarderInfo * | forwarderInfo (const DtRtiConnectionInfo &conn) const |
| Gets the stored information for the given forwarder. | |
Public Member Functions inherited from DtAssistantMgr | |
| DtAssistantMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter) | |
| Constructor. | |
| virtual | ~DtAssistantMgr () |
| Destructor. | |
| virtual void | initialize () |
| Initializes this manager just prior to beginning assistant processing. | |
| virtual void | startShutdown () |
| Performs any necessary processing at the start of shutdown. | |
| virtual bool | dialogsVisible () const |
| Determines if there are any visible dialogs for which this manager is responsible. | |
| 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. | |
| virtual void | updateConfigWidget () |
| Forces the configuration widget to be updated. | |
| virtual void | processConfigWidgetAccept () |
| Process the changes that were accepted in the configuration widget. | |
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. | |
Protected Member Functions inherited from DtAssistantMgr | |
| void | startDialog (QDialog *dlg, bool inTaskbar, bool warningDialog) |
| Sets up the given widget as a dialog. | |
| void | finishDialog (QDialog *dlg) |
| Should be called prior to deleting any dialog started with startDialog. | |
| void | showDialog (QDialog *dlg) |
| Shows the dialog. | |
| void | startMainWindow (QMainWindow *dlg) |
| Sets up a main window dialog. | |
| void | finishMainWindow (QMainWindow *dlg) |
| Should be called prior to deleting any dialog started with startMainWindow. | |
| void | showMainWindow (QMainWindow *dlg) |
| Shows the dialog. | |
| 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. | |
| 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. | |
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| Displays and logs a notification from the given component. | |
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| Displays and logs notification with the given component name. | |
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| Logs a notification from the given component, does not display. | |
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| Logs a notification with the given component name, does not display. | |
Protected Attributes | |
| DtBoost::shared_ptr < DtAssistantComponentMgr > | myCompMgr |
| The local RTI component manager. | |
| DtBoost::shared_ptr < DtAssistantConnectionInfoMgr > | myConnInfoMgr |
| The connection info manager. | |
| DtRtiConnectionInfo | myViewedRtiForwarder |
| The forwarder connection currently being viewed at this Assistant. | |
| DtConnectionToObserversMap | myRemotelyViewedRtiForwarders |
| Local forwarder connections currently being viewed by remote Assistants, and the set of all Assistants which are viewing them. | |
| std::set< DtRtiConnectionInfo > | myRemotelyViewedConnectionsNeedingUpdate |
| Local forwarder connections currently being viewed by remote Assistants which require an update to be sent as soon as we get one. | |
| DtForwarderStateByConnectionMap | myRemoteForwarders |
| information on all known remote forwarders. | |
| DtForwarderStateByConnectionMap | myLocalForwarders |
| information on all local forwarders. | |
| MAKRti::DtClock | myClock |
| Clock used to determine if we need to resend lost messages. | |
| unsigned int | myTimeStateUpdateInterval |
| The interval, in ms, at which local rtiForwarders should be requested to send updated time state information from local rtiForwarders. | |
| float | myDefunctRemovalTime |
| Defunct removal time for dropped federates. | |
| std::map< std::pair< int, MAKRti::DtTime >, std::map < int, MAKRti::DtString > > | myRequestedRtiForwarderUpdates |
Protected Attributes inherited from DtAssistantMgr | |
| DtBoost::shared_ptr < DtRtiAssistantServer > | myServer |
| The Assistant server from which new messages will arrive from local RTI components. | |
| DtBoost::shared_ptr < DtRtiAssistantPeer > | myPeer |
| The Assistant peer which communicates with other Assistants. | |
| std::set< QDialog * > | myUnparentedDialogs |
| All unparented dialogs that are created by the GUI should be added to this set. | |
| std::set< QMainWindow * > | myMainWindows |
| All main windows that are created by the GUI should be added to this set. | |
| std::set< QDialog * > | myWarningDialogs |
| Set of the popup dialogs, either parented or unparented, which, when active, should cause a warning icon to be displayed. | |
Static Protected Attributes | |
| static const int | theTimeToWaitForForwarderInfo = 2 |
| The time, in seconds, to wait for information from the remotely viewed RTI Forwarder before resending the observation request. | |
Static Protected Attributes inherited from DtAssistantMgr | |
| static QIcon | theRtiIcon |
| The icons used by the RTI Assistant. | |
| static QIcon | theSmallRtiIcon |
| static QIcon | theWebIcon |
| static QIcon | theNotifyRtiIcon |
| static QIcon | theWarningRtiIcon |
| static QIcon | thePreferencesIcon |
| static QIcon | theAboutIcon |
| static QIcon | theHelpIcon |
| static bool | theIconsAreLoaded = false |
| Whether or not the icons have yet been loaded. | |
Private Member Functions | |
| DtAssistantNetworkCompInfoMgr (DtAssistantNetworkCompInfoMgr const &) | |
| Copy Constructor not implemented – Copy Not Allowed! | |
| DtAssistantNetworkCompInfoMgr & | operator= (DtAssistantNetworkCompInfoMgr const &) |
| Assignment not implemented – Assignment Not Allowed! | |
Message Callbacks | |
| virtual void | processForwarderObserveMsg (const DtAssistantStateObserveMsg &msg) |
| Called by the callback function to process a forwarder state message. | |
| 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. | |
| virtual void | handleRtiCommands (const DtAssistantForwarderStateMsg &msg) |
| Called by the callback function to process a forwarder state message. | |
| virtual void | processAssistantCommandMsg (const DtAssistantCommandMsg &msg) |
| Processes an RTI Assistant command message. | |
| static void | processForwarderObserveMsg (const DtAssistantStateObserveMsg &msg, void *usr) |
| Callback to process a forwarder state message. | |
| static void | processForwarderStateMsgForConnection (const DtAssistantForwarderStateMsg &msg, void *usr) |
| Called to process a forwarder state message on behalf of an rtiAssistanttoAssistantClient that requested the data. | |
| static void | processAssistantCommandMsg (const DtAssistantCommandMsg &msg, void *usr) |
| Processes an RTI Assistant command message. | |
Compiles network component information from RTI Forwarders.
|
protected |
|
protected |
| DtAssistantNetworkCompInfoMgr::DtAssistantNetworkCompInfoMgr | ( | DtBoost::shared_ptr< DtRtiAssistantServer > | server, |
| DtBoost::shared_ptr< DtRtiAssistantPeer > | peer, | ||
| DtAssistantSignalRouter & | signalRouter, | ||
| DtBoost::shared_ptr< DtAssistantComponentMgr > | compMgr, | ||
| DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > | connInfoMgr | ||
| ) |
Constructor.
References DtAssistantForwarderStateMsg::addCallback(), DtAssistantCommandMsg::addCallback(), DtAssistantStateObserveMsg::addCallback(), DtDefunctFederateRemovalTimeSecUpdatedSig, DtForwarderAddedSig, DtForwarderConnUpdatedSig, DtForwarderInfoQuery, DtForwarderRemovedSig, DtForwarderUpdatedSig, DtRtiConnHeartbeatSig, DtRtiConnsAboutToBeRemovedSig, DtRtiConnsAddedOrUpdatedSig, federateRemovalTimeChanged(), forwarderAdded(), forwarderConnUpdated(), forwarderRemoved(), forwarderUpdated(), DtAssistantMgr::myPeer, DtAssistantMgr::myServer, processAssistantCommandMsg(), processConnectionsRemoval(), processConnectionsUpdate(), processForwarderObserveMsg(), processForwarderStateMsgForConnection(), provideForwarderInfo(), DtAssistantSignalRouter::registerQueryResponder(), DtAssistantSignalRouter::registerSignal(), DtAssistantSignalRouter::registerSlot(), sendAllForwarderInfo(), and sendObserveForwarderMsg().
| DtAssistantNetworkCompInfoMgr::~DtAssistantNetworkCompInfoMgr | ( | ) |
Destructor.
References DtAssistantMgr::myPeer, DtAssistantMgr::myServer, processAssistantCommandMsg(), processForwarderObserveMsg(), processForwarderStateMsgForConnection(), DtAssistantForwarderStateMsg::removeCallback(), DtAssistantCommandMsg::removeCallback(), and DtAssistantStateObserveMsg::removeCallback().
|
private |
Copy Constructor not implemented – Copy Not Allowed!
|
slot |
Handle a change in the defunct federation removal time.
References myConnInfoMgr, myDefunctRemovalTime, myRemotelyViewedRtiForwarders, DtAssistantMgr::myServer, myTimeStateUpdateInterval, and myViewedRtiForwarder.
Referenced by DtAssistantNetworkCompInfoMgr().
|
signal |
Emitted when a new forwarder is discovered.
Referenced by DtAssistantNetworkCompInfoMgr(), and processConnectionsUpdate().
|
signal |
Emitted when the connection info of a known forwarder is updated.
Referenced by DtAssistantNetworkCompInfoMgr(), and processConnectionsUpdate().
|
virtual |
Gets the stored information for the given forwarder.
References myLocalForwarders, and myRemoteForwarders.
Referenced by provideForwarderInfo().
|
signal |
Emitted when a known forwarder is removed.
Referenced by DtAssistantNetworkCompInfoMgr(), processConnectionsRemoval(), and processConnectionsUpdate().
|
signal |
Emitted when a known forwarder is updated.
Referenced by DtAssistantNetworkCompInfoMgr(), processForwarderStateMsgForConnection(), and viewNetworkComponentsForConnection().
|
virtual |
Called by the callback function to process a forwarder state message.
References myCompMgr, myRequestedRtiForwarderUpdates, DtAssistantMgr::myServer, and DtAssistantForwarderStateMsg::toString().
Referenced by processForwarderStateMsgForConnection().
|
virtual |
Returns true if the given forwarder connection is for an active local forwarder.
References myLocalForwarders.
|
virtual |
Returns true if the given forwarder connection is for an active remote forwarder.
References myRemoteForwarders.
|
private |
Assignment not implemented – Assignment Not Allowed!
|
static |
Processes an RTI Assistant command message.
Referenced by DtAssistantNetworkCompInfoMgr(), and ~DtAssistantNetworkCompInfoMgr().
|
virtual |
Processes an RTI Assistant command message.
References DtAssistantCommandMsg::commandType(), DtAssistantCommandListForwarder, DtAssistantMgr::myServer, and requestSingleUpdateFromConnectedForwarders().
|
slot |
Processes removal of known connections.
References DtRtiConnectionAndConfiguration::connections(), forwarderRemoved(), myLocalForwarders, and myRemoteForwarders.
Referenced by DtAssistantNetworkCompInfoMgr().
|
slot |
Processes changes in connection state.
References DtRtiConnectionAndConfiguration::connections(), forwarderAdded(), forwarderConnUpdated(), forwarderRemoved(), myLocalForwarders, and myRemoteForwarders.
Referenced by DtAssistantNetworkCompInfoMgr().
|
static |
Callback to process a forwarder state message.
Referenced by DtAssistantNetworkCompInfoMgr(), and ~DtAssistantNetworkCompInfoMgr().
|
virtual |
Called by the callback function to process a forwarder state message.
References DtAssistantComponentInfo::compId(), DtAssistantMsg::compId(), DtAssistantComponentInfo::connUsed(), DtAssistantStateObserveForwarder, DtAssistantStateObserveForwarderPersistent, DtAssistantStateObserveMsg::getConnection(), DtAssistantMsg::isAssistantToAssistantMessage(), DtAssistantStateObserveMsg::isLogRequest(), DtAssistantStateObserveMsg::isObserved(), myCompMgr, myDefunctRemovalTime, myLocalForwarders, DtAssistantMgr::myPeer, myRemotelyViewedConnectionsNeedingUpdate, myRemotelyViewedRtiForwarders, DtAssistantMgr::myServer, myTimeStateUpdateInterval, myViewedRtiForwarder, DtAssistantMsg::sourceAddr(), DtAssistantMsg::sourceHost(), DtAssistantMsg::sourceId(), and DtAssistantStateObserveMsg::targetType().
|
static |
Called to process a forwarder state message on behalf of an rtiAssistanttoAssistantClient that requested the data.
Referenced by DtAssistantNetworkCompInfoMgr(), and ~DtAssistantNetworkCompInfoMgr().
|
virtual |
Called by the callback function to process a federation state message on behalf of an rtiAssistanttoAssistantClient that requested the data.
References DtAssistantMsg::compId(), DtAssistantComponentInfo::connUsed(), forwarderUpdated(), handleRtiCommands(), DtAssistantMsg::isAssistantToAssistantMessage(), DtRtiConnectionInfo::isValid(), myCompMgr, myConnInfoMgr, myLocalForwarders, DtAssistantMgr::myPeer, myRemoteForwarders, myRemotelyViewedConnectionsNeedingUpdate, DtAssistantMgr::myServer, myViewedRtiForwarder, DtAssistantMsg::sourceAddr(), DtAssistantMsg::sourceHost(), and DtAssistantMsg::sourceId().
|
slot |
Response to a query for forwarder info.
References forwarderInfo().
Referenced by DtAssistantNetworkCompInfoMgr().
|
protectedvirtual |
If there were RTI Forwarder updates that timed out, we send back the incomplete msg.
References myClock, myCompMgr, myRequestedRtiForwarderUpdates, and DtAssistantMgr::myServer.
Referenced by tick().
|
virtual |
Performs a single data request of the connected RTI Forwarders.
References myClock, myCompMgr, myRequestedRtiForwarderUpdates, DtAssistantMgr::myServer, and theTimeToWaitForForwarderInfo.
Referenced by processAssistantCommandMsg().
|
slot |
Sends udpate message for all local conns to remote assistants.
References myConnInfoMgr, myLocalForwarders, DtAssistantMgr::myPeer, myRemotelyViewedConnectionsNeedingUpdate, and myRemotelyViewedRtiForwarders.
Referenced by DtAssistantNetworkCompInfoMgr().
|
slot |
Sends a message indicating the current connection whose forwarder is being observed by this assistant.
References DtRtiConnectionInfo::isValid(), myConnInfoMgr, DtAssistantMgr::myPeer, and myViewedRtiForwarder.
Referenced by DtAssistantNetworkCompInfoMgr().
|
virtual |
Performs tasks that need to be completed periodically.
Reimplemented from DtAssistantMgr.
References myConnInfoMgr, myDefunctRemovalTime, myRemotelyViewedRtiForwarders, myRequestedRtiForwarderUpdates, DtAssistantMgr::myServer, myTimeStateUpdateInterval, myViewedRtiForwarder, and pruneTimedOutSingleUpdates().
|
virtual |
Sets the connection which is currently being viewed.
References forwarderUpdated(), DtRtiConnectionInfo::invalidConn(), DtRtiConnectionInfo::isValid(), myConnInfoMgr, myDefunctRemovalTime, myLocalForwarders, DtAssistantMgr::myPeer, myRemoteForwarders, myRemotelyViewedRtiForwarders, DtAssistantMgr::myServer, and myViewedRtiForwarder.
|
protected |
Clock used to determine if we need to resend lost messages.
Referenced by pruneTimedOutSingleUpdates(), and requestSingleUpdateFromConnectedForwarders().
|
protected |
The local RTI component manager.
Referenced by handleRtiCommands(), processForwarderObserveMsg(), processForwarderStateMsgForConnection(), pruneTimedOutSingleUpdates(), and requestSingleUpdateFromConnectedForwarders().
|
protected |
The connection info manager.
Referenced by federateRemovalTimeChanged(), processForwarderStateMsgForConnection(), sendAllForwarderInfo(), sendObserveForwarderMsg(), tick(), and viewNetworkComponentsForConnection().
|
protected |
Defunct removal time for dropped federates.
Referenced by federateRemovalTimeChanged(), processForwarderObserveMsg(), tick(), and viewNetworkComponentsForConnection().
|
protected |
information on all local forwarders.
Referenced by forwarderInfo(), isLocalForwarder(), processConnectionsRemoval(), processConnectionsUpdate(), processForwarderObserveMsg(), processForwarderStateMsgForConnection(), sendAllForwarderInfo(), and viewNetworkComponentsForConnection().
|
protected |
information on all known remote forwarders.
Referenced by forwarderInfo(), isRemoteForwarder(), processConnectionsRemoval(), processConnectionsUpdate(), processForwarderStateMsgForConnection(), and viewNetworkComponentsForConnection().
|
protected |
Local forwarder connections currently being viewed by remote Assistants which require an update to be sent as soon as we get one.
Referenced by processForwarderObserveMsg(), processForwarderStateMsgForConnection(), and sendAllForwarderInfo().
|
protected |
Local forwarder connections currently being viewed by remote Assistants, and the set of all Assistants which are viewing them.
Referenced by federateRemovalTimeChanged(), processForwarderObserveMsg(), sendAllForwarderInfo(), tick(), and viewNetworkComponentsForConnection().
|
protected |
Referenced by handleRtiCommands(), pruneTimedOutSingleUpdates(), requestSingleUpdateFromConnectedForwarders(), and tick().
|
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.
Referenced by federateRemovalTimeChanged(), processForwarderObserveMsg(), and tick().
|
protected |
The forwarder connection currently being viewed at this Assistant.
Referenced by federateRemovalTimeChanged(), processForwarderObserveMsg(), processForwarderStateMsgForConnection(), sendObserveForwarderMsg(), tick(), and viewNetworkComponentsForConnection().
|
staticprotected |
The time, in seconds, to wait for information from the remotely viewed RTI Forwarder before resending the observation request.
Referenced by requestSingleUpdateFromConnectedForwarders().