MAK RTIspy API Documentation for HLA 1.3
Public Types | Public Slots | Signals | Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtNCVTree Class Reference
+ Inheritance diagram for DtNCVTree:
+ Collaboration diagram for DtNCVTree:

List of all members.

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 QMenucolumnViewMenu ()
 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.
QMenumyColViewMenu
 Column view menu.
std::vector< QAction * > myColDispActions
 Column view actions.
QAction * myColCustomizeAction
QAction * myShutdownAction
QAction * myShutdownForwarderAction
QMenumyContextMenu
 Context Menu.
QMenumyFederateMenu
QMenumyFederationMenu
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!
DtNCVTreeoperator= (DtNCVTree const &)
 Assignment operator not implemented -- Assignment not allowed!

Member Enumeration Documentation

Enumerator:
FederateProcessIndex 
FederateIPIndex 
FederateHandleIndex 
FederateHostNameIndex 
FederateQueueStatusIndex 
FederateNameIndex 
FederateTypeIndex 
FederateHlaVersionIndex 
FederatePIDIndex 
FederateCommandArgsIndex 
NUM_NCV_TREE_COLUMNS 

Constructor & Destructor Documentation

DtNCVTree::~DtNCVTree ( ) [virtual]
DtNCVTree::DtNCVTree ( DtNCVTree const &  ) [private]

Copy constructor not implemented -- Copy not allowed!


Member Function Documentation

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]
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]

display the loading indications

References myLoadingIndicationItem.

Referenced by DtRtiNetworkComponentViewDialog::displayLoadingIndication().

void DtNCVTree::enableNetworkTestingRequest ( const QString &  ) [signal]
void DtNCVTree::enableRtiExecCommand ( bool  enable) [virtual]
void DtNCVTree::enableRtiForwarderCommand ( bool  enable) [virtual]
void DtNCVTree::fedDeleteRequest ( int  ,
const QString &   
) [signal]
void DtNCVTree::federationDeleteRequest ( const QString &  fedexName) [signal]
std::vector< DtNCVTreeInfo > DtNCVTree::getNCVTreeInfo ( ) [virtual]
int DtNCVTree::getNumberOfColumns ( ) [virtual]

number of tree columns

References NUM_NCV_TREE_COLUMNS.

Referenced by DtRtiNetworkComponentViewDialog::setupUI().

void DtNCVTree::openFedWebSpyRequest ( const QString &  ,
int   
) [signal]
DtNCVTree& DtNCVTree::operator= ( DtNCVTree const &  ) [private]

Assignment operator not implemented -- Assignment not allowed!

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]

Displays the column view customize dialog.

References myColDispActions.

Referenced by DtNCVTree().

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]

Emitted when the currently viewed rtiexec should be shutdown.

Referenced by shutdownRtiexec().

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().


Member Data Documentation

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 menu.

Referenced by DtNCVTree().

Context Menu.

Referenced by DtNCVTree(), refreshCommandsEnabled(), and showContextMenu().

QTreeWidgetItem* DtNCVTree::myCurrentViewedItem [protected]

Indicates whether or not federate and federation deletion is enabled.

QIcon DtNCVTree::myDroppedIcon [protected]

The dropped Icon.

Referenced by DtNCVTree(), and updateInformation().

Checks if commands are enabled.

Referenced by enableRtiExecCommand(), and refreshCommandsEnabled().

QTreeWidgetItem* DtNCVTree::myExecItem [protected]

Time after which defunct federates will automatically be removed from the tree.

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.

QAction* DtNCVTree::myShutdownAction [protected]
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().

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().


The documentation for this class was generated from the following files:

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)