MAK RTIspy API Documentation for HLA 1.3
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtAssistantFederationsViewMgr Class Reference

Populates and displays the Federations View dialog. More...

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

List of all members.

Public Slots

void processConnectionsUpdate (const DtRtiConnectionAndConfiguration &conns)
void processConnectionsRemoval (const DtRtiConnectionAndConfiguration &conns)
 Processes the remove of connections.
GUI Event Handlers

Slots which handle GUI events

void showFederationsView ()
 Displays the federations view dialog.
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 showRtiexecWebSpy ()
 Processes a request to display the current rtiexec's web spy page.
void showFederateWebSpy (const QString &fedexName, int fedHandle)
 Processes a request to display the web spy page for the given federate.
void sendRidParamRequest ()
 Sends a request to the currently displayed rtiexec for its RID parameters.
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 processViewedWebSpyInfoUpdated (const MAKRti::DtInetAddr &addr, int port)
 Handles an update of the web spy info for the currently viewed connection.
void saveToLog ()
 Saves the currently displayed federation information to a log file.

Signals

void federateRemovalTimeChanged (float period)
 Emitted when the defunct federate removal time changes.

Public Member Functions

 DtAssistantFederationsViewMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtBoost::shared_ptr< DtAssistantPreferencesInfoMgr > prefMgr, DtBoost::shared_ptr< DtAssistantComponentMgr > compMgr, DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > connInfoMgr, DtBoost::shared_ptr< DtAssistantFederationsInfoMgr > fedInfoMgr, DtBoost::shared_ptr< DtAssistantTrayIconMgr > trayIconMgr, DtBoost::shared_ptr< DtAssistantConnQueryMgr > connQueryMgr, DtBoost::shared_ptr< DtAssistantLatencyTestMgr > latTestMgr, 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 to a file.

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, const DtFederationStateByNameMap *federations)
 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)
 Logs federates' info to the file stream.

Protected Attributes

DtBoost::shared_ptr
< DtAssistantPreferencesInfoMgr
myPrefMgr
 The preferences manager.
DtBoost::shared_ptr
< DtAssistantComponentMgr
myCompMgr
 The component manager.
DtBoost::shared_ptr
< DtAssistantConnectionInfoMgr
myConnInfoMgr
 The connection info manager.
DtBoost::shared_ptr
< DtAssistantFederationsInfoMgr
myFedInfoMgr
 The federations info manager.
DtBoost::shared_ptr
< DtAssistantTrayIconMgr
myTrayIconMgr
 The tray icon manager.
DtBoost::shared_ptr
< DtAssistantLatencyTestMgr
myLatTestMgr
 The latency test manager.
DtRtiConnectionInfo myViewedConnection
 The connection currently being viewed at this Assistant.
MAKRti::DtInetAddr myViewedRtiexecWebServerIp
 The IP address of the currently viewed rtiexec's web server.
int myViewedRtiexecWebServerPort
 The port of the currently viewed rtiexec's web server.
DtFederationsViewDialogmyFederationsViewDialog
 The dialog used to display federation information.
MAKRti::DtClock myClock
 Clock used to determine if we need to resend lost messages.
QString mySavedFile
 The previously saved file name.

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 and command messages

virtual void processRidParamMsg (const DtAssistantRidParamsMsg &msg)
 Called by the callback function to process a RID parameter message.
static void processRidParamMsg (const DtAssistantRidParamsMsg &msg, void *usr)
 Callback to process a RID parameter message.

Detailed Description

Populates and displays the Federations View dialog.


Constructor & Destructor Documentation

DtAssistantFederationsViewMgr::DtAssistantFederationsViewMgr ( DtBoost::shared_ptr< DtRtiAssistantServer server,
DtBoost::shared_ptr< DtRtiAssistantPeer peer,
DtBoost::shared_ptr< DtAssistantPreferencesInfoMgr prefMgr,
DtBoost::shared_ptr< DtAssistantComponentMgr compMgr,
DtBoost::shared_ptr< DtAssistantConnectionInfoMgr connInfoMgr,
DtBoost::shared_ptr< DtAssistantFederationsInfoMgr fedInfoMgr,
DtBoost::shared_ptr< DtAssistantTrayIconMgr trayIconMgr,
DtBoost::shared_ptr< DtAssistantConnQueryMgr connQueryMgr,
DtBoost::shared_ptr< DtAssistantLatencyTestMgr latTestMgr,
const MAKRti::DtFilename &  configDir 
)

Copy Constructor not implemented -- Copy Not Allowed!


Member Function Documentation

void DtAssistantFederationsViewMgr::destroyFederation ( const QString &  federationName) [slot]

Determines if this manager has any visible dialogs.

Reimplemented from DtAssistantMgr.

References myFederationsViewDialog.

Emitted when the defunct federate removal time changes.

Referenced by DtAssistantFederationsViewMgr().

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

Logs connection info to the file stream.

References DtRtiConnectionInfo::description(), DtRtiConnectionInfo::isValid(), and myViewedConnection.

Referenced by saveToLog().

void DtAssistantFederationsViewMgr::logFederateInfo ( std::ofstream &  fileStrm,
const DtFederateInfoByHandleMap federates 
) [protected]

Logs federates' info to the file stream.

References DtHlaVersionFromId().

Referenced by logFederationInfo().

void DtAssistantFederationsViewMgr::logFederationInfo ( std::ofstream &  fileStrm,
const DtFederationStateByNameMap federations 
) [protected]

Logs full federation info to the file stream.

References logFederateInfo(), logFomInfo(), myFedInfoMgr, and myViewedConnection.

Referenced by saveToLog().

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

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

Referenced by logFederationInfo().

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

Assignment not implemented -- Assignment Not Allowed!

Processes the removal of a known connection.

References myConnInfoMgr, myFederationsViewDialog, and DtFederationsViewDialog::removeConnection().

Referenced by processConnectionsRemoval(), and processConnectionsUpdate().

Processes the remove of connections.

References DtRtiConnectionAndConfiguration::connections(), and processConnectionRemoval().

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::processFederateRemoved ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName,
unsigned  federateHandle 
) [slot]
void DtAssistantFederationsViewMgr::processFederateUpdated ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName,
unsigned  federateHandle 
) [slot]
void DtAssistantFederationsViewMgr::processFederationRemoved ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName 
) [slot]
void DtAssistantFederationsViewMgr::processFederationUpdate ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName 
) [slot]
void DtAssistantFederationsViewMgr::processRidParamMsg ( const DtAssistantRidParamsMsg msg,
void *  usr 
) [static]

Callback to process a RID parameter message.

Referenced by DtAssistantFederationsViewMgr(), and ~DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::processViewedWebSpyInfoUpdated ( const MAKRti::DtInetAddr &  addr,
int  port 
) [slot]

Removes loading indication when an rtiexec responds to observation.

References myFederationsViewDialog, myViewedConnection, and DtFederationsViewDialog::removeLoadingIndication().

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::resignFederate ( int  fedHdl,
const QString &  federationName 
) [slot]

Saves the current GUI state to a file.

References myFederationsViewDialog, and DtFederationsViewDialog::saveGuiState().

Referenced by startShutdown().

void DtAssistantFederationsViewMgr::sendNetworkTestingDisableMsg ( const QString &  fedexName) [slot]
void DtAssistantFederationsViewMgr::sendNetworkTestingEnableMsg ( const QString &  fedexName) [slot]
void DtAssistantFederationsViewMgr::showFederateWebSpy ( const QString &  fedexName,
int  fedHandle 
) [slot]
void DtAssistantFederationsViewMgr::showLatencyTestDialog ( const QString &  fedexName,
int  fedHandle 
) [slot]

Processes a request to display the current rtiexec's web spy page.

References DtRtiConnectionInfo::isValid(), myTrayIconMgr, myViewedConnection, myViewedRtiexecWebServerIp, and myViewedRtiexecWebServerPort.

Referenced by DtAssistantFederationsViewMgr().

Performs any necessary processing at the start of shutdown.

Reimplemented from DtAssistantMgr.

References saveGuiState().


Member Data Documentation

MAKRti::DtClock DtAssistantFederationsViewMgr::myClock [protected]

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

The component manager.

Referenced by changeViewedConnection(), and processRidParamMsg().

The latency test manager.

Referenced by showLatencyTestDialog().

The preferences manager.

Referenced by DtAssistantFederationsViewMgr().

The previously saved file name.

Referenced by changeViewedConnection(), saveToLog(), showFederationsView(), and tick().

The tray icon manager.

Referenced by DtAssistantFederationsViewMgr(), showFederateWebSpy(), and showRtiexecWebSpy().

The IP address of the currently viewed rtiexec's web server.

Referenced by changeViewedConnection(), processViewedWebSpyInfoUpdated(), and showRtiexecWebSpy().

The port of the currently viewed rtiexec's web server.

Referenced by changeViewedConnection(), processViewedWebSpyInfoUpdated(), and showRtiexecWebSpy().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)