![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Shows detailed statistics on a federate. More...
Inheritance diagram for DtFederateStatisticsDialog:
Collaboration diagram for DtFederateStatisticsDialog:Public Slots | |
| void | federateIdentifierUpdated (unsigned int) |
| Updates how federates should be identified. More... | |
Signals | |
| void | federateStatDlgClosing (const DtAssistantInfo &, int, const MAKRti::DtString &, int, const DtRtiConnectionInfo &) |
Public Member Functions | |
| DtFederateStatisticsDialog (const MAKRti::DtFilename &configDir, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. More... | |
| virtual | ~DtFederateStatisticsDialog () |
| Destructor. More... | |
| virtual QSize | sizeHint () const |
| Returns the recommended size for the widget. More... | |
| void | setFederateIcon (const QPixmap &icon) |
| Set the federate icon of the displayed federate. More... | |
| void | setFederateType (const QString &t) |
| Set the federate type of the displayed federate. More... | |
| void | setFederateName (const QString &n) |
| Set the federate name of the displayed federate. More... | |
| void | setFederateProcess (const QString &p) |
| Set the federate process of the displayed federate. More... | |
| void | setFederateHost (const QString &h) |
| Set the federate host name of the displayed federate. More... | |
| void | setFederationName (const QString &n) |
| Set the federation name of the displayed federate. More... | |
| virtual void | closeEvent (QCloseEvent *event) |
| const std::set< DtU32 > & | getUnknownObjectInstanceNamesHandlesAndClear () const |
| void | clearUnknownObjInstanceNamesHdls () |
| void | saveGuiConfiguration () |
| Saves the GUI configuration to a file. More... | |
| void | switchFederate () |
| Tells the dialog that the federate being observed is changing. More... | |
| void | setConnectionInfo (const DtRtiConnectionInfo &connInfo) |
| const char * | getObjectHeader (const DtFederateStatisticsDialogObjectModelColumnEnum col) const |
| Retrieve the column header text for a given column. More... | |
| const char * | getInteractionHeader (const DtFederateStatisticsDialogInteractionModelColumnEnum col) const |
| Retrieve the column header text for a given column. More... | |
| const char * | getRtiAmbServicesHeader (const DtFederateStatisticsDialogRtiAmbServicesModelColumnEnum col) const |
| Retrieve the column header text for a given column. More... | |
| const char * | getFedAmbCallbacksHeader (const DtFederateStatisticsDialogFedAmbCallbacksModelColumnEnum col) const |
| Retrieve the column header text for a given column. More... | |
| const char * | getMsgHeader (const DtFederateStatisticsDialogMsgModelColumnEnum col) const |
| Retrieve the column header text for a given column. More... | |
| const char * | getObjectHeaderToolTip (const DtFederateStatisticsDialogObjectModelColumnEnum col) const |
| Retrieve the column header tool tip for a given column. More... | |
| const char * | getInteractionHeaderToolTip (const DtFederateStatisticsDialogInteractionModelColumnEnum col) const |
| Retrieve the column header tool tip for a given column. More... | |
| const char * | getRtiAmbServicesHeaderToolTip (const DtFederateStatisticsDialogRtiAmbServicesModelColumnEnum col) const |
| Retrieve the column header tool tip for a given column. More... | |
| const char * | getFedAmbCallbacksHeaderToolTip (const DtFederateStatisticsDialogFedAmbCallbacksModelColumnEnum col) const |
| Retrieve the column header tool tip for a given column. More... | |
| const char * | getMsgHeaderToolTip (const DtFederateStatisticsDialogMsgModelColumnEnum col) const |
| Retrieve the column header tool tip for a given column. More... | |
| virtual void | updateMsgTablesAndGraphs (DtFloat64 currTime, const std::vector< DtRtiMsgKind > &msgKinds, const std::vector< DtU32 > &msgNumSent, const std::vector< DtU32 > &msgNumReceived, const std::vector< DtU32 > &msgBytesSent, const std::vector< DtU32 > &msgBytesReceived) |
| Update the tables and graphs with the latest data. More... | |
| virtual void | updateRtiAmbTablesAndGraphs (DtFloat64 currTime, const std::vector< DtRtiAmbAPIType > &rtiAmbTypes, const std::vector< DtU32 > &rtiAmbNumCalls, const std::vector< DtFloat64 > &rtiAmbTotalTime, const std::vector< DtFloat64 > &rtiAmbAvgTime, const std::vector< DtFloat64 > &rtiAmbMinTime, const std::vector< DtFloat64 > &rtiAmbMaxTime) |
| Update the tables and graphs with the latest data. More... | |
| virtual void | updateFedAmbTablesAndGraphs (DtFloat64 currTime, const std::vector< DtFedAmbAPIType > &fedAmbTypes, const std::vector< DtU32 > &fedAmbNumCalls, const std::vector< DtFloat64 > &fedAmbTotalTime, const std::vector< DtFloat64 > &fedAmbAvgTime, const std::vector< DtFloat64 > &fedAmbMinTime, const std::vector< DtFloat64 > &fedAmbMaxTime) |
| Update the tables and graphs with the latest data. More... | |
| virtual void | updateObjectsTablesAndGraphs (DtFloat64 currTime, const std::vector< DtU32 > &objectInstanceHandles, const std::vector< DtU32 > &objectClassHandles, const std::vector< DtU32 > &objectNumRegistered, const std::vector< DtU32 > &objectBytesReceived, const std::vector< DtU32 > &objectUpdatesSent, const std::vector< DtU32 > &objectBytesSent, std::set< DtU32 > &unknownInstanceNamesHandles, std::set< DtU32 > &unknownClassNamesHandles) |
| Update the tables and graphs with the latest data. More... | |
| virtual void | updateInteractionsTablesAndGraphs (DtFloat64 currTime, const std::vector< DtU32 > &interactionClassHandles, const std::vector< DtU32 > &interactionUpdatesReceived, const std::vector< DtU32 > &interactionBytesReceived, const std::vector< DtU32 > &interactionUpdatesSent, const std::vector< DtU32 > &interactionBytesSent, std::set< DtU32 > &unknownClassNamesHandles) |
| Update the tables and graphs with the latest data. More... | |
| virtual void | updateObjectTablesInstanceNames (const std::vector< DtU32 > &instanceHandles, const std::vector< MAKRti::DtString > &instanceNames) |
| Update the tables and graphs with the latest data. More... | |
| virtual void | updateObjectTablesClassNames (const std::vector< DtU32 > &classHandles, const std::vector< MAKRti::DtString > &classNames) |
| Update the tables and graphs with the latest data. More... | |
| virtual void | updateInteractionTablesClassNames (const std::vector< DtU32 > &classHandles, const std::vector< MAKRti::DtString > &classNames) |
| Update the tables and graphs with the latest data. More... | |
| void | setAssistantInfo (const DtAssistantInfo &info) |
| The assistant info and component ID can identify which federate this dialog is associated with. More... | |
| void | setCompId (unsigned int compId) |
| The assistant info and component ID can identify which federate this dialog is associated with. More... | |
| void | setFederationNameStr (const MAKRti::DtString &federationName) |
| The federation name and federate handle can identify which federate this dialog is associated with. More... | |
| MAKRti::DtString | federationNameStr () const |
| The federation name and federate handle can identify which federate this dialog is associated with. More... | |
| void | setFederateHandle (unsigned int federateHandle) |
| The federation name and federate handle can identify which federate this dialog is associated with. More... | |
| unsigned | federateHandle () const |
| The federation name and federate handle can identify which federate this dialog is associated with. More... | |
Protected Types | |
| enum | DtColOrRow { DtCol, DtRow } |
Protected Member Functions | |
| void | loadGuiConfiguration () |
| Loads the GUI configuration from a file. More... | |
| virtual void | showEvent (QShowEvent *event) |
| Override showEvent to load the GUI config the first time it's shown. More... | |
| virtual void | hideEvent (QHideEvent *event) |
| Override hideEvent to store the size of the dialog when it is hidden. More... | |
| void | initBasicInfoWidgets () |
| Initialize the message stats widget. More... | |
| void | initMsgStatsWidget () |
| Initialize the message stats widget. More... | |
| void | initServiceStatsWidget () |
| Initialize the service calls stats widget. More... | |
| void | initCallbackStatsWidget () |
| Initialize the callbacks stats widget. More... | |
| void | initObjectStatsWidget () |
| Initialize the object stats widget. More... | |
| void | initInteractionStatsWidget () |
| Initialize the interaction stats widget. More... | |
| void | initButtonBoxWidget () |
| Initialize the widget which contains the ok button. More... | |
| QDockWidget * | initDockWidget (bool isFixed, Qt::Orientation ori, const QString &name="") |
| Creates and initializes a new dock widget. More... | |
| unsigned | addHeaderItem (QStandardItemModel *model, const QString &text, const QString &toolTip, DtColOrRow colOrRow) |
| Adds a header item to the given item model and returns the row or column number. More... | |
| void | updateFederateId (const QString &fedId) |
| Updates the federate ID in all necessary locations. More... | |
| void | updateFederateDescription () |
| Updates the federate description in all necessary locations. More... | |
Private Member Functions | |
| DtFederateStatisticsDialog (const DtFederateStatisticsDialog &) | |
| Copy Constructor not implemented. More... | |
| DtFederateStatisticsDialog & | operator= (const DtFederateStatisticsDialog &) |
| Assignment Operator not implemented. More... | |
| void | clearAll () |
| MAKRti::DtString | findObjectInstanceName (DtU32 instanceHandle, std::set< DtU32 > &unknownInstanceNamesHandles) |
| MAKRti::DtString | findObjectClassName (DtU32 classHandle, std::set< DtU32 > &unknownClassNamesHandles) |
| MAKRti::DtString | findInteractionClassName (DtU32 classHandle, std::set< DtU32 > &unknownClassNamesHandles) |
Private Attributes | |
| QLabel * | myIconLabel |
| Label displaying the icon for the selected federate. More... | |
| QLabel * | myFederateIdLabel |
| Label displaying the id for the selected federate. More... | |
| QDialogButtonBox * | myButtonBox |
| The dialog button box to close the dialog. More... | |
| DtFederateIdentifierType | myFederateIdType |
| How the federate should be identified. More... | |
| unsigned | myUpdateCounter |
| The update counter. More... | |
| unsigned | myMsgUpdateCounter |
| The update counter. More... | |
| unsigned | myRtiAmbUpdateCounter |
| The update counter. More... | |
| unsigned | myFedAmbUpdateCounter |
| The update counter. More... | |
| std::map< DtU32, MAKRti::DtString > | myObjInstanceNamesByObjInstanceHdlsMap |
| std::map< DtU32, MAKRti::DtString > | myObjClassNamesByObjClassHdlsMap |
| std::map< DtU32, MAKRti::DtString > | myInterClassNamesByInterClassHdlsMap |
| DtFilename | myConfigDir |
| The directory where the GUI config file should be stored. More... | |
| bool | myFirstTimeShown |
| Indicates whether the dialog has been shown yet. More... | |
| QSize | myLastVisibleSize |
| The size of the dialog the last time it was visible. More... | |
| DtAssistantInfo | myAssistantInfo |
| unsigned int | myCompId |
| MAKRti::DtString | myFederationName |
| unsigned int | myFederateHandle |
| DtRtiConnectionInfo | myConnInfo |
| QDockWidget * | myMainDockWidget |
| The dialog's main widget which is always displayed and shows basic federate identification information. More... | |
| QWidget * | myMainWidget |
| The dialog's main widget which is always displayed and shows basic federate identification information. More... | |
| DtTreesAndGraphWidget * | myMsgStatsWidget |
| The widget to display message statistics. More... | |
| QStandardItemModel * | myMsgStatsModel |
| The widget to display message statistics. More... | |
| QSortFilterProxyModel * | myMsgStatsProxyModel |
| The widget to display message statistics. More... | |
| QDockWidget * | myMsgStatsDockWidget |
| The widget to display message statistics. More... | |
| unsigned | myMsgStatsTreeIndex |
| The widget to display message statistics. More... | |
| std::map< unsigned, unsigned > | myMsgIdToRowMap |
| The widget to display message statistics. More... | |
| DtTreesAndGraphWidget * | myServiceStatsWidget |
| The widget to display service call statistics. More... | |
| QStandardItemModel * | myServiceStatsModel |
| The widget to display service call statistics. More... | |
| QSortFilterProxyModel * | myServiceStatsProxyModel |
| The widget to display service call statistics. More... | |
| QDockWidget * | myServiceStatsDockWidget |
| The widget to display service call statistics. More... | |
| unsigned | myServiceStatsTreeIndex |
| The widget to display service call statistics. More... | |
| std::map< unsigned, unsigned > | myServiceIdToRowMap |
| The widget to display service call statistics. More... | |
| DtTreesAndGraphWidget * | myCallbackStatsWidget |
| The widget to display callback statistics. More... | |
| QStandardItemModel * | myCallbackStatsModel |
| The widget to display callback statistics. More... | |
| QSortFilterProxyModel * | myCallbackStatsProxyModel |
| The widget to display callback statistics. More... | |
| QDockWidget * | myCallbackStatsDockWidget |
| The widget to display callback statistics. More... | |
| unsigned | myCallbackStatsTreeIndex |
| The widget to display callback statistics. More... | |
| std::map< unsigned, unsigned > | myCallbackIdToRowMap |
| The widget to display callback statistics. More... | |
| DtTreesAndGraphWidget * | myObjectStatsWidget |
| The widget to display object statistics. More... | |
| QStandardItemModel * | myObjectStatsModel |
| The widget to display object statistics. More... | |
| QSortFilterProxyModel * | myObjectStatsProxyModel |
| The widget to display object statistics. More... | |
| QDockWidget * | myObjectStatsDockWidget |
| The widget to display object statistics. More... | |
| std::map< unsigned, unsigned > | myObjectIdToRowMap |
| The widget to display object statistics. More... | |
| unsigned | myObjectStatsTreeIndex |
| The widget to display object statistics. More... | |
| DtTreesAndGraphWidget * | myInteractionStatsWidget |
| The widget to display interaction statistics. More... | |
| QStandardItemModel * | myInteractionStatsModel |
| The widget to display interaction statistics. More... | |
| QSortFilterProxyModel * | myInteractionStatsProxyModel |
| The widget to display interaction statistics. More... | |
| QDockWidget * | myInteractionStatsDockWidget |
| The widget to display interaction statistics. More... | |
| std::map< unsigned, unsigned > | myInteractionIdToRowMap |
| The widget to display interaction statistics. More... | |
| unsigned | myInteractionStatsTreeIndex |
| The widget to display interaction statistics. More... | |
| QLabel * | myFederateTypeHeaderLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myFederateTypeLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myFederateNameHeaderLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myFederateNameLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myProcessNameHeaderLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myProcessNameLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myHostNameHeaderLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myHostNameLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myFederationNameHeaderLabel |
| Labels presenting basic federate information. More... | |
| QLabel * | myFederationNameLabel |
| Labels presenting basic federate information. More... | |
Static Private Attributes | |
| static const MAKRti::DtFilename | theConfigFilename |
| The name of the file where the GUI configuration is stored. More... | |
Shows detailed statistics on a federate.
|
protected |
| DtFederateStatisticsDialog::DtFederateStatisticsDialog | ( | const MAKRti::DtFilename & | configDir, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy Constructor not implemented.
|
protected |
Adds a header item to the given item model and returns the row or column number.
|
private |
| void DtFederateStatisticsDialog::clearUnknownObjInstanceNamesHdls | ( | ) |
|
virtual |
| unsigned DtFederateStatisticsDialog::federateHandle | ( | ) | const |
The federation name and federate handle can identify which federate this dialog is associated with.
|
slot |
Updates how federates should be identified.
|
signal |
| MAKRti::DtString DtFederateStatisticsDialog::federationNameStr | ( | ) | const |
The federation name and federate handle can identify which federate this dialog is associated with.
|
private |
|
private |
|
private |
| const char* DtFederateStatisticsDialog::getFedAmbCallbacksHeader | ( | const DtFederateStatisticsDialogFedAmbCallbacksModelColumnEnum | col | ) | const |
Retrieve the column header text for a given column.
| const char* DtFederateStatisticsDialog::getFedAmbCallbacksHeaderToolTip | ( | const DtFederateStatisticsDialogFedAmbCallbacksModelColumnEnum | col | ) | const |
Retrieve the column header tool tip for a given column.
| const char* DtFederateStatisticsDialog::getInteractionHeader | ( | const DtFederateStatisticsDialogInteractionModelColumnEnum | col | ) | const |
Retrieve the column header text for a given column.
| const char* DtFederateStatisticsDialog::getInteractionHeaderToolTip | ( | const DtFederateStatisticsDialogInteractionModelColumnEnum | col | ) | const |
Retrieve the column header tool tip for a given column.
| const char* DtFederateStatisticsDialog::getMsgHeader | ( | const DtFederateStatisticsDialogMsgModelColumnEnum | col | ) | const |
Retrieve the column header text for a given column.
| const char* DtFederateStatisticsDialog::getMsgHeaderToolTip | ( | const DtFederateStatisticsDialogMsgModelColumnEnum | col | ) | const |
Retrieve the column header tool tip for a given column.
| const char* DtFederateStatisticsDialog::getObjectHeader | ( | const DtFederateStatisticsDialogObjectModelColumnEnum | col | ) | const |
Retrieve the column header text for a given column.
| const char* DtFederateStatisticsDialog::getObjectHeaderToolTip | ( | const DtFederateStatisticsDialogObjectModelColumnEnum | col | ) | const |
Retrieve the column header tool tip for a given column.
| const char* DtFederateStatisticsDialog::getRtiAmbServicesHeader | ( | const DtFederateStatisticsDialogRtiAmbServicesModelColumnEnum | col | ) | const |
Retrieve the column header text for a given column.
| const char* DtFederateStatisticsDialog::getRtiAmbServicesHeaderToolTip | ( | const DtFederateStatisticsDialogRtiAmbServicesModelColumnEnum | col | ) | const |
Retrieve the column header tool tip for a given column.
| const std::set<DtU32>& DtFederateStatisticsDialog::getUnknownObjectInstanceNamesHandlesAndClear | ( | ) | const |
|
protectedvirtual |
Override hideEvent to store the size of the dialog when it is hidden.
|
protected |
Initialize the message stats widget.
|
protected |
Initialize the widget which contains the ok button.
|
protected |
Initialize the callbacks stats widget.
|
protected |
Creates and initializes a new dock widget.
If isFixed is true, the dock widget will be fixed and place (the user won't be able to pull it off or tabify it).
|
protected |
Initialize the interaction stats widget.
|
protected |
Initialize the message stats widget.
|
protected |
Initialize the object stats widget.
|
protected |
Initialize the service calls stats widget.
|
protected |
Loads the GUI configuration from a file.
|
private |
Assignment Operator not implemented.
| void DtFederateStatisticsDialog::saveGuiConfiguration | ( | ) |
Saves the GUI configuration to a file.
| void DtFederateStatisticsDialog::setAssistantInfo | ( | const DtAssistantInfo & | info | ) |
The assistant info and component ID can identify which federate this dialog is associated with.
| void DtFederateStatisticsDialog::setCompId | ( | unsigned int | compId | ) |
The assistant info and component ID can identify which federate this dialog is associated with.
| void DtFederateStatisticsDialog::setConnectionInfo | ( | const DtRtiConnectionInfo & | connInfo | ) |
| void DtFederateStatisticsDialog::setFederateHandle | ( | unsigned int | federateHandle | ) |
The federation name and federate handle can identify which federate this dialog is associated with.
| void DtFederateStatisticsDialog::setFederateHost | ( | const QString & | h | ) |
Set the federate host name of the displayed federate.
| void DtFederateStatisticsDialog::setFederateIcon | ( | const QPixmap & | icon | ) |
Set the federate icon of the displayed federate.
| void DtFederateStatisticsDialog::setFederateName | ( | const QString & | n | ) |
Set the federate name of the displayed federate.
| void DtFederateStatisticsDialog::setFederateProcess | ( | const QString & | p | ) |
Set the federate process of the displayed federate.
| void DtFederateStatisticsDialog::setFederateType | ( | const QString & | t | ) |
Set the federate type of the displayed federate.
| void DtFederateStatisticsDialog::setFederationName | ( | const QString & | n | ) |
Set the federation name of the displayed federate.
| void DtFederateStatisticsDialog::setFederationNameStr | ( | const MAKRti::DtString & | federationName | ) |
The federation name and federate handle can identify which federate this dialog is associated with.
|
protectedvirtual |
Override showEvent to load the GUI config the first time it's shown.
|
virtual |
Returns the recommended size for the widget.
| void DtFederateStatisticsDialog::switchFederate | ( | ) |
Tells the dialog that the federate being observed is changing.
This will start the dialog at a blank slate to be updated.
|
virtual |
Update the tables and graphs with the latest data.
|
protected |
Updates the federate description in all necessary locations.
|
protected |
Updates the federate ID in all necessary locations.
|
virtual |
Update the tables and graphs with the latest data.
|
virtual |
Update the tables and graphs with the latest data.
|
virtual |
Update the tables and graphs with the latest data.
|
virtual |
Update the tables and graphs with the latest data.
|
virtual |
Update the tables and graphs with the latest data.
|
virtual |
Update the tables and graphs with the latest data.
|
virtual |
Update the tables and graphs with the latest data.
|
private |
|
private |
The dialog button box to close the dialog.
|
private |
The widget to display callback statistics.
|
private |
The widget to display callback statistics.
|
private |
The widget to display callback statistics.
|
private |
The widget to display callback statistics.
|
private |
The widget to display callback statistics.
|
private |
The widget to display callback statistics.
|
private |
|
private |
The directory where the GUI config file should be stored.
|
private |
|
private |
The update counter.
|
private |
|
private |
Label displaying the id for the selected federate.
|
private |
How the federate should be identified.
|
private |
Labels presenting basic federate information.
|
private |
Labels presenting basic federate information.
|
private |
Labels presenting basic federate information.
|
private |
Labels presenting basic federate information.
|
private |
|
private |
Labels presenting basic federate information.
|
private |
Labels presenting basic federate information.
|
private |
Indicates whether the dialog has been shown yet.
|
private |
Labels presenting basic federate information.
|
private |
Labels presenting basic federate information.
|
private |
Label displaying the icon for the selected federate.
|
private |
The widget to display interaction statistics.
|
private |
The widget to display interaction statistics.
|
private |
The widget to display interaction statistics.
|
private |
The widget to display interaction statistics.
|
private |
The widget to display interaction statistics.
|
private |
The widget to display interaction statistics.
|
private |
|
private |
The size of the dialog the last time it was visible.
|
private |
The dialog's main widget which is always displayed and shows basic federate identification information.
|
private |
The dialog's main widget which is always displayed and shows basic federate identification information.
|
private |
The widget to display message statistics.
|
private |
The widget to display message statistics.
|
private |
The widget to display message statistics.
|
private |
The widget to display message statistics.
|
private |
The widget to display message statistics.
|
private |
The widget to display message statistics.
|
private |
The update counter.
|
private |
|
private |
The widget to display object statistics.
|
private |
The widget to display object statistics.
|
private |
The widget to display object statistics.
|
private |
The widget to display object statistics.
|
private |
The widget to display object statistics.
|
private |
The widget to display object statistics.
|
private |
|
private |
Labels presenting basic federate information.
|
private |
Labels presenting basic federate information.
|
private |
The update counter.
|
private |
The widget to display service call statistics.
|
private |
The widget to display service call statistics.
|
private |
The widget to display service call statistics.
|
private |
The widget to display service call statistics.
|
private |
The widget to display service call statistics.
|
private |
The widget to display service call statistics.
|
private |
The update counter.
|
staticprivate |
The name of the file where the GUI configuration is stored.