![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Shows detailed statistics on a fom. More...
Inheritance diagram for DtFomStatisticsDialog:
Collaboration diagram for DtFomStatisticsDialog:Public Slots | |
| void | federateIdentifierUpdated (unsigned int) |
| Updates how federates should be identified. More... | |
| void | processObjectSelection (const QModelIndex &index, bool forceUpdate=false) |
| void | processInteractionSelection (const QModelIndex &index, bool forceUpdate=false) |
Signals | |
| void | fomStatDlgClosing (const DtAssistantInfo &, int, const MAKRti::DtString &, int, const DtRtiConnectionInfo &) |
Public Member Functions | |
| DtFomStatisticsDialog (const MAKRti::DtFilename &configDir, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. More... | |
| virtual | ~DtFomStatisticsDialog () |
| 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) |
| void | saveGuiConfiguration () |
| Saves the GUI configuration to a file. More... | |
| void | updateObjectFomTreeData (const std::vector< MAKRti::DtU32 > &classHandles, const std::vector< MAKRti::DtU32 > &parentClassHandles, const std::vector< MAKRti::DtString > &classNames) |
| void | updateInteractionFomTreeData (const std::vector< MAKRti::DtU32 > &classHandles, const std::vector< MAKRti::DtU32 > &parentClassHandles, const std::vector< MAKRti::DtString > &classNames) |
| virtual void | updateAttributesTable (const MAKRti::DtString &name, MAKRti::DtU32 handle) |
| virtual void | updateParametersTable (const MAKRti::DtString &name, MAKRti::DtU32 handle) |
| void | clearAttributesNames () |
| void | updateAttributeNames (const std::vector< MAKRti::DtU32 > &objectClassHandles, const std::vector< MAKRti::DtU32 > &attributeHandles, const std::vector< MAKRti::DtString > &attributeNames, const std::vector< MAKRti::DtU32 > &parentClassHandles, const std::vector< MAKRti::DtU32 > &totalClassHandles) |
| void | clearParameterNames () |
| void | updateParameterNames (const std::vector< MAKRti::DtU32 > &interClassHandles, const std::vector< MAKRti::DtU32 > ¶mHandles, const std::vector< MAKRti::DtString > ¶mNames, const std::vector< MAKRti::DtU32 > &parentInterHandles, const std::vector< MAKRti::DtU32 > &totalInterHandles) |
| void | updateAttrFomState (const std::vector< MAKRti::DtU32 > &objectClassHandles, const std::vector< MAKRti::DtU32 > &attributeHandles, const std::vector< bool > &attributePub, const std::vector< bool > &attributeSub, const std::vector< DtTransportType > &attributeTransport, const std::vector< DtOrderType > &attributeOrder, const std::vector< MAKRti::DtU32 > &objectPubSubHandles, const std::vector< bool > &objPub, const std::vector< bool > &ObjSub) |
| void | updateParamFomState (const std::vector< MAKRti::DtU32 > &objectClassHandles, const std::vector< MAKRti::DtU32 > &attributeHandles, const std::vector< bool > &attributePub, const std::vector< bool > &attributeSub, const std::vector< DtTransportType > &attributeTransport, const std::vector< DtOrderType > &attributeOrder, const std::vector< MAKRti::DtU32 > &objectPubSubHandles, const std::vector< bool > &objPub, const std::vector< bool > &ObjSub) |
| void | clearAll () |
| void | switchFederate () |
| void | refresh () |
| void | setFederationNameStr (const MAKRti::DtString &federationName) |
| MAKRti::DtString | federationNameStr () |
| void | setFederateHandle (int federateHandle) |
| int | federateHandle () |
| void | setAssistantInfo (const DtAssistantInfo &info) |
| void | setCompId (unsigned int compId) |
| void | setConnInfo (const DtRtiConnectionInfo &connInfo) |
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 | 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, 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... | |
Private Types | |
| typedef std::pair < MAKRti::DtU32, MAKRti::DtU32 > | DtHandlePair |
Private Member Functions | |
| DtFomStatisticsDialog (const DtFomStatisticsDialog &) | |
| Copy Constructor not implemented. More... | |
| DtFomStatisticsDialog & | operator= (const DtFomStatisticsDialog &) |
| Assignment Operator not implemented. More... | |
| MAKRti::DtString | getFullObjectName (QStandardItem *objectItem, bool addHandle=false) |
| MAKRti::DtString | getFullObjectName (MAKRti::DtU32 objectHandle, bool addHandle=false) |
| MAKRti::DtString | getFullInteractionName (QStandardItem *interactionItem, bool addHandle=false) |
| MAKRti::DtString | getFullInteractionName (MAKRti::DtU32 interactionHandle, bool addHandle=false) |
| const char * | getObjHeader (const enum DtFomStatisticsDialogObjectModelColumnEnum col) |
| const char * | getInterHeader (const enum DtFomStatisticsDialogInteractionModelColumnEnum col) |
| const char * | getAttrHeader (const enum DtFomStatisticsDialogAttributeModelColumnEnum col) |
| const char * | getParamHeader (const enum DtFomStatisticsDialogParameterModelColumnEnum col) |
| void | updateObjectPubSub (const std::vector< MAKRti::DtU32 > &objectPubSubHandles, const std::vector< bool > &objPub, const std::vector< bool > &ObjSub) |
| void | updateInteractionPubSub (const std::vector< MAKRti::DtU32 > &objectPubSubHandles, const std::vector< bool > &objPub, const std::vector< bool > &objSub) |
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... | |
| std::map< DtU32, MAKRti::DtString > | myObjClassNamesByObjClassHdlsMap |
| std::map< DtU32, MAKRti::DtString > | myInterClassNamesByInterClassHdlsMap |
| std::map< MAKRti::DtU32, QStandardItem * > | myObjectItemsByObjectHandleMap |
| std::map< QStandardItem *, MAKRti::DtU32 > | myObjectHandlesByObjectItemsMap |
| std::map< MAKRti::DtU32, QStandardItem * > | myInteractionItemsByInteractionHandleMap |
| std::map< QStandardItem *, MAKRti::DtU32 > | myInteractionHandlesByInteractionItemsMap |
| std::map< MAKRti::DtU32, QModelIndex > | myObjPubItemsByObjHandlesMap |
| std::map< MAKRti::DtU32, QModelIndex > | myObjSubItemsByObjHandlesMap |
| MAKRti::DtU32 | myLatencyTestHandle |
| MAKRti::DtU32 | myObjectRootHandle |
| MAKRti::DtU32 | myInteractionRootHandle |
| std::map< MAKRti::DtU32, MAKRti::DtU32 > | myObjectParentHandleByObjectHandleMap |
| std::map< MAKRti::DtU32, MAKRti::DtU32 > | myInteractionParentHandleByInteractionHandleMap |
| std::map< MAKRti::DtU32, std::vector< MAKRti::DtU32 > > | myAttributeHandlesByAttrObjectClassHandleMap |
| std::map< MAKRti::DtU32, std::vector< MAKRti::DtString > > | myAttributeNamesByAttrObjectClassHandleMap |
| std::map< MAKRti::DtU32, std::vector< MAKRti::DtU32 > > | myParameterHandlesByParamInteractionHandleMap |
| std::map< MAKRti::DtU32, std::vector< MAKRti::DtString > > | myParameterNamesByParamInteractionHandleMap |
| std::map< DtHandlePair, bool > | myAttrPubByObjAttrHandlePair |
| std::map< DtHandlePair, bool > | myAttrSubByObjAttrHandlePair |
| std::map< DtHandlePair, DtTransportType > | myAttrTransportByObjAttrHandlePair |
| std::map< DtHandlePair, DtOrderType > | myAttrOrderByObjAttrHandlePair |
| std::map< MAKRti::DtU32, bool > | myObjPubByObjHandleMap |
| std::map< MAKRti::DtU32, bool > | myObjSubByObjHandleMap |
| std::map< DtHandlePair, bool > | myParamPubByIntParamHandlePair |
| std::map< DtHandlePair, bool > | myParamSubByIntParamHandlePair |
| std::map< DtHandlePair, DtTransportType > | myParamTransportByIntParamHandlePair |
| std::map< DtHandlePair, DtOrderType > | myParamOrderByIntParamHandlePair |
| std::map< MAKRti::DtU32, bool > | myIntPubByIntHandleMap |
| std::map< MAKRti::DtU32, bool > | myIntSubByIntHandleMap |
| std::map< MAKRti::DtU32, QModelIndex > | myIntPubItemsByIntHandlesMap |
| std::map< MAKRti::DtU32, QModelIndex > | myIntSubItemsByIntHandlesMap |
| 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... | |
| QIcon | myCheckMarkIcon |
| QIcon | myBlankIcon |
| QString | myUnicodeCheckMark |
| bool | myShouldUseIcons |
| bool | myShouldDisplayTransport |
| bool | myShouldDisplayOrder |
| QModelIndex | myObjectSelectionIndex |
| QModelIndex | myInteractionSelectionIndex |
| QStandardItem * | myObjHlaManagerItem |
| QStandardItem * | myIntHlaManagerItem |
| bool | myCollapseMomItems |
| MAKRti::DtString | myFederationNameStr |
| int | myFederateHandle |
| DtAssistantInfo | myAssistantinfo |
| int | myCompid |
| 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... | |
| DtFomTreeAndTableWidget * | 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... | |
| QStandardItemModel * | myAttributeStatsModel |
| The widget to display object statistics. More... | |
| QSortFilterProxyModel * | myAttributeStatsProxyModel |
| The widget to display object statistics. More... | |
| DtFomTreeAndTableWidget * | 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... | |
| QStandardItemModel * | myParameterStatsModel |
| The widget to display interaction statistics. More... | |
| QSortFilterProxyModel * | myParameterStatsProxyModel |
| 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 fom.
|
private |
|
protected |
| DtFomStatisticsDialog::DtFomStatisticsDialog | ( | 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.
| void DtFomStatisticsDialog::clearAll | ( | ) |
| void DtFomStatisticsDialog::clearAttributesNames | ( | ) |
| void DtFomStatisticsDialog::clearParameterNames | ( | ) |
|
virtual |
| int DtFomStatisticsDialog::federateHandle | ( | ) |
|
slot |
Updates how federates should be identified.
| MAKRti::DtString DtFomStatisticsDialog::federationNameStr | ( | ) |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
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 |
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 object stats widget.
|
protected |
Loads the GUI configuration from a file.
|
private |
Assignment Operator not implemented.
|
slot |
|
slot |
| void DtFomStatisticsDialog::refresh | ( | ) |
| void DtFomStatisticsDialog::saveGuiConfiguration | ( | ) |
Saves the GUI configuration to a file.
| void DtFomStatisticsDialog::setAssistantInfo | ( | const DtAssistantInfo & | info | ) |
| void DtFomStatisticsDialog::setCompId | ( | unsigned int | compId | ) |
| void DtFomStatisticsDialog::setConnInfo | ( | const DtRtiConnectionInfo & | connInfo | ) |
| void DtFomStatisticsDialog::setFederateHandle | ( | int | federateHandle | ) |
| void DtFomStatisticsDialog::setFederateHost | ( | const QString & | h | ) |
Set the federate host name of the displayed federate.
| void DtFomStatisticsDialog::setFederateIcon | ( | const QPixmap & | icon | ) |
Set the federate icon of the displayed federate.
| void DtFomStatisticsDialog::setFederateName | ( | const QString & | n | ) |
Set the federate name of the displayed federate.
| void DtFomStatisticsDialog::setFederateProcess | ( | const QString & | p | ) |
Set the federate process of the displayed federate.
| void DtFomStatisticsDialog::setFederateType | ( | const QString & | t | ) |
Set the federate type of the displayed federate.
| void DtFomStatisticsDialog::setFederationName | ( | const QString & | n | ) |
Set the federation name of the displayed federate.
| void DtFomStatisticsDialog::setFederationNameStr | ( | const MAKRti::DtString & | federationName | ) |
|
protectedvirtual |
Override showEvent to load the GUI config the first time it's shown.
|
virtual |
Returns the recommended size for the widget.
| void DtFomStatisticsDialog::switchFederate | ( | ) |
| void DtFomStatisticsDialog::updateAttrFomState | ( | const std::vector< MAKRti::DtU32 > & | objectClassHandles, |
| const std::vector< MAKRti::DtU32 > & | attributeHandles, | ||
| const std::vector< bool > & | attributePub, | ||
| const std::vector< bool > & | attributeSub, | ||
| const std::vector< DtTransportType > & | attributeTransport, | ||
| const std::vector< DtOrderType > & | attributeOrder, | ||
| const std::vector< MAKRti::DtU32 > & | objectPubSubHandles, | ||
| const std::vector< bool > & | objPub, | ||
| const std::vector< bool > & | ObjSub | ||
| ) |
| void DtFomStatisticsDialog::updateAttributeNames | ( | const std::vector< MAKRti::DtU32 > & | objectClassHandles, |
| const std::vector< MAKRti::DtU32 > & | attributeHandles, | ||
| const std::vector< MAKRti::DtString > & | attributeNames, | ||
| const std::vector< MAKRti::DtU32 > & | parentClassHandles, | ||
| const std::vector< MAKRti::DtU32 > & | totalClassHandles | ||
| ) |
|
virtual |
|
protected |
Updates the federate ID in all necessary locations.
| void DtFomStatisticsDialog::updateInteractionFomTreeData | ( | const std::vector< MAKRti::DtU32 > & | classHandles, |
| const std::vector< MAKRti::DtU32 > & | parentClassHandles, | ||
| const std::vector< MAKRti::DtString > & | classNames | ||
| ) |
|
private |
| void DtFomStatisticsDialog::updateObjectFomTreeData | ( | const std::vector< MAKRti::DtU32 > & | classHandles, |
| const std::vector< MAKRti::DtU32 > & | parentClassHandles, | ||
| const std::vector< MAKRti::DtString > & | classNames | ||
| ) |
|
private |
| void DtFomStatisticsDialog::updateParameterNames | ( | const std::vector< MAKRti::DtU32 > & | interClassHandles, |
| const std::vector< MAKRti::DtU32 > & | paramHandles, | ||
| const std::vector< MAKRti::DtString > & | paramNames, | ||
| const std::vector< MAKRti::DtU32 > & | parentInterHandles, | ||
| const std::vector< MAKRti::DtU32 > & | totalInterHandles | ||
| ) |
|
virtual |
| void DtFomStatisticsDialog::updateParamFomState | ( | const std::vector< MAKRti::DtU32 > & | objectClassHandles, |
| const std::vector< MAKRti::DtU32 > & | attributeHandles, | ||
| const std::vector< bool > & | attributePub, | ||
| const std::vector< bool > & | attributeSub, | ||
| const std::vector< DtTransportType > & | attributeTransport, | ||
| const std::vector< DtOrderType > & | attributeOrder, | ||
| const std::vector< MAKRti::DtU32 > & | objectPubSubHandles, | ||
| const std::vector< bool > & | objPub, | ||
| const std::vector< bool > & | ObjSub | ||
| ) |
|
private |
|
private |
|
private |
|
private |
The widget to display object statistics.
|
private |
The widget to display object statistics.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
The dialog button box to close the dialog.
|
private |
|
private |
|
private |
|
private |
The directory where the GUI config file should be stored.
|
private |
|
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 |
Labels presenting basic federate information.
|
private |
Labels presenting basic federate information.
|
private |
|
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 |
|
private |
The widget to display interaction statistics.
|
private |
|
private |
|
private |
|
private |
|
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 |
|
private |
|
private |
|
private |
|
private |
|
private |
The size of the dialog the last time it was visible.
|
private |
|
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 |
|
private |
|
private |
The widget to display object statistics.
|
private |
|
private |
|
private |
|
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 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
The widget to display interaction statistics.
|
private |
The widget to display interaction statistics.
|
private |
|
private |
|
private |
|
private |
|
private |
Labels presenting basic federate information.
|
private |
Labels presenting basic federate information.
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
The name of the file where the GUI configuration is stored.