![]() |
MAK RTIspy API Documentation for HLA 1516
|
Inheritance diagram for DtFederateTree:
Collaboration diagram for DtFederateTree:Public Types | |
| enum | DtFederateTreeCol { FederationNameIndex = 0, FederateTypeAndHandleIndex = 0, FederateIPIndex, HlaVersionIndex, WebSpyIndex, FederateNameIndex, RegulatingStateIndex, ConstrainedStateIndex, LbtsIndex, LookAheadIndex, CurrentTimeIndex, TestStatusIndex, TestCountIndex } |
Public Slots | |
| virtual void | showColumns () |
| Updates which columns are shown or hidden. | |
| virtual void | setAllColumns (const std::map< QString, std::pair< int, bool > > &columns) |
| Set the columns that are currently shown. | |
| virtual void | allColumns (std::map< QString, std::pair< int, bool > > &columns) |
| Get the columns and their position / visible value (cols in emptied and populated). | |
| virtual void | showColCustomizeDlg () |
| Displays the column view customize dialog. | |
| virtual void | deleteSelectedFed () |
| Emits the fedDeleteRequest signal for the selected federate. | |
| virtual void | destroySelectedFederations () |
| For each federation selected, resign the federates then emit federationDelete. | |
| virtual void | updateEnableNetworkTestingForSelectedFederations () |
| For each federation selected, enables or disables testing. | |
| virtual void | openFedWebSpy () |
| Emits the openFedWebSpyRequest signal for the selected federate. | |
| virtual void | showLatencyTest () |
| Emits the showFedLatencyTest signal for the selected federate. | |
| virtual void | clearAllDeadFederates () |
| Clears all defunct federates. | |
| virtual bool | hasValidFederates () const |
| returns whether any federates are valid. | |
| virtual void | clearCurrDefunctFederates () |
| Clear only the currently selected dead federates. | |
| void | refreshMenus () |
| Refresh the currently available menu options. | |
| virtual void | showContextMenu (const QPoint &) |
| Shows the context menu at the given position. | |
Signals | |
| void | fedDeleteRequest (int, const QString &) |
| void | federationDeleteRequest (const QString &fedexName) |
| void | openFedWebSpyRequest (const QString &, int) |
| void | enableNetworkTestingRequest (const QString &) |
| void | disableNetworkTestingRequest (const QString &) |
| void | showFedLatencyTest (const QString &, int) |
Public Member Functions | |
| DtFederateTree (QWidget *parent) | |
| virtual | ~DtFederateTree () |
| virtual bool | updateFederation (const DtAssistantFederationInfo &federation) |
| Updates or adds a federation to the tree. | |
| virtual bool | removeFederation (const QString &name) |
| Removes the federation with the given name from the tree. | |
| virtual void | removeAllFederations () |
| Removes all of the federations from the tree. | |
| virtual bool | updateFederate (const DtAssistantFederateInfo &federate, const QString &fedexName) |
| Updates or adds a federate to an existing federation in the tree. | |
| virtual bool | removeFederate (int federateHandle, const QString &fedexName, bool clearedDefunct=false) |
| Removes a federate from an existing federation in the tree. | |
| virtual void | displayLoadingIndication () |
| Displays a message that the current federation information is loading. | |
| virtual void | removeLoadingIndication () |
| Removes the loading indication messages. | |
| bool | isFederateValid (int federateHandle, const QString &fedexName) const |
| Is this federate valid? | |
| void | processInvalidList () |
| Process the list of Invalid federates for automatic removal. | |
| QMenu * | columnViewMenu () |
| Returns a pointer to the menu which allows users to hide/display any columns in the tree. | |
| QMenu * | federateMenu () |
| Returns a pointer to the menu which allows users to perform actions related to the currently selected federates. | |
| QMenu * | federationMenu () |
| Returns a pointer to the menu which allows users to perform actions related to the current selected federations. | |
| void | setFederateRemovalTime (float newTime) |
| Change the time after which a federate that fails to reconnect will be removed from the rtiexec federate tree. | |
| float | getFederateRemovalTime () const |
| Get the time for the federate removal. | |
| void | enableDeletion (bool enable) |
| Enables or disables federate and federation deletion options. | |
| QString | getTreeFederationName (const MAKRti::DtString &federationName) |
| Get the federation name the tree uses ( with the handle ) | |
Static Public Attributes | |
| static const QString | theLoadingText = tr("Loading...") |
| The message that indicates information is being loaded. | |
| static const QString | theFederationFederateString = tr("Federation/Federate") |
| Column header strings. | |
| static const QString | theIpAddressString = tr("Hostname (IP Address)") |
| Column header strings. | |
| static const QString | theRegulatingString = tr("Regulating") |
| Column header strings. | |
| static const QString | theConstrainedString = tr("Constrained") |
| Column header strings. | |
| static const QString | theLBTSString = tr("LBTS") |
| Column header strings. | |
| static const QString | theLookaheadString = tr("Lookahead") |
| Column header strings. | |
| static const QString | theCurrentTimeString = tr("Current Time") |
| Column header strings. | |
| static const QString | theWwwspyString = tr("RTIspy") |
| Column header strings. | |
| static const QString | theTestCapableString = tr("Test Capable") |
| Column header strings. | |
| static const QString | theTestStatusString = tr("Testing") |
| Column header strings. | |
| static const QString | theTestCountString = tr("Test Count") |
| Column header strings. | |
| static const QString | theFederateNameString = tr("Federate Name") |
| Column header strings. | |
| static const QString | theHlaVersionString = tr("HLA Version") |
| Column header strings. | |
| static const QString | theFederationFederateToolTip |
| Tool tip strings. | |
| static const QString | theFederationNameToolTip |
| Tool tip strings. | |
| static const QString | theFederateTypeToolTip |
| Tool tip strings. | |
| static const QString | theIpAddressToolTip |
| Tool tip strings. | |
| static const QString | theRegulatingToolTip |
| Tool tip strings. | |
| static const QString | theRegulatingEnabledToolTip |
| Tool tip strings. | |
| static const QString | theRegulatingDisabledToolTip |
| Tool tip strings. | |
| static const QString | theConstrainedToolTip |
| Tool tip strings. | |
| static const QString | theConstrainedEnabledToolTip |
| Tool tip strings. | |
| static const QString | theConstrainedDisabledToolTip |
| Tool tip strings. | |
| static const QString | theLBTSToolTip |
| Tool tip strings. | |
| static const QString | theLookaheadToolTip |
| Tool tip strings. | |
| static const QString | theCurrentTimeToolTip |
| Tool tip strings. | |
| static const QString | theWwwspyToolTip |
| Tool tip strings. | |
| static const QString | theWwwspyEnabledToolTip |
| Tool tip strings. | |
| static const QString | theWwwspyDisabledToolTip |
| Tool tip strings. | |
| static const QString | theTestCapableToolTip |
| Tool tip strings. | |
| static const QString | theTestCapableEnabledToolTip |
| Tool tip strings. | |
| static const QString | theTestCapableDisabledToolTip |
| Tool tip strings. | |
| static const QString | theTestStatusToolTip |
| Tool tip strings. | |
| static const QString | theNoTestToolTip |
| Tool tip strings. | |
| static const QString | theContinuousTestToolTip |
| Tool tip strings. | |
| static const QString | theSingleTestToolTip |
| Tool tip strings. | |
| static const QString | theTestCountToolTip |
| Tool tip strings. | |
| static const QString | theFederateNameToolTip |
| Tool tip strings. | |
| static const QString | theHlaVersionToolTip |
| Tool tip strings. | |
Protected Member Functions | |
| virtual void | updateFederateItems (const DtFederateInfoByHandleMap &federates, QTreeWidgetItem *fedexItem) |
| Updates the federate items for the given federation item. | |
| virtual void | updateFederateItem (const DtAssistantFederateInfo &federate, const QString &fedexName, QTreeWidgetItem *fedItem) |
| Updates the federate item with the given information. | |
| virtual void | removeAllFederateItems (QTreeWidgetItem *fedexItem) |
| Removes all of federate items from the given federation item. | |
| virtual void | removeFederateItem (QTreeWidgetItem *fedItem, QTreeWidgetItem *fedexItem, bool clearedDefunct=false) |
| Removes and deletes the given federate item from the given federation item. | |
| bool | isFederateValid (QTreeWidgetItem *item) const |
| Is the federate represented by this QTreeWidgetItem valid. | |
Protected Attributes | |
| QMenu * | myColViewMenu |
| Column view menu. | |
| std::vector< QAction * > | myColDispActions |
| Column view actions. | |
| QAction * | myColCustomizeAction |
| QMenu * | myContextMenu |
| Context Menu. | |
| QMenu * | myFederateMenu |
| QMenu * | myFederationMenu |
| QAction * | myDeleteFedAction |
| Federate menu actions. | |
| QAction * | myOpenWebSpyAction |
| QAction * | myLatencyTestAction |
| QAction * | myClearAllDeadFederates |
| QAction * | myClearCurrDefunctFederate |
| QAction * | myDeleteFederationAction |
| QAction * | myEnableNetworkTestingAction |
| std::map< QString, QString > | myFederationNamesToItemNames |
| Map of federation names to the names used in the tree. | |
| std::map< QString, QString > | myItemNamesToFederationNames |
| Map of federation names to the names used in the tree. | |
| std::map< QTreeWidgetItem *, std::pair< MAKRti::DtTime, std::pair< QString, int > > > | myInvalidTreeWidgets |
| Items are added to myInvalidTreeWidgets when their socket breaks. | |
| std::map< QTreeWidgetItem *, std::pair< QString, int > > | myReconnectingFederates |
| Federates that are currently attempting to reconnect. | |
| std::map< QTreeWidgetItem *, std::pair< QString, int > > | myReconnectedFederates |
| Federates that have successfully reconnected. | |
| std::set< std::pair< QString, int > > | myClearedDefunctFederates |
| Defunct federates that have been cleared from the display. | |
| std::set< QTreeWidgetItem * > | myTestDisabledFederations |
| Federations that have testing disabled. | |
| float | myFederateRemovalTime |
| Time after which defunct federates will automatically be removed from the tree. | |
| std::set< QTreeWidgetItem * > | myListOfWebSpyEnabledFederates |
| Federate items for which web spy page can be loaded. | |
| QTreeWidgetItem * | myLoadingIndicationItem |
| Item that indicates federation information is currently being loaded. | |
| bool | myDeletionEnabled |
| Indicates whether or not federate and federation deletion is enabled. | |
| MAKRti::DtClock | myTimer |
| QIcon | myCheckIcon |
| Icons to be used in the federate tree. | |
| QIcon | myNoCheckIcon |
| Icons to be used in the federate tree. | |
| QIcon | myContTestIcon |
| Icons to be used in the federate tree. | |
| QIcon | mySingleTestIcon |
| Icons to be used in the federate tree. | |
| QIcon | myYellowAttention |
| Icons to be used in the federate tree. | |
| QIcon | myRedAttention |
| Icons to be used in the federate tree. | |
| QIcon | myWorldWideWeb |
| Icons to be used in the federate tree. | |
| QIcon | myWorldWideWebDisabled |
| Icons to be used in the federate tree. | |
| QIcon | myTestIcon |
| Icons to be used in the federate tree. | |
Static Protected Attributes | |
| static const int | FederateNameRole = Qt::UserRole |
| static const int | FederateHandleRole = DtFederateTree::FederateNameRole+1 |
| static const int | TestEnableRole = DtFederateTree::FederateHandleRole+1 |
| static const int | theLastColDefaultedOn = WebSpyIndex |
| The number of the last column which is displayed by default the first time the dialog is shown. | |
Private Member Functions | |
| DtFederateTree (DtFederateTree const &) | |
| Copy constructor not implemented -- Copy not allowed! | |
| DtFederateTree & | operator= (DtFederateTree const &) |
| Assignment operator not implemented -- Assignment not allowed! | |
| DtFederateTree::DtFederateTree | ( | QWidget * | parent | ) |
References clearAllDeadFederates(), clearCurrDefunctFederates(), connect(), ConstrainedStateIndex, CurrentTimeIndex, deleteSelectedFed(), destroySelectedFederations(), DtRtiLibPath(), FederateIPIndex, FederateNameIndex, FederateTypeAndHandleIndex, FederationNameIndex, HlaVersionIndex, LbtsIndex, LookAheadIndex, myCheckIcon, myClearAllDeadFederates, myClearCurrDefunctFederate, myColCustomizeAction, myColDispActions, myColViewMenu, myContextMenu, myContTestIcon, myDeleteFedAction, myDeleteFederationAction, myEnableNetworkTestingAction, myFederateMenu, myFederationMenu, myLatencyTestAction, myLoadingIndicationItem, myOpenWebSpyAction, myRedAttention, mySingleTestIcon, myTestIcon, myTimer, myWorldWideWeb, myWorldWideWebDisabled, myYellowAttention, openFedWebSpy(), refreshMenus(), RegulatingStateIndex, showColCustomizeDlg(), showColumns(), showContextMenu(), showLatencyTest(), TestCountIndex, TestStatusIndex, theConstrainedString, theConstrainedToolTip, theCurrentTimeString, theCurrentTimeToolTip, theFederateNameString, theFederateNameToolTip, theFederationFederateString, theFederationFederateToolTip, theHlaVersionString, theHlaVersionToolTip, theIpAddressString, theIpAddressToolTip, theLastColDefaultedOn, theLBTSString, theLBTSToolTip, theLoadingText, theLookaheadString, theLookaheadToolTip, theRegulatingString, theRegulatingToolTip, theTestCountString, theTestCountToolTip, theTestStatusString, theTestStatusToolTip, theWwwspyString, theWwwspyToolTip, updateEnableNetworkTestingForSelectedFederations(), and WebSpyIndex.
| DtFederateTree::~DtFederateTree | ( | ) | [virtual] |
References myLoadingIndicationItem.
| DtFederateTree::DtFederateTree | ( | DtFederateTree const & | ) | [private] |
Copy constructor not implemented -- Copy not allowed!
| void DtFederateTree::allColumns | ( | std::map< QString, std::pair< int, bool > > & | columns | ) | [virtual, slot] |
Get the columns and their position / visible value (cols in emptied and populated).
References myColDispActions.
Referenced by DtFederationsViewDialog::saveGuiState().
| void DtFederateTree::clearAllDeadFederates | ( | ) | [virtual, slot] |
Clears all defunct federates.
References myClearAllDeadFederates, myFederationMenu, myInvalidTreeWidgets, and removeFederate().
Referenced by DtFederateTree().
| void DtFederateTree::clearCurrDefunctFederates | ( | ) | [virtual, slot] |
Clear only the currently selected dead federates.
References FederateHandleRole, FederateTypeAndHandleIndex, FederationNameIndex, myItemNamesToFederationNames, removeFederate(), and true.
Referenced by DtFederateTree().
| QMenu* DtFederateTree::columnViewMenu | ( | ) | [inline] |
Returns a pointer to the menu which allows users to hide/display any columns in the tree.
Referenced by DtFederationsViewDialog::setupMenus().
| void DtFederateTree::deleteSelectedFed | ( | ) | [virtual, slot] |
Emits the fedDeleteRequest signal for the selected federate.
References fedDeleteRequest(), FederateHandleRole, FederateTypeAndHandleIndex, FederationNameIndex, isFederateValid(), and myItemNamesToFederationNames.
Referenced by DtFederateTree().
| void DtFederateTree::destroySelectedFederations | ( | ) | [virtual, slot] |
For each federation selected, resign the federates then emit federationDelete.
References fedDeleteRequest(), FederateHandleRole, FederateTypeAndHandleIndex, federationDeleteRequest(), FederationNameIndex, and myItemNamesToFederationNames.
Referenced by DtFederateTree().
| void DtFederateTree::disableNetworkTestingRequest | ( | const QString & | ) | [signal] |
Referenced by updateEnableNetworkTestingForSelectedFederations().
| void DtFederateTree::displayLoadingIndication | ( | ) | [virtual] |
Displays a message that the current federation information is loading.
References myLoadingIndicationItem, and removeAllFederations().
Referenced by DtFederationsViewDialog::displayLoadingIndication().
| void DtFederateTree::enableDeletion | ( | bool | enable | ) |
Enables or disables federate and federation deletion options.
References myDeletionEnabled, and refreshMenus().
Referenced by DtFederationsViewDialog::enableCommands().
| void DtFederateTree::enableNetworkTestingRequest | ( | const QString & | ) | [signal] |
Referenced by updateEnableNetworkTestingForSelectedFederations().
| void DtFederateTree::fedDeleteRequest | ( | int | , |
| const QString & | |||
| ) | [signal] |
Referenced by deleteSelectedFed(), and destroySelectedFederations().
| QMenu* DtFederateTree::federateMenu | ( | ) | [inline] |
Returns a pointer to the menu which allows users to perform actions related to the currently selected federates.
Referenced by DtFederationsViewDialog::setupMenus().
| void DtFederateTree::federationDeleteRequest | ( | const QString & | fedexName | ) | [signal] |
Referenced by destroySelectedFederations().
| QMenu* DtFederateTree::federationMenu | ( | ) | [inline] |
Returns a pointer to the menu which allows users to perform actions related to the current selected federations.
Referenced by DtFederationsViewDialog::setupMenus().
| float DtFederateTree::getFederateRemovalTime | ( | ) | const |
Get the time for the federate removal.
References myFederateRemovalTime.
Referenced by DtFederationsViewDialog::getFederateRemovalTime().
| QString DtFederateTree::getTreeFederationName | ( | const MAKRti::DtString & | federationName | ) |
Get the federation name the tree uses ( with the handle )
References myFederationNamesToItemNames.
Referenced by DtFederationsViewDialog::removeFederation().
| bool DtFederateTree::hasValidFederates | ( | ) | const [virtual, slot] |
returns whether any federates are valid.
References isFederateValid().
| bool DtFederateTree::isFederateValid | ( | int | federateHandle, |
| const QString & | fedexName | ||
| ) | const |
Is this federate valid?
References FederateHandleRole, FederateTypeAndHandleIndex, and myFederationNamesToItemNames.
Referenced by deleteSelectedFed(), hasValidFederates(), and refreshMenus().
| bool DtFederateTree::isFederateValid | ( | QTreeWidgetItem * | item | ) | const [protected] |
Is the federate represented by this QTreeWidgetItem valid.
References myInvalidTreeWidgets, and myReconnectingFederates.
| void DtFederateTree::openFedWebSpy | ( | ) | [virtual, slot] |
Emits the openFedWebSpyRequest signal for the selected federate.
References FederateHandleRole, FederateTypeAndHandleIndex, FederationNameIndex, myItemNamesToFederationNames, myListOfWebSpyEnabledFederates, and openFedWebSpyRequest().
Referenced by DtFederateTree().
| void DtFederateTree::openFedWebSpyRequest | ( | const QString & | , |
| int | |||
| ) | [signal] |
Referenced by openFedWebSpy().
| DtFederateTree& DtFederateTree::operator= | ( | DtFederateTree const & | ) | [private] |
Assignment operator not implemented -- Assignment not allowed!
| void DtFederateTree::processInvalidList | ( | ) |
Process the list of Invalid federates for automatic removal.
References myClearAllDeadFederates, myFederateRemovalTime, myFederationMenu, myInvalidTreeWidgets, myTimer, and removeFederate().
Referenced by DtFederationsViewDialog::tick().
| void DtFederateTree::refreshMenus | ( | ) | [slot] |
Refresh the currently available menu options.
References isFederateValid(), myClearCurrDefunctFederate, myContextMenu, myDeleteFedAction, myDeleteFederationAction, myDeletionEnabled, myEnableNetworkTestingAction, myFederateMenu, myFederationMenu, myLatencyTestAction, myListOfWebSpyEnabledFederates, myOpenWebSpyAction, myTestDisabledFederations, TestEnableRole, and TestStatusIndex.
Referenced by DtFederateTree(), enableDeletion(), removeAllFederations(), removeFederate(), removeFederation(), showContextMenu(), updateFederate(), and updateFederation().
| void DtFederateTree::removeAllFederateItems | ( | QTreeWidgetItem * | fedexItem | ) | [protected, virtual] |
Removes all of federate items from the given federation item.
References removeFederateItem().
Referenced by removeAllFederations(), and removeFederation().
| void DtFederateTree::removeAllFederations | ( | ) | [virtual] |
Removes all of the federations from the tree.
References myFederationNamesToItemNames, refreshMenus(), removeAllFederateItems(), and removeLoadingIndication().
Referenced by displayLoadingIndication(), and DtFederationsViewDialog::removeAllFederations().
| bool DtFederateTree::removeFederate | ( | int | federateHandle, |
| const QString & | fedexName, | ||
| bool | clearedDefunct = false |
||
| ) | [virtual] |
Removes a federate from an existing federation in the tree.
Returns true if successful. If clearedDefunct flag is true, the federate item will not be removed, but instead be placed in the list of cleared defunct federates.
References FederateHandleRole, FederateTypeAndHandleIndex, myFederationNamesToItemNames, refreshMenus(), and removeFederateItem().
Referenced by clearAllDeadFederates(), clearCurrDefunctFederates(), processInvalidList(), and DtFederationsViewDialog::removeFederate().
| void DtFederateTree::removeFederateItem | ( | QTreeWidgetItem * | fedItem, |
| QTreeWidgetItem * | fedexItem, | ||
| bool | clearedDefunct = false |
||
| ) | [protected, virtual] |
Removes and deletes the given federate item from the given federation item.
The item will be added to the list of cleared defunct federates if the clearedDefunct flag is true.
References FederateHandleRole, FederateTypeAndHandleIndex, FederationNameIndex, myClearedDefunctFederates, myItemNamesToFederationNames, myListOfWebSpyEnabledFederates, myReconnectedFederates, and myReconnectingFederates.
Referenced by removeAllFederateItems(), removeFederate(), and updateFederateItems().
| bool DtFederateTree::removeFederation | ( | const QString & | name | ) | [virtual] |
Removes the federation with the given name from the tree.
Returns true if successful.
References myFederationNamesToItemNames, myItemNamesToFederationNames, refreshMenus(), and removeAllFederateItems().
Referenced by DtFederationsViewDialog::removeFederation().
| void DtFederateTree::removeLoadingIndication | ( | ) | [virtual] |
Removes the loading indication messages.
References myLoadingIndicationItem.
Referenced by removeAllFederations(), DtFederationsViewDialog::removeLoadingIndication(), and updateFederation().
| void DtFederateTree::setAllColumns | ( | const std::map< QString, std::pair< int, bool > > & | columns | ) | [virtual, slot] |
Set the columns that are currently shown.
References myColDispActions, and showColumns().
Referenced by DtFederationsViewDialog::setupFederateTree().
| void DtFederateTree::setFederateRemovalTime | ( | float | newTime | ) |
Change the time after which a federate that fails to reconnect will be removed from the rtiexec federate tree.
References myFederateRemovalTime.
Referenced by DtFederationsViewDialog::updateFederateRemovalTime().
| void DtFederateTree::showColCustomizeDlg | ( | ) | [virtual, slot] |
Displays the column view customize dialog.
References myColDispActions.
Referenced by DtFederateTree().
| void DtFederateTree::showColumns | ( | ) | [virtual, slot] |
Updates which columns are shown or hidden.
References myColDispActions.
Referenced by DtFederateTree(), and setAllColumns().
| void DtFederateTree::showContextMenu | ( | const QPoint & | pos | ) | [virtual, slot] |
Shows the context menu at the given position.
References myContextMenu, and refreshMenus().
Referenced by DtFederateTree().
| void DtFederateTree::showFedLatencyTest | ( | const QString & | , |
| int | |||
| ) | [signal] |
Referenced by showLatencyTest().
| void DtFederateTree::showLatencyTest | ( | ) | [virtual, slot] |
Emits the showFedLatencyTest signal for the selected federate.
References FederateHandleRole, FederateTypeAndHandleIndex, FederationNameIndex, myItemNamesToFederationNames, and showFedLatencyTest().
Referenced by DtFederateTree().
| void DtFederateTree::updateEnableNetworkTestingForSelectedFederations | ( | ) | [virtual, slot] |
For each federation selected, enables or disables testing.
References disableNetworkTestingRequest(), enableNetworkTestingRequest(), FederateHandleRole, FederateTypeAndHandleIndex, FederationNameIndex, myItemNamesToFederationNames, and myTestDisabledFederations.
Referenced by DtFederateTree().
| bool DtFederateTree::updateFederate | ( | const DtAssistantFederateInfo & | federate, |
| const QString & | fedexName | ||
| ) | [virtual] |
Updates or adds a federate to an existing federation in the tree.
Returns true if a new federation was added.
References ConstrainedStateIndex, CurrentTimeIndex, DtAssistantFederateInfo::federateHandle(), FederateHandleRole, FederateIPIndex, FederateNameIndex, FederateTypeAndHandleIndex, HlaVersionIndex, LbtsIndex, LookAheadIndex, myFederationNamesToItemNames, refreshMenus(), RegulatingStateIndex, TestCountIndex, TestStatusIndex, theConstrainedDisabledToolTip, theCurrentTimeToolTip, theFederateNameToolTip, theFederateTypeToolTip, theHlaVersionToolTip, theIpAddressToolTip, theLBTSToolTip, theLookaheadToolTip, theNoTestToolTip, theRegulatingDisabledToolTip, theTestCountToolTip, and updateFederateItem().
Referenced by DtFederationsViewDialog::updateFederate().
| void DtFederateTree::updateFederateItem | ( | const DtAssistantFederateInfo & | federate, |
| const QString & | fedexName, | ||
| QTreeWidgetItem * | fedItem | ||
| ) | [protected, virtual] |
Updates the federate item with the given information.
References ConstrainedStateIndex, DtAssistantFederateInfo::continuousTest(), CurrentTimeIndex, DtHla13, DtHla13DLC, DtHla1516, DtHlaEvolved, DtAssistantFederateInfo::federateHandle(), FederateHandleRole, DtAssistantFederateInfo::federateHostAddr(), DtAssistantFederateInfo::federateHostName(), FederateIPIndex, DtAssistantFederateInfo::federateName(), FederateNameIndex, FederateNameRole, DtAssistantFederateInfo::federateType(), FederateTypeAndHandleIndex, DtAssistantFederateInfo::hlaVersion(), HlaVersionIndex, DtAssistantFederateInfo::isConstrained(), DtAssistantFederateInfo::isDisconnected(), DtAssistantFederateInfo::isReconnecting(), DtAssistantFederateInfo::isRegulating(), LbtsIndex, DtAssistantFederateInfo::lbtsString(), LookAheadIndex, DtAssistantFederateInfo::lookAheadString(), myCheckIcon, myClearAllDeadFederates, myContTestIcon, myFederationMenu, myInvalidTreeWidgets, myListOfWebSpyEnabledFederates, myReconnectedFederates, myReconnectingFederates, myRedAttention, mySingleTestIcon, myTimer, myWorldWideWeb, myWorldWideWebDisabled, myYellowAttention, DtAssistantFederateInfo::numInitiatedTests(), DtAssistantFederateInfo::numTestReports(), RegulatingStateIndex, TestCountIndex, DtAssistantFederateInfo::testEnabled(), TestEnableRole, DtAssistantFederateInfo::testInProgress(), TestStatusIndex, theConstrainedDisabledToolTip, theConstrainedEnabledToolTip, theContinuousTestToolTip, theNoTestToolTip, theRegulatingDisabledToolTip, theRegulatingEnabledToolTip, theSingleTestToolTip, theWwwspyDisabledToolTip, theWwwspyEnabledToolTip, DtAssistantFederateInfo::timeString(), DtAssistantFederateInfo::webSpyHttpPort(), and WebSpyIndex.
Referenced by updateFederate(), and updateFederateItems().
| void DtFederateTree::updateFederateItems | ( | const DtFederateInfoByHandleMap & | federates, |
| QTreeWidgetItem * | fedexItem | ||
| ) | [protected, virtual] |
Updates the federate items for the given federation item.
References ConstrainedStateIndex, CurrentTimeIndex, FederateHandleRole, FederateIPIndex, FederateNameIndex, FederateTypeAndHandleIndex, FederationNameIndex, HlaVersionIndex, LbtsIndex, LookAheadIndex, myClearedDefunctFederates, myItemNamesToFederationNames, RegulatingStateIndex, removeFederateItem(), TestCountIndex, TestStatusIndex, theConstrainedDisabledToolTip, theCurrentTimeToolTip, theFederateNameToolTip, theFederateTypeToolTip, theHlaVersionToolTip, theIpAddressToolTip, theLBTSToolTip, theLookaheadToolTip, theNoTestToolTip, theRegulatingDisabledToolTip, theTestCountToolTip, and updateFederateItem().
Referenced by updateFederation().
| bool DtFederateTree::updateFederation | ( | const DtAssistantFederationInfo & | federation | ) | [virtual] |
Updates or adds a federation to the tree.
Returns true if a new federation was added.
References DtAssistantFederationInfo::federates(), DtAssistantFederationInfo::federationHandle(), DtAssistantFederationInfo::federationName(), FederationNameIndex, myFederationNamesToItemNames, myItemNamesToFederationNames, myTestDisabledFederations, refreshMenus(), removeLoadingIndication(), DtAssistantFederationInfo::testingEnabled(), theFederationNameToolTip, and updateFederateItems().
Referenced by DtFederationsViewDialog::updateFederation().
const int DtFederateTree::FederateHandleRole = DtFederateTree::FederateNameRole+1 [static, protected] |
Referenced by clearCurrDefunctFederates(), deleteSelectedFed(), destroySelectedFederations(), isFederateValid(), openFedWebSpy(), removeFederate(), removeFederateItem(), showLatencyTest(), updateEnableNetworkTestingForSelectedFederations(), updateFederate(), updateFederateItem(), and updateFederateItems().
const int DtFederateTree::FederateNameRole = Qt::UserRole [static, protected] |
Referenced by updateFederateItem().
QIcon DtFederateTree::myCheckIcon [protected] |
Icons to be used in the federate tree.
Referenced by DtFederateTree(), and updateFederateItem().
QAction* DtFederateTree::myClearAllDeadFederates [protected] |
Referenced by clearAllDeadFederates(), DtFederateTree(), processInvalidList(), and updateFederateItem().
QAction* DtFederateTree::myClearCurrDefunctFederate [protected] |
Referenced by DtFederateTree(), and refreshMenus().
std::set< std::pair<QString, int > > DtFederateTree::myClearedDefunctFederates [protected] |
Defunct federates that have been cleared from the display.
Referenced by removeFederateItem(), and updateFederateItems().
QAction* DtFederateTree::myColCustomizeAction [protected] |
Referenced by DtFederateTree().
std::vector< QAction* > DtFederateTree::myColDispActions [protected] |
Column view actions.
Referenced by allColumns(), DtFederateTree(), setAllColumns(), showColCustomizeDlg(), and showColumns().
QMenu* DtFederateTree::myColViewMenu [protected] |
Column view menu.
Referenced by DtFederateTree().
QMenu* DtFederateTree::myContextMenu [protected] |
Context Menu.
Referenced by DtFederateTree(), refreshMenus(), and showContextMenu().
QIcon DtFederateTree::myContTestIcon [protected] |
Icons to be used in the federate tree.
Referenced by DtFederateTree(), and updateFederateItem().
QAction* DtFederateTree::myDeleteFedAction [protected] |
Federate menu actions.
Referenced by DtFederateTree(), and refreshMenus().
QAction* DtFederateTree::myDeleteFederationAction [protected] |
Referenced by DtFederateTree(), and refreshMenus().
bool DtFederateTree::myDeletionEnabled [protected] |
Indicates whether or not federate and federation deletion is enabled.
Referenced by enableDeletion(), and refreshMenus().
QAction* DtFederateTree::myEnableNetworkTestingAction [protected] |
Referenced by DtFederateTree(), and refreshMenus().
QMenu* DtFederateTree::myFederateMenu [protected] |
Referenced by DtFederateTree(), and refreshMenus().
float DtFederateTree::myFederateRemovalTime [protected] |
Time after which defunct federates will automatically be removed from the tree.
Referenced by getFederateRemovalTime(), processInvalidList(), and setFederateRemovalTime().
QMenu* DtFederateTree::myFederationMenu [protected] |
Referenced by clearAllDeadFederates(), DtFederateTree(), processInvalidList(), refreshMenus(), and updateFederateItem().
std::map<QString, QString> DtFederateTree::myFederationNamesToItemNames [protected] |
Map of federation names to the names used in the tree.
Referenced by getTreeFederationName(), isFederateValid(), removeAllFederations(), removeFederate(), removeFederation(), updateFederate(), and updateFederation().
std::map<QTreeWidgetItem*, std::pair<MAKRti::DtTime, std::pair<QString, int> > > DtFederateTree::myInvalidTreeWidgets [protected] |
Items are added to myInvalidTreeWidgets when their socket breaks.
These federates are removed if: 1) They fail to reconnect and are manually removed 2) They fail to reconnect and are automatically removed by timer 3) The federation is destroyed
Referenced by clearAllDeadFederates(), isFederateValid(), processInvalidList(), and updateFederateItem().
std::map<QString, QString> DtFederateTree::myItemNamesToFederationNames [protected] |
Map of federation names to the names used in the tree.
Referenced by clearCurrDefunctFederates(), deleteSelectedFed(), destroySelectedFederations(), openFedWebSpy(), removeFederateItem(), removeFederation(), showLatencyTest(), updateEnableNetworkTestingForSelectedFederations(), updateFederateItems(), and updateFederation().
QAction* DtFederateTree::myLatencyTestAction [protected] |
Referenced by DtFederateTree(), and refreshMenus().
std::set<QTreeWidgetItem*> DtFederateTree::myListOfWebSpyEnabledFederates [protected] |
Federate items for which web spy page can be loaded.
Referenced by openFedWebSpy(), refreshMenus(), removeFederateItem(), and updateFederateItem().
QTreeWidgetItem* DtFederateTree::myLoadingIndicationItem [protected] |
Item that indicates federation information is currently being loaded.
Referenced by displayLoadingIndication(), DtFederateTree(), removeLoadingIndication(), and ~DtFederateTree().
QIcon DtFederateTree::myNoCheckIcon [protected] |
Icons to be used in the federate tree.
QAction* DtFederateTree::myOpenWebSpyAction [protected] |
Referenced by DtFederateTree(), and refreshMenus().
std::map<QTreeWidgetItem*, std::pair<QString, int> > DtFederateTree::myReconnectedFederates [protected] |
Federates that have successfully reconnected.
Referenced by removeFederateItem(), and updateFederateItem().
std::map<QTreeWidgetItem*, std::pair<QString, int> > DtFederateTree::myReconnectingFederates [protected] |
Federates that are currently attempting to reconnect.
Referenced by isFederateValid(), removeFederateItem(), and updateFederateItem().
QIcon DtFederateTree::myRedAttention [protected] |
Icons to be used in the federate tree.
Referenced by DtFederateTree(), and updateFederateItem().
QIcon DtFederateTree::mySingleTestIcon [protected] |
Icons to be used in the federate tree.
Referenced by DtFederateTree(), and updateFederateItem().
std::set<QTreeWidgetItem* > DtFederateTree::myTestDisabledFederations [protected] |
Federations that have testing disabled.
Referenced by refreshMenus(), updateEnableNetworkTestingForSelectedFederations(), and updateFederation().
QIcon DtFederateTree::myTestIcon [protected] |
Icons to be used in the federate tree.
Referenced by DtFederateTree().
MAKRti::DtClock DtFederateTree::myTimer [protected] |
Referenced by DtFederateTree(), processInvalidList(), and updateFederateItem().
QIcon DtFederateTree::myWorldWideWeb [protected] |
Icons to be used in the federate tree.
Referenced by DtFederateTree(), and updateFederateItem().
QIcon DtFederateTree::myWorldWideWebDisabled [protected] |
Icons to be used in the federate tree.
Referenced by DtFederateTree(), and updateFederateItem().
QIcon DtFederateTree::myYellowAttention [protected] |
Icons to be used in the federate tree.
Referenced by DtFederateTree(), and updateFederateItem().
const int DtFederateTree::TestEnableRole = DtFederateTree::FederateHandleRole+1 [static, protected] |
Referenced by refreshMenus(), and updateFederateItem().
const QString DtFederateTree::theConstrainedDisabledToolTip [static] |
tr(
"Federate is not time constrained" )
Tool tip strings.
Referenced by updateFederate(), updateFederateItem(), and updateFederateItems().
const QString DtFederateTree::theConstrainedEnabledToolTip [static] |
tr(
"Federate is time constrained" )
Tool tip strings.
Referenced by updateFederateItem().
const QString DtFederateTree::theConstrainedString = tr("Constrained") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theConstrainedToolTip [static] |
tr(
"Is the federate time constrained?" )
Tool tip strings.
Referenced by DtFederateTree().
const QString DtFederateTree::theContinuousTestToolTip [static] |
tr(
"Federate is running a continuous network test" )
Tool tip strings.
Referenced by updateFederateItem().
const QString DtFederateTree::theCurrentTimeString = tr("Current Time") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theCurrentTimeToolTip [static] |
tr(
"Federate's current view of simulation time" )
Tool tip strings.
Referenced by DtFederateTree(), updateFederate(), and updateFederateItems().
const QString DtFederateTree::theFederateNameString = tr("Federate Name") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theFederateNameToolTip [static] |
tr(
"Federate name - Only HLA Evolved federates may specify.")
Tool tip strings.
Referenced by DtFederateTree(), updateFederate(), and updateFederateItems().
const QString DtFederateTree::theFederateTypeToolTip [static] |
tr(
"Federate type and handle" )
Tool tip strings.
Referenced by updateFederate(), and updateFederateItems().
const QString DtFederateTree::theFederationFederateString = tr("Federation/Federate") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theFederationFederateToolTip [static] |
tr(
"Federation name or Federate Type and handle" )
Tool tip strings.
Referenced by DtFederateTree().
const QString DtFederateTree::theFederationNameToolTip [static] |
tr(
"Federation name and handle" )
Tool tip strings.
Referenced by updateFederation().
const QString DtFederateTree::theHlaVersionString = tr("HLA Version") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theHlaVersionToolTip [static] |
tr(
"HLA version used by the federate")
Tool tip strings.
Referenced by DtFederateTree(), updateFederate(), and updateFederateItems().
const QString DtFederateTree::theIpAddressString = tr("Hostname (IP Address)") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theIpAddressToolTip [static] |
tr(
"Federate IP Address" )
Tool tip strings.
Referenced by DtFederateTree(), updateFederate(), and updateFederateItems().
const int DtFederateTree::theLastColDefaultedOn = WebSpyIndex [static, protected] |
The number of the last column which is displayed by default the first time the dialog is shown.
Referenced by DtFederateTree().
const QString DtFederateTree::theLBTSString = tr("LBTS") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theLBTSToolTip [static] |
tr(
"Federate's Lower Bound Time Stamp" )
Tool tip strings.
Referenced by DtFederateTree(), updateFederate(), and updateFederateItems().
const QString DtFederateTree::theLoadingText = tr("Loading...") [static] |
The message that indicates information is being loaded.
Referenced by DtFederateTree().
const QString DtFederateTree::theLookaheadString = tr("Lookahead") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theLookaheadToolTip [static] |
tr(
"Federate's lookahead setting" )
Tool tip strings.
Referenced by DtFederateTree(), updateFederate(), and updateFederateItems().
const QString DtFederateTree::theNoTestToolTip [static] |
tr(
"Federate is not running a network test" )
Tool tip strings.
Referenced by updateFederate(), updateFederateItem(), and updateFederateItems().
const QString DtFederateTree::theRegulatingDisabledToolTip [static] |
tr(
"Federate is not time regulating" )
Tool tip strings.
Referenced by updateFederate(), updateFederateItem(), and updateFederateItems().
const QString DtFederateTree::theRegulatingEnabledToolTip [static] |
tr(
"Federate is time regulating" )
Tool tip strings.
Referenced by updateFederateItem().
const QString DtFederateTree::theRegulatingString = tr("Regulating") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theRegulatingToolTip [static] |
tr(
"Is the federate time regulating?" )
Tool tip strings.
Referenced by DtFederateTree().
const QString DtFederateTree::theSingleTestToolTip [static] |
tr(
"Federate is running a single network test" )
Tool tip strings.
Referenced by updateFederateItem().
const QString DtFederateTree::theTestCapableDisabledToolTip [static] |
tr(
"Federate is not capable of running network tests" )
Tool tip strings.
const QString DtFederateTree::theTestCapableEnabledToolTip [static] |
tr(
"Federate is capable of running network tests" )
Tool tip strings.
const QString DtFederateTree::theTestCapableString = tr("Test Capable") [static] |
Column header strings.
const QString DtFederateTree::theTestCapableToolTip [static] |
tr(
"Is this federate capable of running network tests?" )
Tool tip strings.
const QString DtFederateTree::theTestCountString = tr("Test Count") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theTestCountToolTip [static] |
tr( "Counts of number of tests this federate has initiated\n" "and the number of test reports which have been generated." )
Tool tip strings.
Referenced by DtFederateTree(), updateFederate(), and updateFederateItems().
const QString DtFederateTree::theTestStatusString = tr("Testing") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theTestStatusToolTip [static] |
tr(
"Is this federate currently running a network test?" )
Tool tip strings.
Referenced by DtFederateTree().
const QString DtFederateTree::theWwwspyDisabledToolTip [static] |
tr(
"RTIspy web service is disabled for this federate" )
Tool tip strings.
Referenced by updateFederateItem().
const QString DtFederateTree::theWwwspyEnabledToolTip [static] |
tr(
"RTIspy web service is enabled for this federate" )
Tool tip strings.
Referenced by updateFederateItem().
const QString DtFederateTree::theWwwspyString = tr("RTIspy") [static] |
Column header strings.
Referenced by DtFederationsViewDialog::convertToConfigStrings(), DtFederationsViewDialog::convertToFederateTreeStrings(), and DtFederateTree().
const QString DtFederateTree::theWwwspyToolTip [static] |
tr(
"Is the RTIspy web service enabled for this federate?" )
Tool tip strings.
Referenced by DtFederateTree().