MAK RTIspy API Documentation for HLA Evolved
List of all members | Classes | Public Slots | Signals | Public Member Functions | Static 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 shutdownRtiexec ()
 Shuts down the currently viewed rtiexec.
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 &fwName)
 Process selection of a forwarder.
void processPeerForwarderSelection (const MAKRti::DtString &fwName)
 Process selection of a forwarder.
void processFederationSelection (const MAKRti::DtString &federation)
 Process selection of a federation.
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.
- 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.
- 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< DtAssistantNetworkCompInfoMgr > 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.
virtual void processRidParamMsg (const DtAssistantRidParamsMsg &msg)
 Called by the callback function to process a RID parameter message.
- 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.

Static Public Member Functions

static void processRidParamMsg (const DtAssistantRidParamsMsg &msg, void *usr)
 Callback to process a RID parameter message.

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::DtPeerForwarderByIdMap *newFwds, const DtAssistantForwarderInfo::DtPeerForwarderByIdMap *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.

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
< DtAssistantNetworkCompInfoMgr
myNetCompInfoMgr
 The federations info manager.
DtRtiConnectionInfo myViewedConnection
 The connection currently being viewed at this Assistant.
DtAssistantForwarderInfo myCurrentForwarderInfo
 The information on the currently displayed forwarder.
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 = DtDefaultMaxPacketSize
 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 = false
 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.
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.

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< DtAssistantNetworkCompInfoMgr netCompInfoMgr,
const MAKRti::DtFilename &  configDir 
)

Constructor.

References aboutDialogRequested(), DtAssistantAwaitingForwardersMsg::addCallback(), DtAssistantExecObserveRspMsg::addCallback(), DtAssistantNotifyMsg::addCallback(), DtAssistantRidParamsMsg::addCallback(), changeViewedConnection(), connect(), destroyFederation(), destroyRidParamDialog(), DtDefunctFederateRemovalTimeSecUpdatedSig, DtDisplayComponentLogSig, DtDisplayFederationColorsUpdatedSig, DtDisplayFomDialogSig, DtDisplayRemoteFederateStatsDialogSig, DtFederateAddedSig, DtFederateIdentifierUpdatedSig, DtFederateInfoQuery, DtFederateLocReceivedSig, DtFederateRemovedSig, DtFederateUpdatedSig, DtFederationAddedSig, DtFederationRemovedSig, DtFederationUpdatedSig, DtForwarderAddedSig, DtForwarderConnUpdatedSig, DtForwarderRemovedSig, DtForwarderUpdatedSig, DtRequestFederateLocSig, DtRtiConnsAboutToBeRemovedSig, DtRtiConnsAddedOrUpdatedSig, DtRtiexecHasNoFederationsSig, DtShowAboutBoxSig, DtShowConfigPageSig, DtShowFederationsDialogSig, DtShowLrcLatencyTestDialogSig, DtShowRtiexecLatencyTestDialogSig, enableNetworkTesting, federateRemovalTimeChanged(), myFederationsViewDialog, myFwStatusAcceptSigMapper, myFwStatusRejectSigMapper, DtAssistantMgr::myPeer, myRidDialogSignalMapper, DtAssistantMgr::myServer, processAwaitingForwardersMsg(), processConnectionsRemoval(), processConnectionsUpdate(), processDoNotWaitForForwarders(), processExecObserveRspMsg(), processFederateRemoved(), processFederateSelection(), processFederateUpdated(), processFederationRemoved(), processFederationSelection(), processFederationUpdate(), processForwarderAdded(), processForwarderConnUpdated(), processForwarderRemoved(), processForwarderSelection(), processForwarderUpdated(), processLightweightNodeSelection(), processPeerForwarderSelection(), processRidParamMsg(), processRtiexecNotifyMsg(), processRtiexecSelection(), processShutDownWaitingForwarder(), queryFederateInfo(), DtAssistantSignalRouter::registerQuery(), DtAssistantSignalRouter::registerSignal(), DtAssistantSignalRouter::registerSlot(), removeDefunctFederateFromMap(), removeLoadingIndication(), requestFederateLoc(), resignFederate(), saveToLog(), sendLogRequest(), sendNetworkTestingDisableMsg(), sendNetworkTestingEnableMsg(), sendPendingRidRequest(), showConfigDialog(), showFederateLog(), showFederateRidParams(), showFederateStatsDialog(), showFederationsView(), showFederationsViewPreferences(), showFomDialog(), showForwarderLog(), showForwarderRidParams(), showLatencyTestDialog(), showLogFileDialog(), showLrcLatencyTestDialog(), showPopup(), showRtiexecLatencyTestDialog(), showRtiexecLog(), showRtiexecRidParams(), showSyncPtDialog(), shutdownRtiexec(), shutdownRtiForwarder(), and DtAssistantMgr::startMainWindow().

DtAssistantFederationsViewMgr::~DtAssistantFederationsViewMgr ( )
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.

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::changeViewedConnection ( const DtRtiConnectionInfo conn = DtRtiConnectionInfo::invalidConn())
slot
void DtAssistantFederationsViewMgr::createRidDialog ( const QString &  name,
DtCompRidParamDispStruct dispInfo 
)
protected
void DtAssistantFederationsViewMgr::destroyFederation ( const QString &  federationName)
slot
void DtAssistantFederationsViewMgr::destroyRidParamDialog ( QWidget widget)
slot

Destroys the RID parameter dialog specified by widget.

References myPendingFederateRidDialogs, and myRidParamDialogs.

Referenced by DtAssistantFederationsViewMgr().

bool DtAssistantFederationsViewMgr::dialogsVisible ( ) const
virtual

Determines if this manager has any visible dialogs.

Reimplemented from DtAssistantMgr.

References myFederationsViewDialog.

void DtAssistantFederationsViewMgr::federateRemovalTimeChanged ( float  period)
signal

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,
const DtAssistantForwarderInfo fwInfo 
)
protected
void DtAssistantFederationsViewMgr::logFederationInfo ( std::ofstream &  fileStrm)
protected

Logs full federation info to the file stream.

References logFederateInfo(), logFomInfo(), myFedInfoMgr, myNetCompInfoMgr, 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!

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

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

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

void DtAssistantFederationsViewMgr::processAwaitingForwardersMsg ( const DtAssistantAwaitingForwardersMsg msg)
virtual
void DtAssistantFederationsViewMgr::processConnectionRemoval ( const DtRtiConnectionInfoDataPair conn)
protectedvirtual

Processes the removal of a known connection.

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

Referenced by processConnectionsRemoval(), and processConnectionsUpdate().

void DtAssistantFederationsViewMgr::processConnectionsRemoval ( const DtRtiConnectionAndConfiguration conns)
slot

Processes the remove of connections.

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

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::processConnectionsUpdate ( const DtRtiConnectionAndConfiguration conns)
slot
void DtAssistantFederationsViewMgr::processDoNotWaitForForwarders ( QWidget dlg)
slot

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

References DtForwarderConnStatusDialog::compId(), and DtAssistantMgr::myServer.

Referenced by DtAssistantFederationsViewMgr().

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

Callback to process an rtiexec observe response message.

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

void DtAssistantFederationsViewMgr::processExecObserveRspMsg ( const DtAssistantExecObserveRspMsg msg)
virtual
void DtAssistantFederationsViewMgr::processFederateRemoved ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName,
unsigned  federateHandle 
)
slot
void DtAssistantFederationsViewMgr::processFederateSelection ( const MAKRti::DtString &  federation,
int  federate 
)
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::processFederationSelection ( const MAKRti::DtString &  federation)
slot
void DtAssistantFederationsViewMgr::processFederationUpdate ( const DtRtiConnectionInfo conn,
const MAKRti::DtString &  federationName 
)
slot
void DtAssistantFederationsViewMgr::processForwarderAdded ( const DtRtiConnectionInfo conn)
slot

Processes the addition of a new forwarder.

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

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::processForwarderConnUpdated ( const DtRtiConnectionInfo conn)
slot

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

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

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::processForwarderRemoved ( const DtRtiConnectionInfo conn)
slot
void DtAssistantFederationsViewMgr::processForwarderSelection ( const MAKRti::DtString &  fwName)
slot

Process selection of a forwarder.

References myFederationsViewDialog, and DtFederationsViewDialog::selectForwarder().

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::processForwarderUpdated ( const DtRtiConnectionInfo conn)
slot
void DtAssistantFederationsViewMgr::processLightweightNodeSelection ( )
slot

Process selection of the central lightweight node.

References myFederationsViewDialog, and DtFederationsViewDialog::selectLightweight().

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::processPeerForwarderSelection ( const MAKRti::DtString &  fwName)
slot
void DtAssistantFederationsViewMgr::processRidParamMsg ( const DtAssistantRidParamsMsg msg,
void *  usr 
)
static

Callback to process a RID parameter message.

Referenced by DtAssistantFederationsViewMgr().

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

Callback to process a notify message from a viewed rtiexec.

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

void DtAssistantFederationsViewMgr::processRtiexecNotifyMsg ( const DtAssistantNotifyMsg msg)
virtual
void DtAssistantFederationsViewMgr::processRtiexecSelection ( )
slot
void DtAssistantFederationsViewMgr::processShutDownWaitingForwarder ( QWidget dlg)
slot

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

References DtForwarderConnStatusDialog::compId(), and DtAssistantMgr::myServer.

Referenced by DtAssistantFederationsViewMgr().

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

Queries for federation information.

Referenced by DtAssistantFederationsViewMgr(), resignFederate(), and showFederateLog().

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

Removes loading indication when an rtiexec responds to observation.

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

Referenced by DtAssistantFederationsViewMgr().

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

Emitted to request a federate's loc.

Referenced by DtAssistantFederationsViewMgr(), and showFederateRidParams().

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

Saves the current GUI state.

References myFederationsViewDialog, and DtFederationsViewDialog::saveGuiConfiguration().

Referenced by startShutdown().

void DtAssistantFederationsViewMgr::saveToLog ( )
slot
void DtAssistantFederationsViewMgr::sendLogRequest ( )
virtualslot

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

References DtRtiConnectionInfo::isValid(), myConnInfoMgr, DtAssistantMgr::myPeer, DtAssistantMgr::myServer, myViewedConnection, and theMaxLogLoadSize.

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::sendNetworkTestingDisableMsg ( const QString &  fedexName)
slot
void DtAssistantFederationsViewMgr::sendNetworkTestingEnableMsg ( const QString &  fedexName)
slot
void DtAssistantFederationsViewMgr::sendPendingRidRequest ( const DtRtiConnectionInfo connInfo,
const MAKRti::DtString &  federationName,
unsigned  federateHdl,
const DtAssistantInfo astnt,
unsigned  compId 
)
slot
void DtAssistantFederationsViewMgr::showConfigDialog ( DtPreferencesPage  pageId)
signal

Shows the config dialog;.

Referenced by DtAssistantFederationsViewMgr(), and showFederationsViewPreferences().

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

Shows the federate statistics dialog for the specified federate.

References myViewedConnection.

Referenced by DtAssistantFederationsViewMgr().

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
void DtAssistantFederationsViewMgr::showFederationsViewPreferences ( )
slot

Show the preferences dialog.

References DtFederationsViewPage, and showConfigDialog().

Referenced by DtAssistantFederationsViewMgr().

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

Shows the federate statistics dialog for the specified federate.

References myViewedConnection.

Referenced by DtAssistantFederationsViewMgr().

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
void DtAssistantFederationsViewMgr::showForwarderRidParams ( )
slot
void DtAssistantFederationsViewMgr::showLatencyTestDialog ( const QString &  fedexName,
int  fedHandle 
)
slot
void DtAssistantFederationsViewMgr::showLogFileDialog ( int  compId)
signal

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

Referenced by DtAssistantFederationsViewMgr(), showFederateLog(), showForwarderLog(), and showRtiexecLog().

void DtAssistantFederationsViewMgr::showLrcLatencyTestDialog ( int  id)
signal

Shows the latency test dialog for the LRC component.

Referenced by DtAssistantFederationsViewMgr(), and showLatencyTestDialog().

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.

Referenced by DtAssistantFederationsViewMgr().

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.

References createRidDialog(), myRidParamDialogs, and DtAssistantMgr::showDialog().

Referenced by showForwarderRidParams(), and showRtiexecRidParams().

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.

Referenced by DtAssistantFederationsViewMgr(), and showLatencyTestDialog().

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

Shows a sync point dialog for the specified federation.

References mySyncPtDialogs, and DtAssistantMgr::showDialog().

Referenced by DtAssistantFederationsViewMgr().

void DtAssistantFederationsViewMgr::shutdownRtiexec ( )
slot
void DtAssistantFederationsViewMgr::shutdownRtiForwarder ( )
slot
void DtAssistantFederationsViewMgr::startShutdown ( )
virtual

Performs any necessary processing at the start of shutdown.

Reimplemented from DtAssistantMgr.

References saveGuiState().

void DtAssistantFederationsViewMgr::tick ( )
virtual
void DtAssistantFederationsViewMgr::updateFederateCompInfo ( const DtAssistantForwarderInfo::DtCompByFederationAndHandleMap newInfo,
const DtAssistantForwarderInfo::DtCompByFederationAndHandleMap oldInfo,
const DtFederationStateByNameMap federationMap 
)
protectedvirtual
void DtAssistantFederationsViewMgr::updatePeerForwarders ( const DtAssistantForwarderInfo::DtPeerForwarderByIdMap newFwds,
const DtAssistantForwarderInfo::DtPeerForwarderByIdMap oldFwds 
)
protectedvirtual
void DtAssistantFederationsViewMgr::updateRidParams ( const DtAssistantInfo assistant,
int  compId,
const MAKRti::DtString &  params,
const MAKRti::DtString &  filename,
const MAKRti::DtString &  federation,
unsigned  federateHdl 
)
protected
void DtAssistantFederationsViewMgr::updateRtiexecCompInfo ( const DtAssistantNetworkCompInfo newInfo,
const DtAssistantNetworkCompInfo oldInfo 
)
protectedvirtual
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)

References DtFederationsViewDialog::addNetworkMapFederateNode(), myFederationsViewDialog, and DtFederationsViewDialog::removeNetworkMapFederateNode().

Referenced by processForwarderUpdated().

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.

Referenced by processAwaitingForwardersMsg(), and processRtiexecNotifyMsg().

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

The information on the currently displayed forwarder.

Referenced by changeViewedConnection(), processForwarderUpdated(), processPeerForwarderSelection(), showFederationsView(), and tick().

DtFederationsViewDialog* DtAssistantFederationsViewMgr::myFederationsViewDialog
protected
DtBoost::shared_ptr<DtAssistantFederationsInfoMgr> DtAssistantFederationsViewMgr::myFedInfoMgr
protected
QSignalMapper* DtAssistantFederationsViewMgr::myFwStatusAcceptSigMapper
protected

Signal mapper for DtForwarderConnStatusDialog accepted signals.

Referenced by DtAssistantFederationsViewMgr(), and processAwaitingForwardersMsg().

DtConnectionToFwStatusDialogMap DtAssistantFederationsViewMgr::myFwStatusDlgMap
protected

The map of forwarder connection info to forwarder status dialogs.

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

QSignalMapper* DtAssistantFederationsViewMgr::myFwStatusRejectSigMapper
protected

Signal mapper for DtForwarderConnStatusDialog rejected signals.

Referenced by DtAssistantFederationsViewMgr(), and processAwaitingForwardersMsg().

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

The federations and handles of the currently displayed lightweight federates.

Referenced by changeViewedConnection(), processFederateRemoved(), processFederateUpdated(), processFederationRemoved(), processFederationUpdate(), showFederationsView(), and tick().

DtBoost::shared_ptr<DtAssistantNetworkCompInfoMgr> DtAssistantFederationsViewMgr::myNetCompInfoMgr
protected
std::list<DtCompRidParamDispStruct> DtAssistantFederationsViewMgr::myPendingFederateRidDialogs
protected

Our federate RID parameter dialogs which are currently loading.

Referenced by destroyRidParamDialog(), sendPendingRidRequest(), and showFederateRidParams().

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.

Referenced by createRidDialog(), and DtAssistantFederationsViewMgr().

DtRidParmDlgByComp DtAssistantFederationsViewMgr::myRidParamDialogs
protected

A map of all of our open RID parameter dialogs.

Referenced by destroyRidParamDialog(), sendPendingRidRequest(), showFederateRidParams(), showRidDialog(), and updateRidParams().

QString DtAssistantFederationsViewMgr::mySavedFile
protected

The previously saved file name.

Referenced by changeViewedConnection(), and saveToLog().

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

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

Referenced by changeViewedConnection(), processFederationRemoved(), processFederationUpdate(), and showSyncPtDialog().

DtRtiConnectionInfo DtAssistantFederationsViewMgr::myViewedConnection
protected
const unsigned DtAssistantFederationsViewMgr::theMaxLogLoadSize = DtDefaultMaxPacketSize
staticprotected

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

Referenced by sendLogRequest().

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 files:

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)