MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Slots | Signals | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtAssistantFederationsViewMgr Class Reference

Compiles federation information from rtiForwarders and displays federation view dialogs. More...

+ Inheritance diagram for DtAssistantFederationsViewMgr:
+ Collaboration diagram for DtAssistantFederationsViewMgr:

Classes

struct  DtCompRidParamDispStruct
 Structure to hold all information to display RID parameters for a single component. More...

Public Slots

void showFederationsView ()
 Displays the Federations view dialog.
virtual void sendLogRequest ()
 Sends a request to the currently displayed rtiexec for its log.
void connectForeignAssistant (const QString &hostName, const QString &hostIp, const QString &localInterface)
 Connect to foreign assistant.
void disconnectForeignAssistant (const QString &hostName, const QString &hostIP, const QString &localInterface)
 Disconnect from foreign assistant.
void startupRtiexec ()
 Start up an rtiexec.
void shutdownRtiexec ()
 Shuts down the currently viewed rtiexec.
void startupRtiForwarder ()
 Start up an RTI Forwarder.
void connectRtiForwarder (const DtRtiConnectionInfo &connection)
 Processes a command to connect RTI Forwarders from the forwarder of the current viewed connection to the forwarder of the given connection.
void shutdownRtiForwarder ()
 Shuts down the currently viewed RTI Forwarder.
void processForwarderAdded (const DtRtiConnectionInfo &conn)
 Processes the addition of a new forwarder.
void processForwarderConnUpdated (const DtRtiConnectionInfo &conn)
 Processes an update of the connection info for a known forwarder.
void processForwarderUpdated (const DtRtiConnectionInfo &conn)
 Processes an update for a known forwarder.
void processForwarderRemoved (const DtRtiConnectionInfo &conn)
 Processes the removal of a known forwarder.
void processDoNotWaitForForwarders (QWidget *dlg)
 Processes a request to tell the forwarder to proceed without waiting for unconnected forwarders.
void processShutDownWaitingForwarder (QWidget *dlg)
 Processes a request to shut down a forwarder which is waiting for other forwarder connections to be established.
void changeViewedConnection (const DtRtiConnectionInfo &conn=DtRtiConnectionInfo::invalidConn())
 Changes which connection is currently being viewed.
void resignFederate (int, const QString &)
 Tells the rtiexec to resign the given federate.
void destroyFederation (const QString &)
 Tells the rtiexec to destroy the given federation.
void sendNetworkTestingEnableMsg (const QString &fedexName)
 Sends a message to enable network testing for the given federation.
void sendNetworkTestingDisableMsg (const QString &fedexName)
 Sends a message to disable network testing for the given federation.
void showLatencyTestDialog (const QString &fedexName, int fedHandle)
 Opens a latency test dialog for the specified federate.
void processFederationUpdate (const DtRtiConnectionInfo &conn, const MAKRti::DtString &federationName)
 Handles a federation update.
void processFederationRemoved (const DtRtiConnectionInfo &conn, const MAKRti::DtString &federationName)
 Handles the removal of a federation.
void processFederateUpdated (const DtRtiConnectionInfo &conn, const MAKRti::DtString &federationName, unsigned federateHandle)
 Handles the addition of a new federate.
void processFederateRemoved (const DtRtiConnectionInfo &conn, const MAKRti::DtString &federationName, unsigned federateHandle)
 Handles the removal of a federate.
void removeLoadingIndication (const DtRtiConnectionInfo &conn)
 Removes loading indication when an rtiexec responds to observation.
void saveToLog ()
 Saves the currently displayed federation information to a log file.
void processConnectionsUpdate (const DtRtiConnectionAndConfiguration &conns)
 Processes changes in connection state.
void processConnectionsRemoval (const DtRtiConnectionAndConfiguration &conns)
 Processes the remove of connections.
void showFederationsViewPreferences ()
 Show the preferences dialog.
void processFederateSelection (const MAKRti::DtString &federation, int federate)
 Process selection of a federate.
void processRtiexecSelection ()
 Process selection of an rtiexec.
void processForwarderSelection (const MAKRti::DtString &fwHostName, int port)
 Process selection of a forwarder.
void processPeerForwarderSelection (const MAKRti::DtString &fwHostName, int port)
 Process selection of a forwarder.
void processFederationSelection (const MAKRti::DtString &federation)
 Process addition of a remote forwarder node to network map widget.
void processLightweightNodeSelection ()
 Process selection of the central lightweight node.
void showSyncPtDialog (const MAKRti::DtString &federation)
 Shows a sync point dialog for the specified federation.
void showFederateStatsDialog (const MAKRti::DtString &federation, int federateHandle)
 Shows the federate statistics dialog for the specified federate.
void showFomDialog (const MAKRti::DtString &federation, int federateHandle)
 Shows the federate statistics dialog for the specified federate.
void showRtiexecRidParams ()
 Shows the RID parameter dialog for the current rtiexec.
void showForwarderRidParams ()
 Shows the RID parameter dialog for the current forwarder.
void showFederateRidParams (const MAKRti::DtString &federation, int federateHandle)
 Shows the RID parameter dialog for the specified federate.
void destroyRidParamDialog (QWidget *widget)
 Destroys the RID parameter dialog specified by widget.
void sendPendingRidRequest (const DtRtiConnectionInfo &connInfo, const MAKRti::DtString &federationName, unsigned federateHdl, const DtAssistantInfo &astnt, unsigned compId)
 Attempt to send a pending RID request for the specified federate.
void showRtiexecLog ()
 Shows the log file dialog for the current rtiexec.
void showForwarderLog ()
 Shows the log file dialog for the current forwarder.
void showFederateLog (const MAKRti::DtString &federation, int federateHandle)
 Shows the log file dialog for the specified federate.
void removeDefunctFederateFromMap (const MAKRti::DtString &federation, int federateHandle)
 Remove the given defunct federate from the network map.
void processAssistantFound (const DtAssistantInfo &assistant)
 Forward the signal that an assistant has been found.
void processAssistantLost (const DtAssistantInfo &assistant)
 Forward the signal that an assistant has been lost.
- Public Slots inherited from DtAssistantMgr
void displayWarningDialogs ()
 Displays all warning dialogs.

Signals

void aboutDialogRequested ()
 Emitted when the RTI about dialog is requested.
void showPopup (const MAKRti::DtString &, const MAKRti::DtString &, const MAKRti::DtString &)
 Emitted when a popup dialog from a remote rtiexec should be displayed.
void federateRemovalTimeChanged (float period)
 Emitted when the defunct federate removal time changes.
void showConfigDialog (DtPreferencesPage pageId)
 Shows the config dialog;.
void showLrcLatencyTestDialog (int id)
 Shows the latency test dialog for the LRC component.
void showRtiexecLatencyTestDialog (const DtRtiConnectionInfoDataPair &connInfo, unsigned int federationHdl, const MAKRti::DtString &federationName, unsigned int federateHdl)
 Shows the latency test dialog for the rtiexec component.
void showFederateStatsDialog (const DtRtiConnectionInfo &connInfo, const MAKRti::DtString &federationName, unsigned int federateHdl)
 Emitted to show the federate stats dialog for the given federate.
void showFomDialog (const DtRtiConnectionInfo &connInfo, const MAKRti::DtString &federationName, unsigned int federateHdl)
 Emitted to show the fom dialog for the given federate.
void requestFederateLoc (const DtRtiConnectionInfo &connInfo, const MAKRti::DtString &federationName, unsigned int federateHdl)
 Emitted to request a federate's loc.
void showLogFileDialog (int compId)
 Emitted to show the log file dialog for the given component.
void queryFederateInfo (const DtRtiConnectionInfo &, const MAKRti::DtString &, unsigned, const DtAssistantFederateInfo **)
 Queries for federation information.
void internalConnectionQuery (DtAssistantComponentType)
 Request a connection query for internal use.
void assistantFound (const DtAssistantInfo &assistant)
 Forward the signal that an assistant has been found.
void assistantLost (const DtAssistantInfo &assistant)
 Forward the signal that an assistant has been lost.
void queryAssistantInfo (const DtAssistantUuid &, DtAssistantInfo *infoIn)
 Queries for assistant information.
- 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

 DtAssistantFederationsViewMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter, DtBoost::shared_ptr< DtAssistantComponentMgr > compMgr, DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > connInfoMgr, DtBoost::shared_ptr< DtAssistantFederationsInfoMgr > fedInfoMgr, DtBoost::shared_ptr< DtAssistantForwarderCompInfoMgr > netCompInfoMgr, const MAKRti::DtFilename &configDir)
 Constructor.
 ~DtAssistantFederationsViewMgr ()
 Destructor.
virtual void tick ()
 Performs tasks that need to be completed periodically.
virtual void startShutdown ()
 Performs any necessary processing at the start of shutdown.
virtual bool dialogsVisible () const
 Determines if this manager has any visible dialogs.
void saveGuiState ()
 Saves the current GUI state.
- 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 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,
DtForwarderConnStatusDialog * > 
DtConnectionToFwStatusDialogMap
typedef std::pair
< DtAssistantInfo, int > 
DtUniqueCompId
 The assistant information and component ID of a component uniquely identify it across the entire network of connected assistants.
typedef std::map
< DtUniqueCompId,
DtCompRidParamDispStruct
DtRidParmDlgByComp
 Map of component IDs to their RID param dialog info.

Protected Member Functions

virtual void processConnectionRemoval (const DtRtiConnectionInfoDataPair &conn)
 Processes the removal of a known connection.
void logConnectionInfo (std::ofstream &fileStrm)
 Logs connection info to the file stream.
void logFederationInfo (std::ofstream &fileStrm)
 Logs full federation info to the file stream.
void logFomInfo (std::ofstream &fileStrm, const std::list< MAKRti::DtString > *foms)
 Logs FED file/FOM module info to the file stream.
void logFederateInfo (std::ofstream &fileStrm, const DtFederateInfoByHandleMap *federates, const DtAssistantForwarderInfo *fwInfo)
 Logs federates' info to the file stream.
void showRidDialog (const QString &name, const DtAssistantInfo &assistant, int compId)
 Shows a new RID dialog for the given component, identified by its assistant and component ID, displayed with the given name.
void createRidDialog (const QString &name, DtCompRidParamDispStruct &dispInfo)
 Creates a new RID dialog.
void updateRidParams (const DtAssistantInfo &assistant, int compId, const MAKRti::DtString &params, const MAKRti::DtString &filename, const MAKRti::DtString &federation, unsigned federateHdl)
 Updates and existing RID parameters dialog.
virtual void updatePeerForwarders (const DtAssistantForwarderInfo::DtPeerForwarderByAddrMap *newFwds, const DtAssistantForwarderInfo::DtPeerForwarderByAddrMap *oldFwds)
 Processes updates to the peer forwarders.
virtual void updateRtiexecCompInfo (const DtAssistantNetworkCompInfo *newInfo, const DtAssistantNetworkCompInfo *oldInfo)
 Processes update to the rtiexec component info.
virtual void updateFederateCompInfo (const DtAssistantForwarderInfo::DtCompByFederationAndHandleMap *newInfo, const DtAssistantForwarderInfo::DtCompByFederationAndHandleMap *oldInfo, const DtFederationStateByNameMap *federationMap)
 Processes update to the federate component info.
virtual void updateUnclassifiedComps (const DtAssistantNetworkCompInfoList *newInfo, const DtAssistantNetworkCompInfoList *oldInfo)
 Processes update to components which have connected to the forwarder but have not yet been classified (usually unjoined federates)
- 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.
virtual DtAssistantInfo assistantInfoFromAssistantMsg (const DtAssistantMsg &assistantMsg, DtInetAddrSet *interfaces=0)

Protected Attributes

DtBoost::shared_ptr
< DtAssistantComponentMgr
myCompMgr
 The local RTI component manager.
DtBoost::shared_ptr
< DtAssistantConnectionInfoMgr
myConnInfoMgr
 The connection info manager.
DtBoost::shared_ptr
< DtAssistantFederationsInfoMgr
myFedInfoMgr
 The federations info manager.
DtBoost::shared_ptr
< DtAssistantForwarderCompInfoMgr
myNetCompInfoMgr
 The federations info manager.
DtRtiConnectionInfo myViewedConnection
 The connection currently being viewed at this Assistant.
DtAssistantForwarderInfo myCurrentForwarderInfo
 The information on the currently displayed forwarder connection.
const DtAssistantForwarderInfo myEmptyForwaderInfo
std::set< std::pair
< MAKRti::DtString, unsigned > > 
myLightweightFederates
 The federations and handles of the currently displayed lightweight federates.
DtFederationsViewDialogmyFederationsViewDialog
 The dialog to display the federations view.
MAKRti::DtClock myClock
 Clock used to determine if we need to resend lost messages.
bool myReceivedRemoteForwarderInfo
 Indicates if we have yet received an update on a remote Forwarder we are currently viewing.
MAKRti::DtTime myRemoteForwarderInfoTimeout
 Time at which we assume our request to observe a remote Forwarder was lost, causing us to resend it.
DtConnectionToFwStatusDialogMap myFwStatusDlgMap
 The map of forwarder connection info to forwarder status dialogs.
QSignalMapper * myFwStatusAcceptSigMapper
 Signal mapper for DtForwarderConnStatusDialog accepted signals.
QSignalMapper * myFwStatusRejectSigMapper
 Signal mapper for DtForwarderConnStatusDialog rejected signals.
std::map< MAKRti::DtString,
DtSyncPtDialog * > 
mySyncPtDialogs
 The dialogs which show sync point information for a particular federation, indexed by federation name.
QSignalMapper * myRidDialogSignalMapper
 Maps the close signals for RID parameter dialogs.
DtRidParmDlgByComp myRidParamDialogs
 A map of all of our open RID parameter dialogs.
std::list
< DtCompRidParamDispStruct
myPendingFederateRidDialogs
 Our federate RID parameter dialogs which are currently loading.
QString mySavedFile
 The previously saved file name.
- 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 theUpdatePeriod
 The period, in seconds, to send updates on remotely observed federations that have been updated.
static const unsigned theMaxLogLoadSize
 The maximum number of bytes that can be requested from an rtiexec log.
- 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
 Whether or not the icons have yet been loaded.

Private Member Functions

 DtAssistantFederationsViewMgr (DtAssistantFederationsViewMgr const &)
 Copy Constructor not implemented – Copy Not Allowed!
DtAssistantFederationsViewMgroperator= (DtAssistantFederationsViewMgr const &)
 Assignment not implemented – Assignment Not Allowed!

Message Callbacks

Callbacks for federation information messages

virtual void processExecObserveRspMsg (const DtAssistantExecObserveRspMsg &msg)
 Called by the callback function to process an rtiexec observe response message.
virtual void processRtiexecNotifyMsg (const DtAssistantNotifyMsg &msg)
 Called by the callback function to process a viewed rtiexec notify msg.
virtual void processAwaitingForwardersMsg (const DtAssistantAwaitingForwardersMsg &msg)
 Called by the callback function to process an awaiting forwarders msg.
virtual void processRidParamMsg (const DtAssistantRidParamsMsg &msg)
 Called by the callback function to process a RID parameter message.
virtual void processForwardersConnectMsg (const DtAssistantForwarderConnectMsg &msg)
 Called by the callback function to process a RID parameter message.
static void processExecObserveRspMsg (const DtAssistantExecObserveRspMsg &msg, void *usr)
 Callback to process an rtiexec observe response message.
static void processRtiexecNotifyMsg (const DtAssistantNotifyMsg &msg, void *usr)
 Callback to process a notify message from a viewed rtiexec.
static void processAwaitingForwardersMsg (const DtAssistantAwaitingForwardersMsg &msg, void *usr)
 Callback to process an awaiting forwarders message from a local forwarder.
static void processRidParamMsg (const DtAssistantRidParamsMsg &msg, void *usr)
 Callback to process a RID parameter message.
static void processForwardersConnectMsg (const DtAssistantForwarderConnectMsg &msg, void *usr)
 Callback to process a RID parameter message.

Detailed Description

Compiles federation information from rtiForwarders and displays federation view dialogs.

Member Typedef Documentation

Map of component IDs to their RID param dialog info.

The assistant information and component ID of a component uniquely identify it across the entire network of connected assistants.

Constructor & Destructor Documentation

DtAssistantFederationsViewMgr::DtAssistantFederationsViewMgr ( DtBoost::shared_ptr< DtRtiAssistantServer server,
DtBoost::shared_ptr< DtRtiAssistantPeer peer,
DtAssistantSignalRouter signalRouter,
DtBoost::shared_ptr< DtAssistantComponentMgr compMgr,
DtBoost::shared_ptr< DtAssistantConnectionInfoMgr connInfoMgr,
DtBoost::shared_ptr< DtAssistantFederationsInfoMgr fedInfoMgr,
DtBoost::shared_ptr< DtAssistantForwarderCompInfoMgr netCompInfoMgr,
const MAKRti::DtFilename &  configDir 
)

Constructor.

DtAssistantFederationsViewMgr::~DtAssistantFederationsViewMgr ( )

Destructor.

DtAssistantFederationsViewMgr::DtAssistantFederationsViewMgr ( DtAssistantFederationsViewMgr const &  )
private

Copy Constructor not implemented – Copy Not Allowed!

Member Function Documentation

void DtAssistantFederationsViewMgr::aboutDialogRequested ( )
signal

Emitted when the RTI about dialog is requested.

void DtAssistantFederationsViewMgr::assistantFound ( const DtAssistantInfo assistant)
signal

Forward the signal that an assistant has been found.

void DtAssistantFederationsViewMgr::assistantLost ( const DtAssistantInfo assistant)
signal

Forward the signal that an assistant has been lost.

void DtAssistantFederationsViewMgr::changeViewedConnection ( const DtRtiConnectionInfo conn = DtRtiConnectionInfo::invalidConn())
slot

Changes which connection is currently being viewed.

void DtAssistantFederationsViewMgr::connectForeignAssistant ( const QString &  hostName,
const QString &  hostIp,
const QString &  localInterface 
)
slot

Connect to foreign assistant.

void DtAssistantFederationsViewMgr::connectRtiForwarder ( const DtRtiConnectionInfo connection)
slot

Processes a command to connect RTI Forwarders from the forwarder of the current viewed connection to the forwarder of the given connection.

void DtAssistantFederationsViewMgr::createRidDialog ( const QString &  name,
DtCompRidParamDispStruct dispInfo 
)
protected

Creates a new RID dialog.

void DtAssistantFederationsViewMgr::destroyFederation ( const QString &  )
slot

Tells the rtiexec to destroy the given federation.

void DtAssistantFederationsViewMgr::destroyRidParamDialog ( QWidget widget)
slot

Destroys the RID parameter dialog specified by widget.

virtual bool DtAssistantFederationsViewMgr::dialogsVisible ( ) const
virtual

Determines if this manager has any visible dialogs.

Reimplemented from DtAssistantMgr.

void DtAssistantFederationsViewMgr::disconnectForeignAssistant ( const QString &  hostName,
const QString &  hostIP,
const QString &  localInterface 
)
slot

Disconnect from foreign assistant.

void DtAssistantFederationsViewMgr::federateRemovalTimeChanged ( float  period)
signal

Emitted when the defunct federate removal time changes.

void DtAssistantFederationsViewMgr::internalConnectionQuery ( DtAssistantComponentType  )
signal

Request a connection query for internal use.

void DtAssistantFederationsViewMgr::logConnectionInfo ( std::ofstream &  fileStrm)
protected

Logs connection info to the file stream.

void DtAssistantFederationsViewMgr::logFederateInfo ( std::ofstream &  fileStrm,
const DtFederateInfoByHandleMap federates,
const DtAssistantForwarderInfo fwInfo 
)
protected

Logs federates' info to the file stream.

void DtAssistantFederationsViewMgr::logFederationInfo ( std::ofstream &  fileStrm)
protected

Logs full federation info to the file stream.

void DtAssistantFederationsViewMgr::logFomInfo ( std::ofstream &  fileStrm,
const std::list< MAKRti::DtString > *  foms 
)
protected

Logs FED file/FOM module info to the file stream.

DtAssistantFederationsViewMgr& DtAssistantFederationsViewMgr::operator= ( DtAssistantFederationsViewMgr const &  )
private

Assignment not implemented – Assignment Not Allowed!

void DtAssistantFederationsViewMgr::processAssistantFound ( const DtAssistantInfo assistant)
slot

Forward the signal that an assistant has been found.

void DtAssistantFederationsViewMgr::processAssistantLost ( const DtAssistantInfo assistant)
slot

Forward the signal that an assistant has been lost.

static void DtAssistantFederationsViewMgr::processAwaitingForwardersMsg ( const DtAssistantAwaitingForwardersMsg msg,
void *  usr 
)
static

Callback to process an awaiting forwarders message from a local forwarder.

virtual void DtAssistantFederationsViewMgr::processAwaitingForwardersMsg ( const DtAssistantAwaitingForwardersMsg msg)
virtual

Called by the callback function to process an awaiting forwarders msg.

virtual void DtAssistantFederationsViewMgr::processConnectionRemoval ( const DtRtiConnectionInfoDataPair conn)
protectedvirtual

Processes the removal of a known connection.

void DtAssistantFederationsViewMgr::processConnectionsRemoval ( const DtRtiConnectionAndConfiguration conns)
slot

Processes the remove of connections.

void DtAssistantFederationsViewMgr::processConnectionsUpdate ( const DtRtiConnectionAndConfiguration conns)
slot

Processes changes in connection state.

void DtAssistantFederationsViewMgr::processDoNotWaitForForwarders ( QWidget dlg)
slot

Processes a request to tell the forwarder to proceed without waiting for unconnected forwarders.

static void DtAssistantFederationsViewMgr::processExecObserveRspMsg ( const DtAssistantExecObserveRspMsg msg,
void *  usr 
)
static

Callback to process an rtiexec observe response message.

virtual void DtAssistantFederationsViewMgr::processExecObserveRspMsg ( const DtAssistantExecObserveRspMsg msg)
virtual

Called by the callback function to process an rtiexec observe response message.

void DtAssistantFederationsViewMgr::processFederateRemoved ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName,
unsigned  federateHandle 
)
slot

Handles the removal of a federate.

void DtAssistantFederationsViewMgr::processFederateSelection ( const MAKRti::DtString &  federation,
int  federate 
)
slot

Process selection of a federate.

void DtAssistantFederationsViewMgr::processFederateUpdated ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName,
unsigned  federateHandle 
)
slot

Handles the addition of a new federate.

void DtAssistantFederationsViewMgr::processFederationRemoved ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName 
)
slot

Handles the removal of a federation.

void DtAssistantFederationsViewMgr::processFederationSelection ( const MAKRti::DtString &  federation)
slot

Process addition of a remote forwarder node to network map widget.

Process selection of a federation

void DtAssistantFederationsViewMgr::processFederationUpdate ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName 
)
slot

Handles a federation update.

void DtAssistantFederationsViewMgr::processForwarderAdded ( const DtRtiConnectionInfo conn)
slot

Processes the addition of a new forwarder.

void DtAssistantFederationsViewMgr::processForwarderConnUpdated ( const DtRtiConnectionInfo conn)
slot

Processes an update of the connection info for a known forwarder.

void DtAssistantFederationsViewMgr::processForwarderRemoved ( const DtRtiConnectionInfo conn)
slot

Processes the removal of a known forwarder.

static void DtAssistantFederationsViewMgr::processForwardersConnectMsg ( const DtAssistantForwarderConnectMsg msg,
void *  usr 
)
static

Callback to process a RID parameter message.

virtual void DtAssistantFederationsViewMgr::processForwardersConnectMsg ( const DtAssistantForwarderConnectMsg msg)
virtual

Called by the callback function to process a RID parameter message.

void DtAssistantFederationsViewMgr::processForwarderSelection ( const MAKRti::DtString &  fwHostName,
int  port 
)
slot

Process selection of a forwarder.

void DtAssistantFederationsViewMgr::processForwarderUpdated ( const DtRtiConnectionInfo conn)
slot

Processes an update for a known forwarder.

void DtAssistantFederationsViewMgr::processLightweightNodeSelection ( )
slot

Process selection of the central lightweight node.

void DtAssistantFederationsViewMgr::processPeerForwarderSelection ( const MAKRti::DtString &  fwHostName,
int  port 
)
slot

Process selection of a forwarder.

static void DtAssistantFederationsViewMgr::processRidParamMsg ( const DtAssistantRidParamsMsg msg,
void *  usr 
)
static

Callback to process a RID parameter message.

virtual void DtAssistantFederationsViewMgr::processRidParamMsg ( const DtAssistantRidParamsMsg msg)
virtual

Called by the callback function to process a RID parameter message.

static void DtAssistantFederationsViewMgr::processRtiexecNotifyMsg ( const DtAssistantNotifyMsg msg,
void *  usr 
)
static

Callback to process a notify message from a viewed rtiexec.

virtual void DtAssistantFederationsViewMgr::processRtiexecNotifyMsg ( const DtAssistantNotifyMsg msg)
virtual

Called by the callback function to process a viewed rtiexec notify msg.

void DtAssistantFederationsViewMgr::processRtiexecSelection ( )
slot

Process selection of an rtiexec.

void DtAssistantFederationsViewMgr::processShutDownWaitingForwarder ( QWidget dlg)
slot

Processes a request to shut down a forwarder which is waiting for other forwarder connections to be established.

void DtAssistantFederationsViewMgr::queryAssistantInfo ( const DtAssistantUuid ,
DtAssistantInfo infoIn 
)
signal

Queries for assistant information.

void DtAssistantFederationsViewMgr::queryFederateInfo ( const DtRtiConnectionInfo ,
const MAKRti::DtString &  ,
unsigned  ,
const DtAssistantFederateInfo **   
)
signal

Queries for federation information.

void DtAssistantFederationsViewMgr::removeDefunctFederateFromMap ( const MAKRti::DtString &  federation,
int  federateHandle 
)
slot

Remove the given defunct federate from the network map.

void DtAssistantFederationsViewMgr::removeLoadingIndication ( const DtRtiConnectionInfo conn)
slot

Removes loading indication when an rtiexec responds to observation.

void DtAssistantFederationsViewMgr::requestFederateLoc ( const DtRtiConnectionInfo connInfo,
const MAKRti::DtString &  federationName,
unsigned int  federateHdl 
)
signal

Emitted to request a federate's loc.

void DtAssistantFederationsViewMgr::resignFederate ( int  ,
const QString &   
)
slot

Tells the rtiexec to resign the given federate.

void DtAssistantFederationsViewMgr::saveGuiState ( )

Saves the current GUI state.

void DtAssistantFederationsViewMgr::saveToLog ( )
slot

Saves the currently displayed federation information to a log file.

virtual void DtAssistantFederationsViewMgr::sendLogRequest ( )
virtualslot

Sends a request to the currently displayed rtiexec for its log.

void DtAssistantFederationsViewMgr::sendNetworkTestingDisableMsg ( const QString &  fedexName)
slot

Sends a message to disable network testing for the given federation.

void DtAssistantFederationsViewMgr::sendNetworkTestingEnableMsg ( const QString &  fedexName)
slot

Sends a message to enable network testing for the given federation.

void DtAssistantFederationsViewMgr::sendPendingRidRequest ( const DtRtiConnectionInfo connInfo,
const MAKRti::DtString &  federationName,
unsigned  federateHdl,
const DtAssistantInfo astnt,
unsigned  compId 
)
slot

Attempt to send a pending RID request for the specified federate.

void DtAssistantFederationsViewMgr::showConfigDialog ( DtPreferencesPage  pageId)
signal

Shows the config dialog;.

void DtAssistantFederationsViewMgr::showFederateLog ( const MAKRti::DtString &  federation,
int  federateHandle 
)
slot

Shows the log file dialog for the specified federate.

void DtAssistantFederationsViewMgr::showFederateRidParams ( const MAKRti::DtString &  federation,
int  federateHandle 
)
slot

Shows the RID parameter dialog for the specified federate.

void DtAssistantFederationsViewMgr::showFederateStatsDialog ( const MAKRti::DtString &  federation,
int  federateHandle 
)
slot

Shows the federate statistics dialog for the specified federate.

void DtAssistantFederationsViewMgr::showFederateStatsDialog ( const DtRtiConnectionInfo connInfo,
const MAKRti::DtString &  federationName,
unsigned int  federateHdl 
)
signal

Emitted to show the federate stats dialog for the given federate.

void DtAssistantFederationsViewMgr::showFederationsView ( )
slot

Displays the Federations view dialog.

void DtAssistantFederationsViewMgr::showFederationsViewPreferences ( )
slot

Show the preferences dialog.

void DtAssistantFederationsViewMgr::showFomDialog ( const MAKRti::DtString &  federation,
int  federateHandle 
)
slot

Shows the federate statistics dialog for the specified federate.

void DtAssistantFederationsViewMgr::showFomDialog ( const DtRtiConnectionInfo connInfo,
const MAKRti::DtString &  federationName,
unsigned int  federateHdl 
)
signal

Emitted to show the fom dialog for the given federate.

void DtAssistantFederationsViewMgr::showForwarderLog ( )
slot

Shows the log file dialog for the current forwarder.

void DtAssistantFederationsViewMgr::showForwarderRidParams ( )
slot

Shows the RID parameter dialog for the current forwarder.

void DtAssistantFederationsViewMgr::showLatencyTestDialog ( const QString &  fedexName,
int  fedHandle 
)
slot

Opens a latency test dialog for the specified federate.

void DtAssistantFederationsViewMgr::showLogFileDialog ( int  compId)
signal

Emitted to show the log file dialog for the given component.

void DtAssistantFederationsViewMgr::showLrcLatencyTestDialog ( int  id)
signal

Shows the latency test dialog for the LRC component.

void DtAssistantFederationsViewMgr::showPopup ( const MAKRti::DtString &  ,
const MAKRti::DtString &  ,
const MAKRti::DtString &   
)
signal

Emitted when a popup dialog from a remote rtiexec should be displayed.

void DtAssistantFederationsViewMgr::showRidDialog ( const QString &  name,
const DtAssistantInfo assistant,
int  compId 
)
protected

Shows a new RID dialog for the given component, identified by its assistant and component ID, displayed with the given name.

void DtAssistantFederationsViewMgr::showRtiexecLatencyTestDialog ( const DtRtiConnectionInfoDataPair connInfo,
unsigned int  federationHdl,
const MAKRti::DtString &  federationName,
unsigned int  federateHdl 
)
signal

Shows the latency test dialog for the rtiexec component.

void DtAssistantFederationsViewMgr::showRtiexecLog ( )
slot

Shows the log file dialog for the current rtiexec.

void DtAssistantFederationsViewMgr::showRtiexecRidParams ( )
slot

Shows the RID parameter dialog for the current rtiexec.

void DtAssistantFederationsViewMgr::showSyncPtDialog ( const MAKRti::DtString &  federation)
slot

Shows a sync point dialog for the specified federation.

void DtAssistantFederationsViewMgr::shutdownRtiexec ( )
slot

Shuts down the currently viewed rtiexec.

void DtAssistantFederationsViewMgr::shutdownRtiForwarder ( )
slot

Shuts down the currently viewed RTI Forwarder.

virtual void DtAssistantFederationsViewMgr::startShutdown ( )
virtual

Performs any necessary processing at the start of shutdown.

Reimplemented from DtAssistantMgr.

void DtAssistantFederationsViewMgr::startupRtiexec ( )
slot

Start up an rtiexec.

void DtAssistantFederationsViewMgr::startupRtiForwarder ( )
slot

Start up an RTI Forwarder.

virtual void DtAssistantFederationsViewMgr::tick ( )
virtual

Performs tasks that need to be completed periodically.

Reimplemented from DtAssistantMgr.

virtual void DtAssistantFederationsViewMgr::updateFederateCompInfo ( const DtAssistantForwarderInfo::DtCompByFederationAndHandleMap newInfo,
const DtAssistantForwarderInfo::DtCompByFederationAndHandleMap oldInfo,
const DtFederationStateByNameMap federationMap 
)
protectedvirtual

Processes update to the federate component info.

virtual void DtAssistantFederationsViewMgr::updatePeerForwarders ( const DtAssistantForwarderInfo::DtPeerForwarderByAddrMap newFwds,
const DtAssistantForwarderInfo::DtPeerForwarderByAddrMap oldFwds 
)
protectedvirtual

Processes updates to the peer forwarders.

void DtAssistantFederationsViewMgr::updateRidParams ( const DtAssistantInfo assistant,
int  compId,
const MAKRti::DtString &  params,
const MAKRti::DtString &  filename,
const MAKRti::DtString &  federation,
unsigned  federateHdl 
)
protected

Updates and existing RID parameters dialog.

virtual void DtAssistantFederationsViewMgr::updateRtiexecCompInfo ( const DtAssistantNetworkCompInfo newInfo,
const DtAssistantNetworkCompInfo oldInfo 
)
protectedvirtual

Processes update to the rtiexec component info.

virtual void DtAssistantFederationsViewMgr::updateUnclassifiedComps ( const DtAssistantNetworkCompInfoList newInfo,
const DtAssistantNetworkCompInfoList oldInfo 
)
protectedvirtual

Processes update to components which have connected to the forwarder but have not yet been classified (usually unjoined federates)

Member Data Documentation

MAKRti::DtClock DtAssistantFederationsViewMgr::myClock
protected

Clock used to determine if we need to resend lost messages.

DtBoost::shared_ptr<DtAssistantComponentMgr> DtAssistantFederationsViewMgr::myCompMgr
protected

The local RTI component manager.

DtBoost::shared_ptr<DtAssistantConnectionInfoMgr> DtAssistantFederationsViewMgr::myConnInfoMgr
protected

The connection info manager.

DtAssistantForwarderInfo DtAssistantFederationsViewMgr::myCurrentForwarderInfo
protected

The information on the currently displayed forwarder connection.

const DtAssistantForwarderInfo DtAssistantFederationsViewMgr::myEmptyForwaderInfo
protected
DtFederationsViewDialog* DtAssistantFederationsViewMgr::myFederationsViewDialog
protected

The dialog to display the federations view.

DtBoost::shared_ptr<DtAssistantFederationsInfoMgr> DtAssistantFederationsViewMgr::myFedInfoMgr
protected

The federations info manager.

QSignalMapper* DtAssistantFederationsViewMgr::myFwStatusAcceptSigMapper
protected

Signal mapper for DtForwarderConnStatusDialog accepted signals.

DtConnectionToFwStatusDialogMap DtAssistantFederationsViewMgr::myFwStatusDlgMap
protected

The map of forwarder connection info to forwarder status dialogs.

QSignalMapper* DtAssistantFederationsViewMgr::myFwStatusRejectSigMapper
protected

Signal mapper for DtForwarderConnStatusDialog rejected signals.

std::set<std::pair<MAKRti::DtString, unsigned> > DtAssistantFederationsViewMgr::myLightweightFederates
protected

The federations and handles of the currently displayed lightweight federates.

DtBoost::shared_ptr<DtAssistantForwarderCompInfoMgr> DtAssistantFederationsViewMgr::myNetCompInfoMgr
protected

The federations info manager.

std::list<DtCompRidParamDispStruct> DtAssistantFederationsViewMgr::myPendingFederateRidDialogs
protected

Our federate RID parameter dialogs which are currently loading.

bool DtAssistantFederationsViewMgr::myReceivedRemoteForwarderInfo
protected

Indicates if we have yet received an update on a remote Forwarder we are currently viewing.

MAKRti::DtTime DtAssistantFederationsViewMgr::myRemoteForwarderInfoTimeout
protected

Time at which we assume our request to observe a remote Forwarder was lost, causing us to resend it.

QSignalMapper* DtAssistantFederationsViewMgr::myRidDialogSignalMapper
protected

Maps the close signals for RID parameter dialogs.

DtRidParmDlgByComp DtAssistantFederationsViewMgr::myRidParamDialogs
protected

A map of all of our open RID parameter dialogs.

QString DtAssistantFederationsViewMgr::mySavedFile
protected

The previously saved file name.

std::map<MAKRti::DtString, DtSyncPtDialog*> DtAssistantFederationsViewMgr::mySyncPtDialogs
protected

The dialogs which show sync point information for a particular federation, indexed by federation name.

DtRtiConnectionInfo DtAssistantFederationsViewMgr::myViewedConnection
protected

The connection currently being viewed at this Assistant.

const unsigned DtAssistantFederationsViewMgr::theMaxLogLoadSize
staticprotected

The maximum number of bytes that can be requested from an rtiexec log.

const int DtAssistantFederationsViewMgr::theUpdatePeriod
staticprotected

The period, in seconds, to send updates on remotely observed federations that have been updated.


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

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)