![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Dialog which displays the results of network latency testing for a particular initiating federate. More...
Inheritance diagram for DtLatencyTestDialog:
Collaboration diagram for DtLatencyTestDialog:Classes | |
| struct | DtDetailedInfo |
| Structure to store detailed information. More... | |
Public Slots | |
| virtual void | processRun () |
| Process the pressing of the run button. | |
| virtual void | processContinuous () |
| Process the pressing of the continuous button. | |
| virtual void | processStop () |
| Process the pressing of the stop button. | |
| virtual void | processSave () |
| Process the pressing of the save button. | |
| virtual void | processSelectionChange () |
| Process the selection of a new item in the table. | |
| virtual void | setTestConfig (unsigned int interactionPeriod, unsigned int numInteractions, unsigned int payloadBytes) |
| Set test configuration values. | |
Signals | |
| void | run () |
| Signal emitted when run button is pressed. | |
| void | runContinuous () |
| Signal emitted when run button is pressed in continuous mode. | |
| void | stopRunning () |
| Signal emitted when stop button is pressed. | |
| void | dismiss () |
| Signal emitted when the dialog is closed or dismissed. | |
| void | updateTestConfig (unsigned int interactionPeriod, unsigned int numInteractions, unsigned int payloadBytes) |
| Signal emitted when test configuration is updated. | |
| void | observing () |
| Signal emitted when the dialog is ready to receive test reports. | |
Public Member Functions | |
| DtLatencyTestDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. | |
| virtual | ~DtLatencyTestDialog () |
| Destructor. | |
| virtual void | clearResults () |
| Clears the displayed results. | |
| virtual void | addResult (const QString &recipName, unsigned int recipHandle, DtRIDParameters::DtAsynchronousIOModeEnum initProcModel, DtRIDParameters::DtAsynchronousIOModeEnum recipProcModel, unsigned int initTickTime, unsigned int recipTickTime, unsigned int bestEffortRoundTripTime, unsigned int reliableRoundTripTime, int initBestEffortQTime, int recipBestEffortQTime, int initReliableQTime, int recipReliableQTime) |
| Adds a new test result. | |
| virtual void | addTimeoutResult (const QString &recipName, unsigned int recipHandle) |
| Adds a new timeout test result. | |
| virtual void | setName (const QString &name) |
| Renames the component. | |
| virtual void | updateStatus (bool enabled, bool capable, bool continuous, bool inProgress) |
| Updates the testing status. | |
| virtual void | indicateFederateResigned () |
| Indicate on the dialog that federate has resigned. | |
| virtual void | indicateRtiexecShutdown () |
| Indicate on the dialog that rtiexec has shutdown. | |
| virtual bool | isTestInProgress () |
| Returns true if a test is currently in progress. | |
| virtual void | closeWithoutPrompt () |
| Closes the dialog without displaying a prompt, even if a test is in progress. | |
Protected Types | |
| enum | DtResultsTableCol { RecipientCol, TransitTimeCol, TimeWaitingCol, TotalTimeCol } |
| Enumeration for the table columns. More... | |
| typedef std::map< int, DtDetailedInfo * > | DtHandleToDetailedInfoMap |
| Typedef for map of recipient handle to detailed info. | |
Protected Member Functions | |
| virtual void | getWidgetsToUpdate (unsigned int recipHandle, QTableWidgetItem *&recipItem, QTableWidgetItem *&timeWaitingItem, QTableWidgetItem *&transitTimeItem, QTableWidgetItem *&totalTimeItem, DtDetailedInfo *&details) |
| Gets the widgets in the dialog that should be updated to display the test results for the given recipient name. | |
| virtual QString | federateNameToDisplay (unsigned int handle, const QString &name=QString::null) |
| Creates the string to be used in the GUI display for the given federate. | |
| virtual unsigned int | handleFromDisplayName (const QString &name) |
| Returns the handle from the displayed federate name. | |
| virtual QString | procModelString (DtRIDParameters::DtAsynchronousIOModeEnum procModel) |
| Converts the processing model value to a string. | |
| virtual void | clearDetailsDisplay () |
| Clears the detailed information display. | |
| virtual void | setTitle () |
| Updates the title of the dialog. | |
| virtual void | closeEvent (QCloseEvent *event) |
| Handles the closing of the window. | |
| virtual void | showEvent (QShowEvent *event) |
| Prepare the dialog to be shown. | |
| virtual void | convertToMsString (unsigned int usec, QString &result, const QString ¬AvailableString=theLongNAString, bool zeroIsNotAvailable=true) |
| Converts from usec to a string displaying msec. | |
| virtual void | convertToMsString (int usec, QString &result, const QString ¬AvailableString=theLongNAString, bool zeroIsNotAvailable=true) |
| Converts from usec to a string displaying msec. | |
Protected Attributes | |
| Ui::LatencyTestDialog | myUiImpl |
| QString | myName |
| Name of the initiating federate. | |
| QString | myStatusText |
| Text which displays the current status. | |
| DtHandleToDetailedInfoMap | myDetailedInfo |
| Map of recipient handles to more detailed information. | |
| DtLatencyTestConfigWidget * | myConfigWidget |
| The widget which configures latency test parameters. | |
| bool | myTestingEnabled |
| Stores whether or not testing is enabled. | |
| bool | myTestCapable |
| Stores whether or not the LRC is currently capable of running a test. | |
| bool | myTestInProgress |
| Stores whether or not a test is in progress. | |
| bool | myContinuous |
| Stores whether or not the current test is continuous. | |
| QIcon | myContinuousIcon |
| Icon for the continuous button when it is not depressed. | |
| QString | mySavedFile |
| The previously saved file. | |
| bool | myCloseWithoutPrompt |
| Indicates that no prompt should be displayed when the dialog is closed. | |
Static Protected Attributes | |
| static const QString | theShortNAString = "--" |
| Short string used to indicate metric is not available. | |
| static const QString | theLongNAString = "Not available" |
| Longer string used to indicate metric is not available. | |
| static const QString | theInitiatorToolTip = "The federate initiating test messages." |
| Tool tip text for the displayed information. | |
| static const QString | theRecipientToolTip = "The remote federate the initiator is sending messages to." |
| Tool tip text for the displayed information. | |
| static const QString | theTimeWaitingToolTip = "Shown as Best Effort Time / Reliable Time" |
| Tool tip text for the displayed information. | |
| static const QString | theTransitTimeToolTip = "Shown as Best Effort Time / Reliable Time" |
| Tool tip text for the displayed information. | |
| static const QString | theTotalTimeToolTip = "Shown as Best Effort Time / Reliable Time" |
| Tool tip text for the displayed information. | |
| static const QString | theTimestampToolTip = "The time at which this test result was received." |
| Tool tip text for the displayed information. | |
| static const QString | theProcModelToolTip = "Some metrics are not available in all modes." |
| Tool tip text for the displayed information. | |
| static const QString | theTickTimeToolTip = "The average time between ticks on this federate." |
| Tool tip text for the displayed information. | |
| static const QString | theQTimeToolTip = "Callbacks processing modes." |
| Tool tip text for the displayed information. | |
| static const QString | theRunButtonToolTip = "Run a test" |
| Tool tip text for the dialog buttons. | |
| static const QString | theStopButtonToolTip = "Stop the current test" |
| Tool tip text for the dialog buttons. | |
| static const QString | theContinuousButtonToolTip = "Run test continuously" |
| Tool tip text for the dialog buttons. | |
| static const QString | theConfigureButtonToolTip = "Configure test preferences" |
| Tool tip text for the dialog buttons. | |
| static const QString | theSaveButtonToolTip = "Save the results to a file" |
| Tool tip text for the dialog buttons. | |
Dialog which displays the results of network latency testing for a particular initiating federate.
|
protected |
Typedef for map of recipient handle to detailed info.
|
protected |
| DtLatencyTestDialog::DtLatencyTestDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
References connect(), DtRtiLibPath(), DtIconAndTextureManager::getIcon(), DtIconAndTextureManager::getInstance(), myContinuousIcon, myUiImpl, processContinuous(), processRun(), processSave(), processSelectionChange(), processStop(), RecipientCol, theConfigureButtonToolTip, theContinuousButtonToolTip, theInitiatorToolTip, theProcModelToolTip, theQTimeToolTip, theRecipientToolTip, theRunButtonToolTip, theSaveButtonToolTip, theStopButtonToolTip, theTickTimeToolTip, theTimestampToolTip, theTimeWaitingToolTip, theTotalTimeToolTip, theTransitTimeToolTip, TimeWaitingCol, TotalTimeCol, and TransitTimeCol.
|
virtual |
Destructor.
References myConfigWidget.
|
virtual |
Adds a new test result.
References convertToMsString(), federateNameToDisplay(), getWidgetsToUpdate(), DtLatencyTestDialog::DtDetailedInfo::initProcModel, DtLatencyTestDialog::DtDetailedInfo::initQTime, DtLatencyTestDialog::DtDetailedInfo::initTickTime, myUiImpl, procModelString(), DtLatencyTestDialog::DtDetailedInfo::recipName, DtLatencyTestDialog::DtDetailedInfo::recipProcModel, DtLatencyTestDialog::DtDetailedInfo::recipQTime, DtLatencyTestDialog::DtDetailedInfo::recipTickTime, theLongNAString, theShortNAString, and DtLatencyTestDialog::DtDetailedInfo::timestamp.
Referenced by DtAssistantLatencyTestMgr::processLatencyTestResults().
|
virtual |
Adds a new timeout test result.
References federateNameToDisplay(), getWidgetsToUpdate(), myUiImpl, DtLatencyTestDialog::DtDetailedInfo::recipName, and DtLatencyTestDialog::DtDetailedInfo::timestamp.
Referenced by DtAssistantLatencyTestMgr::processLatencyTestResults().
|
protectedvirtual |
Clears the detailed information display.
References myUiImpl.
Referenced by clearResults(), and processSelectionChange().
|
virtual |
Clears the displayed results.
References clearDetailsDisplay(), myDetailedInfo, and myUiImpl.
Referenced by closeEvent().
|
protectedvirtual |
Handles the closing of the window.
References clearResults(), dismiss(), myCloseWithoutPrompt, myContinuous, myTestInProgress, and updateStatus().
|
virtual |
Closes the dialog without displaying a prompt, even if a test is in progress.
References myCloseWithoutPrompt.
Referenced by DtAssistantLatencyTestMgr::verifyNewTestCanBeRun().
|
protectedvirtual |
Converts from usec to a string displaying msec.
Referenced by addResult(), and convertToMsString().
|
protectedvirtual |
Converts from usec to a string displaying msec.
References convertToMsString().
|
signal |
Signal emitted when the dialog is closed or dismissed.
Referenced by closeEvent().
|
protectedvirtual |
Creates the string to be used in the GUI display for the given federate.
Referenced by addResult(), addTimeoutResult(), and getWidgetsToUpdate().
|
protectedvirtual |
Gets the widgets in the dialog that should be updated to display the test results for the given recipient name.
References federateNameToDisplay(), myDetailedInfo, myUiImpl, RecipientCol, theRecipientToolTip, theTimeWaitingToolTip, theTotalTimeToolTip, theTransitTimeToolTip, TimeWaitingCol, TotalTimeCol, and TransitTimeCol.
Referenced by addResult(), and addTimeoutResult().
|
protectedvirtual |
Returns the handle from the displayed federate name.
Referenced by processSave(), and processSelectionChange().
|
virtual |
Indicate on the dialog that federate has resigned.
References myStatusText, myTestCapable, myTestInProgress, myUiImpl, and setTitle().
Referenced by DtAssistantLatencyTestMgr::removeLrcComponent().
|
virtual |
Indicate on the dialog that rtiexec has shutdown.
References myStatusText, myTestCapable, myTestInProgress, myUiImpl, and setTitle().
Referenced by DtAssistantLatencyTestMgr::processConnectionsRemoval(), and DtAssistantLatencyTestMgr::processConnectionsUpdate().
|
virtual |
Returns true if a test is currently in progress.
References myTestInProgress.
Referenced by DtAssistantLatencyTestMgr::verifyNewTestCanBeRun().
|
signal |
Signal emitted when the dialog is ready to receive test reports.
Referenced by showEvent().
|
virtualslot |
Process the pressing of the continuous button.
References myUiImpl, and runContinuous().
Referenced by DtLatencyTestDialog().
|
virtualslot |
Process the pressing of the run button.
References myStatusText, myUiImpl, run(), runContinuous(), and setTitle().
Referenced by DtLatencyTestDialog(), and showEvent().
|
virtualslot |
Process the pressing of the save button.
References handleFromDisplayName(), myDetailedInfo, myName, mySavedFile, and myUiImpl.
Referenced by DtLatencyTestDialog().
|
virtualslot |
Process the selection of a new item in the table.
References clearDetailsDisplay(), handleFromDisplayName(), DtLatencyTestDialog::DtDetailedInfo::initProcModel, DtLatencyTestDialog::DtDetailedInfo::initQTime, DtLatencyTestDialog::DtDetailedInfo::initTickTime, myDetailedInfo, myUiImpl, RecipientCol, DtLatencyTestDialog::DtDetailedInfo::recipName, DtLatencyTestDialog::DtDetailedInfo::recipProcModel, DtLatencyTestDialog::DtDetailedInfo::recipQTime, DtLatencyTestDialog::DtDetailedInfo::recipTickTime, and DtLatencyTestDialog::DtDetailedInfo::timestamp.
Referenced by DtLatencyTestDialog().
|
virtualslot |
Process the pressing of the stop button.
References myStatusText, myTestInProgress, myUiImpl, setTitle(), and stopRunning().
Referenced by DtLatencyTestDialog().
|
protectedvirtual |
Converts the processing model value to a string.
References DtRIDParameters::DtAsynchronousCallbacks, DtRIDParameters::DtAsynchronousMode, DtRIDParameters::DtAsynchronousProcessMessage, and DtRIDParameters::DtSynchronousMode.
Referenced by addResult().
|
signal |
Signal emitted when run button is pressed.
Referenced by processRun().
|
signal |
Signal emitted when run button is pressed in continuous mode.
Referenced by processContinuous(), and processRun().
|
virtual |
Renames the component.
References myName, myUiImpl, and setTitle().
Referenced by DtAssistantLatencyTestMgr::renameComponent(), DtAssistantLatencyTestMgr::showLrcLatencyTestDialog(), and DtAssistantLatencyTestMgr::showRtiexecLatencyTestDialog().
|
virtualslot |
Set test configuration values.
References connect(), myConfigWidget, myUiImpl, DtLatencyTestConfigWidget::setConfig(), and updateTestConfig().
Referenced by DtAssistantLatencyTestMgr::showLrcLatencyTestDialog(), and DtAssistantLatencyTestMgr::showRtiexecLatencyTestDialog().
|
protectedvirtual |
Updates the title of the dialog.
References myName, and myStatusText.
Referenced by indicateFederateResigned(), indicateRtiexecShutdown(), processRun(), processStop(), setName(), and updateStatus().
|
protectedvirtual |
Prepare the dialog to be shown.
References myUiImpl, observing(), and processRun().
|
signal |
Signal emitted when stop button is pressed.
Referenced by processStop().
|
virtual |
Updates the testing status.
References myContinuous, myStatusText, myTestCapable, myTestingEnabled, myTestInProgress, myUiImpl, and setTitle().
Referenced by closeEvent(), DtAssistantLatencyTestMgr::processTestMgrStatusUpdate(), and DtAssistantLatencyTestMgr::updateFederateTestStatus().
|
signal |
Signal emitted when test configuration is updated.
Referenced by setTestConfig().
|
protected |
Indicates that no prompt should be displayed when the dialog is closed.
Referenced by closeEvent(), and closeWithoutPrompt().
|
protected |
The widget which configures latency test parameters.
Referenced by setTestConfig(), and ~DtLatencyTestDialog().
|
protected |
Stores whether or not the current test is continuous.
Referenced by closeEvent(), and updateStatus().
|
protected |
Icon for the continuous button when it is not depressed.
Referenced by DtLatencyTestDialog().
|
protected |
Map of recipient handles to more detailed information.
Referenced by clearResults(), getWidgetsToUpdate(), processSave(), and processSelectionChange().
|
protected |
Name of the initiating federate.
Referenced by processSave(), setName(), and setTitle().
|
protected |
The previously saved file.
Referenced by processSave().
|
protected |
Text which displays the current status.
Referenced by indicateFederateResigned(), indicateRtiexecShutdown(), processRun(), processStop(), setTitle(), and updateStatus().
|
protected |
Stores whether or not the LRC is currently capable of running a test.
Referenced by indicateFederateResigned(), indicateRtiexecShutdown(), and updateStatus().
|
protected |
Stores whether or not testing is enabled.
Referenced by updateStatus().
|
protected |
Stores whether or not a test is in progress.
Referenced by closeEvent(), indicateFederateResigned(), indicateRtiexecShutdown(), isTestInProgress(), processStop(), and updateStatus().
|
protected |
Referenced by addResult(), addTimeoutResult(), clearDetailsDisplay(), clearResults(), DtLatencyTestDialog(), getWidgetsToUpdate(), indicateFederateResigned(), indicateRtiexecShutdown(), processContinuous(), processRun(), processSave(), processSelectionChange(), processStop(), setName(), setTestConfig(), showEvent(), and updateStatus().
|
staticprotected |
Tool tip text for the dialog buttons.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Tool tip text for the dialog buttons.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Longer string used to indicate metric is not available.
Referenced by addResult().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog(), and getWidgetsToUpdate().
|
staticprotected |
Tool tip text for the dialog buttons.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Tool tip text for the dialog buttons.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Short string used to indicate metric is not available.
Referenced by addResult().
|
staticprotected |
Tool tip text for the dialog buttons.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog(), and getWidgetsToUpdate().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog(), and getWidgetsToUpdate().
|
staticprotected |
Tool tip text for the displayed information.
Referenced by DtLatencyTestDialog(), and getWidgetsToUpdate().