![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Inheritance diagram for DtNCVTree:
Collaboration diagram for DtNCVTree:Public Types | |
| enum | DtNCVTreeCol { FederateProcessIndex = 0, FederateIPIndex, FederateHandleIndex, FederateHostNameIndex, FederateQueueStatusIndex, FederateNameIndex, FederateTypeIndex, FederateHlaVersionIndex, FederatePIDIndex, FederateCommandArgsIndex, NUM_NCV_TREE_COLUMNS } |
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 | refreshMenus () |
| Refresh the currently available menu options. | |
| virtual void | showContextMenu (const QPoint &) |
| Shows the context menu at the given position. | |
| virtual void | shutdownRtiexec () |
| Processes a command to shutdown the current rtiexec. | |
| virtual void | shutdownRtiForwarder () |
| Processes a command to shutdown the current RTI Forwarder. | |
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) |
| void | shutdownCurrentRtiexec () |
| Emitted when the currently viewed rtiexec should be shutdown. | |
| void | shutdownCurrentRtiForwarder () |
| Emitted when the currently viewed RTI Forwarder should be shutdown. | |
Public Member Functions | |
| DtNCVTree (QWidget *parent) | |
| virtual | ~DtNCVTree () |
| virtual void | clearConnectionTree () |
| Clear the tree. | |
| virtual bool | updateInformation (const DtAssistantForwarderInfo &data) |
| Updates the forwarder information displayed in the tree. | |
| virtual QMenu * | columnViewMenu () |
| Returns a pointer to the menu which allows users to hide/display any columns in the tree. | |
| virtual std::vector < DtNCVTreeInfo > | getNCVTreeInfo () |
| vector of tree information | |
| virtual int | getNumberOfColumns () |
| number of tree columns | |
| virtual void | setTreeInfo (std::vector< DtNCVTreeInfo > treeInfo) |
| set the tree information | |
| virtual void | refreshCommandsEnabled () |
| refresh the commands | |
| virtual void | enableRtiExecCommand (bool enable) |
| enable exec command | |
| virtual void | enableRtiForwarderCommand (bool enable) |
| enable forwarder command | |
| virtual void | displayLoadingIndication () |
| display the loading indications | |
Static Public Attributes | |
| static const QString | theFederateProcessString = tr("Process") |
| Column header strings. | |
| static const QString | theFederateIPString = tr("IP") |
| Column header strings. | |
| static const QString | theFederateHandleString = tr("Federate Handle") |
| Column header strings. | |
| static const QString | theFederateHostNameString = tr("Hostname") |
| Column header strings. | |
| static const QString | theFederateQueueStatusString = tr("Queue Status") |
| Column header strings. | |
| static const QString | theFederateNameString = tr("Federate Name") |
| Column header strings. | |
| static const QString | theFederateTypeString = tr("Type") |
| Column header strings. | |
| static const QString | theFederateHlaVersionString = tr("HLA Version") |
| Column header strings. | |
| static const QString | theFederatePIDString = tr("PID") |
| Column header strings. | |
| static const QString | theFederateCommandArgsString = tr("Command Line Arguments") |
| Column header strings. | |
| static const QString | theLoadingText = tr("Loading...") |
| Column header strings. | |
| static const QString | theFederateProcessToolTip = tr("System Process Name") |
| Tool tip strings. | |
| static const QString | theFederateIPToolTip = tr("Federate IP Address") |
| Tool tip strings. | |
| static const QString | theFederateHandleToolTip = tr("Federate Handle") |
| Tool tip strings. | |
| static const QString | theFederateHostNameToolTip = tr("Hostname") |
| Tool tip strings. | |
| static const QString | theFederateQueueStatusToolTip = tr("Message Queue Status") |
| Tool tip strings. | |
| static const QString | theFederateNameToolTip = tr("Federate Name") |
| Tool tip strings. | |
| static const QString | theFederateTypeToolTip = tr("Federate Type") |
| Tool tip strings. | |
| static const QString | theFederateHlaVersionToolTip = tr("HLA Version") |
| Tool tip strings. | |
| static const QString | theFederatePIDToolTip = tr("System Process ID") |
| Tool tip strings. | |
| static const QString | theFederateCommandArgsToolTip = tr("Command Line Arguments") |
| Tool tip strings. | |
Protected Attributes | |
| QTreeWidgetItem * | myExecItem |
| QTreeWidgetItem * | myCurrentViewedItem |
| bool | myRtiExecInCurrentViewedConn |
| QIcon | myDroppedIcon |
| The dropped Icon. | |
| QMenu * | myColViewMenu |
| Column view menu. | |
| std::vector< QAction * > | myColDispActions |
| Column view actions. | |
| QAction * | myColCustomizeAction |
| QAction * | myShutdownAction |
| QAction * | myShutdownForwarderAction |
| QMenu * | myContextMenu |
| Context Menu. | |
| QMenu * | myFederateMenu |
| QMenu * | myFederationMenu |
| 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 |
| bool | myExecCommandEnabled |
| Checks if commands are enabled. | |
| bool | myForwarderCommandEnabled |
Static Protected Attributes | |
| static const int | FederateNameRole = Qt::UserRole |
| static const int | FederateHandleRole = DtNCVTree::FederateNameRole+1 |
| static const int | TestEnableRole = DtNCVTree::FederateHandleRole+1 |
| static const int | theLastColDefaultedOn = FederateQueueStatusIndex |
| The number of the last column which is displayed by default the first time the dialog is shown. | |
Private Member Functions | |
| DtNCVTree (DtNCVTree const &) | |
| Copy constructor not implemented -- Copy not allowed! | |
| DtNCVTree & | operator= (DtNCVTree const &) |
| Assignment operator not implemented -- Assignment not allowed! | |
| DtNCVTree::DtNCVTree | ( | QWidget * | parent | ) |
References connect(), DtRtiLibPath(), FederateCommandArgsIndex, FederateHandleIndex, FederateHlaVersionIndex, FederateHostNameIndex, FederateIPIndex, FederateNameIndex, FederatePIDIndex, FederateProcessIndex, FederateQueueStatusIndex, FederateTypeIndex, myColCustomizeAction, myColDispActions, myColViewMenu, myContextMenu, myDroppedIcon, myLoadingIndicationItem, myShutdownAction, myShutdownForwarderAction, myTimer, refreshMenus(), showColCustomizeDlg(), showColumns(), showContextMenu(), shutdownRtiexec(), shutdownRtiForwarder(), theFederateCommandArgsString, theFederateCommandArgsToolTip, theFederateHandleString, theFederateHandleToolTip, theFederateHlaVersionString, theFederateHlaVersionToolTip, theFederateHostNameString, theFederateHostNameToolTip, theFederateIPString, theFederateIPToolTip, theFederateNameString, theFederateNameToolTip, theFederatePIDString, theFederatePIDToolTip, theFederateProcessString, theFederateProcessToolTip, theFederateQueueStatusString, theFederateQueueStatusToolTip, theFederateTypeString, theFederateTypeToolTip, theLastColDefaultedOn, and theLoadingText.
| DtNCVTree::~DtNCVTree | ( | ) | [virtual] |
References myLoadingIndicationItem.
| DtNCVTree::DtNCVTree | ( | DtNCVTree const & | ) | [private] |
Copy constructor not implemented -- Copy not allowed!
| void DtNCVTree::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.
| void DtNCVTree::clearConnectionTree | ( | ) | [virtual] |
Clear the tree.
References myLoadingIndicationItem.
Referenced by DtRtiNetworkComponentViewDialog::clearConnectionTree(), DtRtiNetworkComponentViewDialog::removeLoadingIndication(), and updateInformation().
| virtual QMenu* DtNCVTree::columnViewMenu | ( | ) | [inline, virtual] |
Returns a pointer to the menu which allows users to hide/display any columns in the tree.
Referenced by DtRtiNetworkComponentViewDialog::setupMenus().
| void DtNCVTree::disableNetworkTestingRequest | ( | const QString & | ) | [signal] |
| void DtNCVTree::displayLoadingIndication | ( | ) | [virtual] |
display the loading indications
References myLoadingIndicationItem.
Referenced by DtRtiNetworkComponentViewDialog::displayLoadingIndication().
| void DtNCVTree::enableNetworkTestingRequest | ( | const QString & | ) | [signal] |
| void DtNCVTree::enableRtiExecCommand | ( | bool | enable | ) | [virtual] |
enable exec command
References myExecCommandEnabled.
Referenced by DtRtiNetworkComponentViewDialog::enableCommands(), and DtRtiNetworkComponentViewDialog::enableRtiExecShutdownCommand().
| void DtNCVTree::enableRtiForwarderCommand | ( | bool | enable | ) | [virtual] |
enable forwarder command
References myForwarderCommandEnabled.
Referenced by DtRtiNetworkComponentViewDialog::enableCommands(), and DtRtiNetworkComponentViewDialog::enableRtiForwarderShutdownCommand().
| void DtNCVTree::fedDeleteRequest | ( | int | , |
| const QString & | |||
| ) | [signal] |
| void DtNCVTree::federationDeleteRequest | ( | const QString & | fedexName | ) | [signal] |
| std::vector< DtNCVTreeInfo > DtNCVTree::getNCVTreeInfo | ( | ) | [virtual] |
vector of tree information
References DtNCVTreeInfo::columnEnabled, DtNCVTreeInfo::columnIndex, and myColDispActions.
Referenced by DtRtiNetworkComponentViewDialog::saveGuiState().
| int DtNCVTree::getNumberOfColumns | ( | ) | [virtual] |
number of tree columns
References NUM_NCV_TREE_COLUMNS.
Referenced by DtRtiNetworkComponentViewDialog::setupUI().
| void DtNCVTree::openFedWebSpyRequest | ( | const QString & | , |
| int | |||
| ) | [signal] |
Assignment operator not implemented -- Assignment not allowed!
| void DtNCVTree::refreshCommandsEnabled | ( | ) | [virtual] |
refresh the commands
References myContextMenu, myCurrentViewedItem, myExecCommandEnabled, myExecItem, myForwarderCommandEnabled, myRtiExecInCurrentViewedConn, myShutdownAction, and myShutdownForwarderAction.
Referenced by DtRtiNetworkComponentViewDialog::DtRtiNetworkComponentViewDialog(), DtRtiNetworkComponentViewDialog::enableCommands(), DtRtiNetworkComponentViewDialog::enableRtiExecShutdownCommand(), DtRtiNetworkComponentViewDialog::enableRtiForwarderShutdownCommand(), DtRtiNetworkComponentViewDialog::processRtiForwarderSelection(), and DtRtiNetworkComponentViewDialog::setData().
| void DtNCVTree::refreshMenus | ( | ) | [virtual, slot] |
Refresh the currently available menu options.
Referenced by DtNCVTree(), and showContextMenu().
| void DtNCVTree::setAllColumns | ( | const std::map< QString, std::pair< int, bool > > & | columns | ) | [virtual, slot] |
Set the columns that are currently shown.
References myColDispActions, and showColumns().
| void DtNCVTree::setTreeInfo | ( | std::vector< DtNCVTreeInfo > | treeInfo | ) | [virtual] |
set the tree information
References myColDispActions, and showColumns().
Referenced by DtRtiNetworkComponentViewDialog::setupUI().
| void DtNCVTree::showColCustomizeDlg | ( | ) | [virtual, slot] |
| void DtNCVTree::showColumns | ( | ) | [virtual, slot] |
Updates which columns are shown or hidden.
References myColDispActions.
Referenced by DtNCVTree(), setAllColumns(), and setTreeInfo().
| void DtNCVTree::showContextMenu | ( | const QPoint & | pos | ) | [virtual, slot] |
Shows the context menu at the given position.
References myContextMenu, and refreshMenus().
Referenced by DtNCVTree().
| void DtNCVTree::showFedLatencyTest | ( | const QString & | , |
| int | |||
| ) | [signal] |
| void DtNCVTree::shutdownCurrentRtiexec | ( | ) | [signal] |
Emitted when the currently viewed rtiexec should be shutdown.
Referenced by shutdownRtiexec().
| void DtNCVTree::shutdownCurrentRtiForwarder | ( | ) | [signal] |
Emitted when the currently viewed RTI Forwarder should be shutdown.
Referenced by shutdownRtiForwarder().
| void DtNCVTree::shutdownRtiexec | ( | ) | [virtual, slot] |
Processes a command to shutdown the current rtiexec.
References shutdownCurrentRtiexec().
Referenced by DtNCVTree().
| void DtNCVTree::shutdownRtiForwarder | ( | ) | [virtual, slot] |
Processes a command to shutdown the current RTI Forwarder.
References shutdownCurrentRtiForwarder().
Referenced by DtNCVTree().
| bool DtNCVTree::updateInformation | ( | const DtAssistantForwarderInfo & | data | ) | [virtual] |
Updates the forwarder information displayed in the tree.
References DtAssistantNetworkCompInfo::address(), DtAssistantForwarderInfo::address(), clearConnectionTree(), DtHla13, DtHla13DLC, DtHla1516, DtHlaEvolved, FederateCommandArgsIndex, FederateHandleIndex, FederateHlaVersionIndex, FederateHostNameIndex, FederateIPIndex, FederateNameIndex, FederatePIDIndex, FederateProcessIndex, FederateQueueStatusIndex, DtAssistantForwarderInfo::federates(), FederateTypeIndex, DtAssistantNetworkCompInfo::hostName(), DtAssistantForwarderInfo::hostName(), DtAssistantNetworkCompInfo::isValid(), myCurrentViewedItem, myDroppedIcon, myExecItem, myRtiExecInCurrentViewedConn, DtAssistantForwarderInfo::peerForwarders(), DtAssistantForwarderInfo::rtiexecInfo(), and DtAssistantForwarderInfo::unclassifiedConns().
Referenced by DtRtiNetworkComponentViewDialog::setData().
const int DtNCVTree::FederateHandleRole = DtNCVTree::FederateNameRole+1 [static, protected] |
const int DtNCVTree::FederateNameRole = Qt::UserRole [static, protected] |
std::set< std::pair<QString, int > > DtNCVTree::myClearedDefunctFederates [protected] |
Defunct federates that have been cleared from the display.
QAction* DtNCVTree::myColCustomizeAction [protected] |
Referenced by DtNCVTree().
std::vector< QAction* > DtNCVTree::myColDispActions [protected] |
Column view actions.
Referenced by allColumns(), DtNCVTree(), getNCVTreeInfo(), setAllColumns(), setTreeInfo(), showColCustomizeDlg(), and showColumns().
QMenu* DtNCVTree::myColViewMenu [protected] |
Column view menu.
Referenced by DtNCVTree().
QMenu* DtNCVTree::myContextMenu [protected] |
Context Menu.
Referenced by DtNCVTree(), refreshCommandsEnabled(), and showContextMenu().
QTreeWidgetItem* DtNCVTree::myCurrentViewedItem [protected] |
Referenced by refreshCommandsEnabled(), and updateInformation().
bool DtNCVTree::myDeletionEnabled [protected] |
Indicates whether or not federate and federation deletion is enabled.
QIcon DtNCVTree::myDroppedIcon [protected] |
The dropped Icon.
Referenced by DtNCVTree(), and updateInformation().
bool DtNCVTree::myExecCommandEnabled [protected] |
Checks if commands are enabled.
Referenced by enableRtiExecCommand(), and refreshCommandsEnabled().
QTreeWidgetItem* DtNCVTree::myExecItem [protected] |
Referenced by refreshCommandsEnabled(), and updateInformation().
QMenu* DtNCVTree::myFederateMenu [protected] |
float DtNCVTree::myFederateRemovalTime [protected] |
Time after which defunct federates will automatically be removed from the tree.
QMenu* DtNCVTree::myFederationMenu [protected] |
bool DtNCVTree::myForwarderCommandEnabled [protected] |
Referenced by enableRtiForwarderCommand(), and refreshCommandsEnabled().
std::map<QTreeWidgetItem*, std::pair<MAKRti::DtTime, std::pair<QString, int> > > DtNCVTree::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
std::set<QTreeWidgetItem*> DtNCVTree::myListOfWebSpyEnabledFederates [protected] |
Federate items for which web spy page can be loaded.
QTreeWidgetItem* DtNCVTree::myLoadingIndicationItem [protected] |
Item that indicates federation information is currently being loaded.
Referenced by clearConnectionTree(), displayLoadingIndication(), DtNCVTree(), and ~DtNCVTree().
std::map<QTreeWidgetItem*, std::pair<QString, int> > DtNCVTree::myReconnectedFederates [protected] |
Federates that have successfully reconnected.
std::map<QTreeWidgetItem*, std::pair<QString, int> > DtNCVTree::myReconnectingFederates [protected] |
Federates that are currently attempting to reconnect.
bool DtNCVTree::myRtiExecInCurrentViewedConn [protected] |
Referenced by refreshCommandsEnabled(), and updateInformation().
QAction* DtNCVTree::myShutdownAction [protected] |
Referenced by DtNCVTree(), and refreshCommandsEnabled().
QAction* DtNCVTree::myShutdownForwarderAction [protected] |
Referenced by DtNCVTree(), and refreshCommandsEnabled().
std::set<QTreeWidgetItem* > DtNCVTree::myTestDisabledFederations [protected] |
Federations that have testing disabled.
MAKRti::DtClock DtNCVTree::myTimer [protected] |
Referenced by DtNCVTree().
const int DtNCVTree::TestEnableRole = DtNCVTree::FederateHandleRole+1 [static, protected] |
const QString DtNCVTree::theFederateCommandArgsString = tr("Command Line Arguments") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateCommandArgsToolTip = tr("Command Line Arguments") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateHandleString = tr("Federate Handle") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateHandleToolTip = tr("Federate Handle") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateHlaVersionString = tr("HLA Version") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateHlaVersionToolTip = tr("HLA Version") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateHostNameString = tr("Hostname") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateHostNameToolTip = tr("Hostname") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateIPString = tr("IP") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateIPToolTip = tr("Federate IP Address") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateNameString = tr("Federate Name") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateNameToolTip = tr("Federate Name") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederatePIDString = tr("PID") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederatePIDToolTip = tr("System Process ID") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateProcessString = tr("Process") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateProcessToolTip = tr("System Process Name") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateQueueStatusString = tr("Queue Status") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateQueueStatusToolTip = tr("Message Queue Status") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateTypeString = tr("Type") [static] |
Column header strings.
Referenced by DtNCVTree().
const QString DtNCVTree::theFederateTypeToolTip = tr("Federate Type") [static] |
Tool tip strings.
Referenced by DtNCVTree().
const int DtNCVTree::theLastColDefaultedOn = FederateQueueStatusIndex [static, protected] |
The number of the last column which is displayed by default the first time the dialog is shown.
Referenced by DtNCVTree().
const QString DtNCVTree::theLoadingText = tr("Loading...") [static] |
Column header strings.
Referenced by DtNCVTree().