MAK RTIspy API Documentation for HLA 1516
Public Slots | Signals | Public Member Functions | Protected Types | Protected Attributes | Static Protected Attributes | Private Member Functions
DtAssistantNetworkCompViewMgr Class Reference

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

+ Inheritance diagram for DtAssistantNetworkCompViewMgr:
+ Collaboration diagram for DtAssistantNetworkCompViewMgr:

List of all members.

Public Slots

void showRtiNetworkComponentView ()
 Displays the rtiNetworkComponent view dialog.
void changeViewedRtiForwarder (const DtRtiConnectionInfo &conn=DtRtiConnectionInfo::invalidConn())
 Changes which forwarder is currently being viewed.
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.

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.

Public Member Functions

 DtAssistantNetworkCompViewMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtBoost::shared_ptr< DtAssistantComponentMgr > compMgr, DtBoost::shared_ptr< DtAssistantConnectionInfoMgr > connInfoMgr, DtBoost::shared_ptr< DtAssistantFederationsInfoMgr > fedInfoMgr, DtBoost::shared_ptr< DtAssistantNetworkCompInfoMgr > netCompInfoMgr, DtBoost::shared_ptr< DtAssistantTrayIconMgr > trayIconMgr, const MAKRti::DtFilename &configDir)
 Constructor.
 ~DtAssistantNetworkCompViewMgr ()
 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.

Protected Types

typedef std::map
< DtRtiConnectionInfo,
DtAssistantInfoSet
DtConnectionToObserversMap
typedef std::map
< DtRtiConnectionInfo,
DtForwarderConnStatusDialog * > 
DtConnectionToFwStatusDialogMap

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 network component info manager.
DtRtiConnectionInfo myViewedRtiForwarder
 The forwarder connection currently being viewed at this Assistant.
DtRtiNetworkComponentViewDialogmyRtiNetworkComponentViewDialog
 The dialog to display the network component 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.

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.

Private Member Functions

 DtAssistantNetworkCompViewMgr (DtAssistantNetworkCompViewMgr const &)
 Copy Constructor not implemented -- Copy Not Allowed!
DtAssistantNetworkCompViewMgroperator= (DtAssistantNetworkCompViewMgr 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 processRtiexecLogMsg (const DtAssistantLogMsg &msg)
 Called by the callback function to process a viewed rtiexec log 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 processRtiexecLogMsg (const DtAssistantLogMsg &msg, void *usr)
 Callback to process a log 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


Constructor & Destructor Documentation

DtAssistantNetworkCompViewMgr::DtAssistantNetworkCompViewMgr ( DtBoost::shared_ptr< DtRtiAssistantServer server,
DtBoost::shared_ptr< DtRtiAssistantPeer peer,
DtBoost::shared_ptr< DtAssistantComponentMgr compMgr,
DtBoost::shared_ptr< DtAssistantConnectionInfoMgr connInfoMgr,
DtBoost::shared_ptr< DtAssistantFederationsInfoMgr fedInfoMgr,
DtBoost::shared_ptr< DtAssistantNetworkCompInfoMgr netCompInfoMgr,
DtBoost::shared_ptr< DtAssistantTrayIconMgr trayIconMgr,
const MAKRti::DtFilename &  configDir 
)

Copy Constructor not implemented -- Copy Not Allowed!


Member Function Documentation

Emitted when the RTI about dialog is requested.

Referenced by DtAssistantNetworkCompViewMgr().

Determines if this manager has any visible dialogs.

Reimplemented from DtAssistantMgr.

References myRtiNetworkComponentViewDialog.

Referenced by tick().

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

Assignment not implemented -- Assignment Not Allowed!

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

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

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

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

Referenced by DtAssistantNetworkCompViewMgr().

Callback to process an rtiexec observe response message.

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

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

References myConnInfoMgr, myRtiNetworkComponentViewDialog, and DtRtiNetworkComponentViewDialog::setConnectionIsLocal().

Referenced by DtAssistantNetworkCompViewMgr().

void DtAssistantNetworkCompViewMgr::processRtiexecLogMsg ( const DtAssistantLogMsg msg,
void *  usr 
) [static]

Callback to process a log message from a viewed rtiexec.

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

void DtAssistantNetworkCompViewMgr::processRtiexecNotifyMsg ( const DtAssistantNotifyMsg msg,
void *  usr 
) [static]

Callback to process a notify message from a viewed rtiexec.

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

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 DtAssistantNetworkCompViewMgr().

Saves the current GUI state.

References myRtiNetworkComponentViewDialog, and DtRtiNetworkComponentViewDialog::saveGuiState().

Referenced by startShutdown().

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

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

Referenced by DtAssistantNetworkCompViewMgr().

void DtAssistantNetworkCompViewMgr::showPopup ( const MAKRti::DtString &  ,
const MAKRti::DtString &  ,
const MAKRti::DtString &   
) [signal]

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

Reimplemented from DtAssistantMgr.

Referenced by DtAssistantNetworkCompViewMgr().

Displays the rtiNetworkComponent view dialog.

References DtRtiConnectionInfo::invalidConn(), myRtiNetworkComponentViewDialog, and myViewedRtiForwarder.

Referenced by DtAssistantNetworkCompViewMgr().

Performs any necessary processing at the start of shutdown.

Reimplemented from DtAssistantMgr.

References saveGuiState().


Member Data Documentation

MAKRti::DtClock DtAssistantNetworkCompViewMgr::myClock [protected]

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

The federations info manager.

Referenced by changeViewedRtiForwarder().

Signal mapper for DtForwarderConnStatusDialog accepted signals.

Referenced by DtAssistantNetworkCompViewMgr(), and processAwaitingForwardersMsg().

The map of forwarder connection info to forwarder status dialogs.

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

Signal mapper for DtForwarderConnStatusDialog rejected signals.

Referenced by DtAssistantNetworkCompViewMgr(), and processAwaitingForwardersMsg().

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

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

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

Referenced by sendLogRequest().

const int DtAssistantNetworkCompViewMgr::theUpdatePeriod [static, protected]

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 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)