MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Slots | Signals | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtFederateTree Class Reference
+ Inheritance diagram for DtFederateTree:
+ Collaboration diagram for DtFederateTree:

Classes

class  DtFederateTreeColDescr
 Structure for column description strings. More...

Public Types

enum  DtFederateTreeCol {
  FederationNameIndex = 0, FederateTypeAndHandleIndex = 0, FederateProcessIndex, FederateNameIndex,
  FederateHostNameIndex, FederateIPIndex, HlaVersionIndex, FederateQueueStatusIndex,
  FederatePIDIndex, FederateCommandArgsIndex, RegulatingStateIndex, ConstrainedStateIndex,
  LbtsIndex, LookAheadIndex, CurrentTimeIndex, TestStatusIndex,
  TestCountIndex, NumFederateTreeCols
}

Public Slots

void showColumns ()
 Updates which columns are shown or hidden.
void setAllColumns (const std::map< QString, std::pair< int, bool > > &columns)
 Set the columns that are currently shown.
void allColumns (std::map< QString, std::pair< int, bool > > &columns)
 Get the columns and their position / visible value (cols in emptied and populated).
void showColCustomizeDlg ()
 Displays the column view customize dialog.
void deleteSelectedFed ()
 Emits the fedDeleteRequest signal for the selected federate.
void destroySelectedFederations ()
 For each federation selected, resign the federates then emit federationDelete.
void updateEnableNetworkTestingForSelectedFederations ()
 For each federation selected, enables or disables testing.
void showLatencyTest ()
 Emits the showFedLatencyTest signal for the selected federate.
void clearAllDefunctFederates ()
 Clears all defunct federates.
bool hasValidFederates () const
 returns whether any federates are valid.
void clearCurrDefunctFederates ()
 Clear only the currently selected defunct federates.
void refreshMenus ()
 Refresh the currently available menu options.
void signalSelectionChange ()
 Determines what the new selection is and emits the appropriate signal.
void showContextMenu (const QPoint &)
 Shows the context menu at the given position.

Signals

void fedDeleteRequest (int, const QString &)
void federationDeleteRequest (const QString &fedexName)
void enableNetworkTestingRequest (const QString &)
void disableNetworkTestingRequest (const QString &)
void showFedLatencyTest (const QString &, int)
void federateSelected (const MAKRti::DtString &federation, int federateHandle)
 Emitted when a single federate is selected.
void federationSelected (const MAKRti::DtString &name)
 Emitted when a single federation is selected.
void nothingSelected ()
 Emitted when selection is cleared.
void multipleItemsSelected ()
 Emitted when multiple items are selected.
void defunctFederateRemoved (const MAKRti::DtString &federation, int federateHandle)
 Emitted when a defunct federate must be removed.

Public Member Functions

 DtFederateTree (QWidget *parent)
virtual ~DtFederateTree ()
virtual QSize sizeHint () const
 Returns the recommended size for the widget.
virtual void hideEvent (QHideEvent *event)
 Override hideEvent to store the size of the dialog when it is hidden.
virtual bool updateFederation (const DtAssistantFederationInfo *federation, const DtAssistantForwarderInfo *forwarderInfo)
 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 void updateFederationColor (const MAKRti::DtString &federationName, const QColor &color)
 Set the color of the specified federation.
virtual bool updateFederate (const DtAssistantFederateInfo &federate, const DtAssistantForwarderInfo *forwarderInfo, 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 )
void forceFederateSelection (int federateHandle, const MAKRti::DtString &federation)
 Forces selection of the specified federate.
void forceFederationSelection (const MAKRti::DtString &federation)
 Forces selection of the specified federation.
void forceClearSelection ()
 Forces the selection to be cleared.
void saveGuiConfiguration (const MAKRti::DtFilename &configFile)
 Saves the GUI configuration to the given file.
void loadGuiConfiguration (const MAKRti::DtFilename &configFile)
 Loads the GUI configuration from the given file.
void initializeQtToolTips ()
QAction * statisticsAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * latencyTestAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * federateRidParamAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * federateFomAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * federateLogAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * changeFederateIconAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * resignFederateAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * federationFomAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * syncPointsAction ()
 Returns a pointer to the specific action from the federate menu.
QAction * destroyFederationAction ()
 Returns a pointer to the specific action from the federate menu.

Public Attributes

QString theRegulatingEnabledToolTip
 Tool tip strings.
QString theRegulatingDisabledToolTip
 Tool tip strings.
QString theConstrainedEnabledToolTip
 Tool tip strings.
QString theConstrainedDisabledToolTip
 Tool tip strings.
QString theTestCapableEnabledToolTip
 Tool tip strings.
QString theTestCapableDisabledToolTip
 Tool tip strings.
QString theNoTestToolTip
 Tool tip strings.
QString theContinuousTestToolTip
 Tool tip strings.
QString theSingleTestToolTip
 Tool tip strings.
QString theFederateLogEnabledText
 Tool tip strings.
QString theFederateLogDisabledText
 Tool tip strings.

Static Public Attributes

static const QString theLoadingText = DtFederateTree::tr("Loading...")
 The message that indicates information is being loaded.

Protected Member Functions

virtual void updateFederateItems (const DtFederateInfoByHandleMap &federates, const DtAssistantForwarderInfo *forwarderInfo, QTreeWidgetItem *fedexItem)
 Updates the federate items for the given federation item.
virtual void updateFederateItem (const DtAssistantFederateInfo &federate, const DtAssistantForwarderInfo *forwarderInfo, const QString &fedexName, QTreeWidgetItem *fedItem)
 Updates the federate item with the given information.
virtual void updateFederateItemFromForwarderInformation (const DtAssistantFederateInfo &federate, const DtAssistantForwarderInfo *forwarderInfo, const QString &fedexName, QTreeWidgetItem *fedItem)
 Updates the federate item with forwarder 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.
bool isFederateLocal (QTreeWidgetItem *item) const
 Is the federate represented by this QTreeWidgetItem locally hosted.
bool isFederateLightweight (QTreeWidgetItem *item) const
 Is the federate represented by this QTreeWidgetItem using a lightweight connection.
bool isFederationLightweight (QTreeWidgetItem *item) const
 Is the federation represented by this QTreeWidgetItem using a lightweight connection.

Protected Attributes

std::vector
< DtFederateTreeColDescr
myColumnDescrs
 List of descriptions for each column.
QMenu * myColViewMenu
 Column view menu.
std::vector< QAction * > myColDispActions
 Column view actions.
QAction * myColCustomizeAction
QMenu * myContextMenu
 Context Menu.
QMenu * myFederateMenu
QMenu * myFederationMenu
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 > > > 
myDefunctFederateTreeWidgets
 Items are added to myDefunctFederateTreeWidgets 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.
std::map< MAKRti::DtString,
QColor > 
myFederationColors
 Map of federation names to their colors.
float myFederateRemovalTime
 Time after which defunct federates will automatically be removed from the tree.
QTreeWidgetItemmyLoadingIndicationItem
 Item that indicates federation information is currently being loaded.
bool myDeletionEnabled
 Indicates whether or not federate and federation deletion is enabled.
MAKRti::DtClock myTimer
QSize myLastVisibleSize
 The size of the dialog the last time it was visible.
QAction * myStatisticsAction
 Federate menu actions.
QAction * myLatencyTestAction
 Federate menu actions.
QAction * myFederateRidParametersAction
 Federate menu actions.
QAction * myFederateFomAction
 Federate menu actions.
QAction * myFederateLogAction
 Federate menu actions.
QAction * myChangeFederateIconAction
 Federate menu actions.
QAction * myResignFederateAction
 Federate menu actions.
QAction * myClearCurrDefunctFederate
 Federate menu actions.
QAction * myFederationFomAction
 Federation menu actions.
QAction * myDisplaySyncPointsAction
 Federation menu actions.
QAction * myEnableNetworkTestingAction
 Federation menu actions.
QAction * myDestroyFederationAction
 Federation menu actions.
QAction * myClearAllDeadFederates
 Federation menu actions.
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 myTestIcon
 Icons to be used in the federate tree.
QIcon myDroppedIcon
 The dropped Icon.

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 IsLocalRole = DtFederateTree::TestEnableRole+1
static const int IsLightweightRole = DtFederateTree::IsLocalRole+1
static const int theLastColDefaultedOn = FederatePIDIndex
 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!
DtFederateTreeoperator= (DtFederateTree const &)
 Assignment operator not implemented – Assignment not allowed!

Member Enumeration Documentation

Enumerator:
FederationNameIndex 
FederateTypeAndHandleIndex 
FederateProcessIndex 
FederateNameIndex 
FederateHostNameIndex 
FederateIPIndex 
HlaVersionIndex 
FederateQueueStatusIndex 
FederatePIDIndex 
FederateCommandArgsIndex 
RegulatingStateIndex 
ConstrainedStateIndex 
LbtsIndex 
LookAheadIndex 
CurrentTimeIndex 
TestStatusIndex 
TestCountIndex 
NumFederateTreeCols 

Constructor & Destructor Documentation

DtFederateTree::DtFederateTree ( QWidget parent)
DtFederateTree::~DtFederateTree ( )
virtual
DtFederateTree::DtFederateTree ( DtFederateTree const &  )
private

Copy constructor not implemented – Copy not allowed!

Member Function Documentation

void DtFederateTree::allColumns ( std::map< QString, std::pair< int, bool > > &  columns)
slot

Get the columns and their position / visible value (cols in emptied and populated).

References myColDispActions.

QAction* DtFederateTree::changeFederateIconAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

void DtFederateTree::clearAllDefunctFederates ( )
slot
void DtFederateTree::clearCurrDefunctFederates ( )
slot
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::defunctFederateRemoved ( const MAKRti::DtString &  federation,
int  federateHandle 
)
signal

Emitted when a defunct federate must be removed.

Referenced by clearAllDefunctFederates(), clearCurrDefunctFederates(), and processInvalidList().

void DtFederateTree::deleteSelectedFed ( )
slot

Emits the fedDeleteRequest signal for the selected federate.

References fedDeleteRequest(), FederateHandleRole, FederateTypeAndHandleIndex, FederationNameIndex, isFederateValid(), and myItemNamesToFederationNames.

Referenced by DtFederateTree().

QAction* DtFederateTree::destroyFederationAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

void DtFederateTree::destroySelectedFederations ( )
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
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().

void DtFederateTree::enableNetworkTestingRequest ( const QString &  )
signal
void DtFederateTree::fedDeleteRequest ( int  ,
const QString &   
)
signal
QAction* DtFederateTree::federateFomAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

QAction* DtFederateTree::federateLogAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

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

QAction* DtFederateTree::federateRidParamAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

void DtFederateTree::federateSelected ( const MAKRti::DtString &  federation,
int  federateHandle 
)
signal

Emitted when a single federate is selected.

Referenced by signalSelectionChange().

void DtFederateTree::federationDeleteRequest ( const QString &  fedexName)
signal
QAction* DtFederateTree::federationFomAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

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

void DtFederateTree::federationSelected ( const MAKRti::DtString &  name)
signal

Emitted when a single federation is selected.

Referenced by signalSelectionChange().

void DtFederateTree::forceClearSelection ( )
void DtFederateTree::forceFederateSelection ( int  federateHandle,
const MAKRti::DtString &  federation 
)
void DtFederateTree::forceFederationSelection ( const MAKRti::DtString &  federation)

Forces selection of the specified federation.

References myFederationNamesToItemNames.

float DtFederateTree::getFederateRemovalTime ( ) const

Get the time for the federate removal.

References myFederateRemovalTime.

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
slot

returns whether any federates are valid.

References isFederateValid().

void DtFederateTree::hideEvent ( QHideEvent *  event)
virtual

Override hideEvent to store the size of the dialog when it is hidden.

References myLastVisibleSize.

void DtFederateTree::initializeQtToolTips ( )
bool DtFederateTree::isFederateLightweight ( QTreeWidgetItem item) const
protected

Is the federate represented by this QTreeWidgetItem using a lightweight connection.

References isFederationLightweight().

Referenced by refreshMenus().

bool DtFederateTree::isFederateLocal ( QTreeWidgetItem item) const
protected

Is the federate represented by this QTreeWidgetItem locally hosted.

References FederateHostNameIndex, and IsLocalRole.

Referenced by refreshMenus().

bool DtFederateTree::isFederateValid ( int  federateHandle,
const QString &  fedexName 
) const
bool DtFederateTree::isFederateValid ( QTreeWidgetItem item) const
protected

Is the federate represented by this QTreeWidgetItem valid.

References myDefunctFederateTreeWidgets, and myReconnectingFederates.

bool DtFederateTree::isFederationLightweight ( QTreeWidgetItem item) const
protected

Is the federation represented by this QTreeWidgetItem using a lightweight connection.

References FederationNameIndex, and IsLightweightRole.

Referenced by isFederateLightweight(), and refreshMenus().

QAction* DtFederateTree::latencyTestAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

void DtFederateTree::loadGuiConfiguration ( const MAKRti::DtFilename &  configFile)

Loads the GUI configuration from the given file.

References myColDispActions, and showColumns().

Referenced by DtFederationsViewDialog::loadGuiConfiguration().

void DtFederateTree::multipleItemsSelected ( )
signal

Emitted when multiple items are selected.

Referenced by signalSelectionChange().

void DtFederateTree::nothingSelected ( )
signal

Emitted when selection is cleared.

Referenced by signalSelectionChange().

DtFederateTree& DtFederateTree::operator= ( DtFederateTree const &  )
private

Assignment operator not implemented – Assignment not allowed!

void DtFederateTree::processInvalidList ( )
void DtFederateTree::refreshMenus ( )
slot
void DtFederateTree::removeAllFederateItems ( QTreeWidgetItem fedexItem)
protectedvirtual

Removes all of federate items from the given federation item.

References removeFederateItem().

Referenced by removeAllFederations(), and removeFederation().

void DtFederateTree::removeAllFederations ( )
virtual
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 clearAllDefunctFederates(), clearCurrDefunctFederates(), processInvalidList(), and DtFederationsViewDialog::removeFederate().

void DtFederateTree::removeFederateItem ( QTreeWidgetItem fedItem,
QTreeWidgetItem fedexItem,
bool  clearedDefunct = false 
)
protectedvirtual

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

QAction* DtFederateTree::resignFederateAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

void DtFederateTree::saveGuiConfiguration ( const MAKRti::DtFilename &  configFile)

Saves the GUI configuration to the given file.

Referenced by DtFederationsViewDialog::saveGuiConfiguration().

void DtFederateTree::setAllColumns ( const std::map< QString, std::pair< int, bool > > &  columns)
slot

Set the columns that are currently shown.

References myColDispActions, and showColumns().

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

Displays the column view customize dialog.

References myColDispActions.

Referenced by DtFederateTree().

void DtFederateTree::showColumns ( )
slot

Updates which columns are shown or hidden.

References myColDispActions.

Referenced by DtFederateTree(), loadGuiConfiguration(), and setAllColumns().

void DtFederateTree::showContextMenu ( const QPoint &  pos)
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 ( )
slot

Emits the showFedLatencyTest signal for the selected federate.

References FederateHandleRole, FederateTypeAndHandleIndex, FederationNameIndex, myItemNamesToFederationNames, and showFedLatencyTest().

Referenced by DtFederateTree().

void DtFederateTree::signalSelectionChange ( )
slot
QSize DtFederateTree::sizeHint ( ) const
virtual

Returns the recommended size for the widget.

References myLastVisibleSize.

QAction* DtFederateTree::statisticsAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

QAction* DtFederateTree::syncPointsAction ( )
inline

Returns a pointer to the specific action from the federate menu.

Referenced by DtFederationsViewDialog::setupMenus().

void DtFederateTree::updateEnableNetworkTestingForSelectedFederations ( )
slot
bool DtFederateTree::updateFederate ( const DtAssistantFederateInfo federate,
const DtAssistantForwarderInfo forwarderInfo,
const QString &  fedexName 
)
virtual
void DtFederateTree::updateFederateItem ( const DtAssistantFederateInfo federate,
const DtAssistantForwarderInfo forwarderInfo,
const QString &  fedexName,
QTreeWidgetItem fedItem 
)
protectedvirtual

Updates the federate item with the given information.

References ConstrainedStateIndex, DtAssistantFederateInfo::continuousTest(), CurrentTimeIndex, DtHla13, DtHla13DLC, DtHla1516, DtHlaEvolved, DtAssistantFederateInfo::federateHandle(), FederateHandleRole, DtAssistantFederateInfo::federateHostAddr(), DtAssistantFederateInfo::federateHostName(), FederateHostNameIndex, FederateIPIndex, DtAssistantFederateInfo::federateName(), FederateNameIndex, FederateNameRole, DtAssistantFederateInfo::federateType(), FederateTypeAndHandleIndex, DtAssistantFederateInfo::hlaVersion(), HlaVersionIndex, DtAssistantFederateInfo::isConstrained(), DtAssistantFederateInfo::isDisconnected(), DtAssistantFederateInfo::isLocalComp(), IsLocalRole, DtAssistantFederateInfo::isReconnecting(), DtAssistantFederateInfo::isRegulating(), LbtsIndex, DtAssistantFederateInfo::lbtsString(), LookAheadIndex, DtAssistantFederateInfo::lookAheadString(), myCheckIcon, myClearAllDeadFederates, myContTestIcon, myDefunctFederateTreeWidgets, myFederationMenu, myReconnectedFederates, myReconnectingFederates, myRedAttention, mySingleTestIcon, myTimer, myYellowAttention, DtAssistantFederateInfo::numInitiatedTests(), DtAssistantFederateInfo::numTestReports(), RegulatingStateIndex, TestCountIndex, DtAssistantFederateInfo::testEnabled(), TestEnableRole, DtAssistantFederateInfo::testInProgress(), TestStatusIndex, theConstrainedDisabledToolTip, theConstrainedEnabledToolTip, theContinuousTestToolTip, theNoTestToolTip, theRegulatingDisabledToolTip, theRegulatingEnabledToolTip, theSingleTestToolTip, DtAssistantFederateInfo::timeString(), and updateFederateItemFromForwarderInformation().

Referenced by updateFederate(), and updateFederateItems().

void DtFederateTree::updateFederateItemFromForwarderInformation ( const DtAssistantFederateInfo federate,
const DtAssistantForwarderInfo forwarderInfo,
const QString &  fedexName,
QTreeWidgetItem fedItem 
)
protectedvirtual
void DtFederateTree::updateFederateItems ( const DtFederateInfoByHandleMap federates,
const DtAssistantForwarderInfo forwarderInfo,
QTreeWidgetItem fedexItem 
)
protectedvirtual
bool DtFederateTree::updateFederation ( const DtAssistantFederationInfo federation,
const DtAssistantForwarderInfo forwarderInfo 
)
virtual
void DtFederateTree::updateFederationColor ( const MAKRti::DtString &  federationName,
const QColor &  color 
)
virtual

Member Data Documentation

const int DtFederateTree::FederateHandleRole = DtFederateTree::FederateNameRole+1
staticprotected
const int DtFederateTree::FederateNameRole = Qt::UserRole
staticprotected

Referenced by updateFederateItem().

const int DtFederateTree::IsLightweightRole = DtFederateTree::IsLocalRole+1
staticprotected
const int DtFederateTree::IsLocalRole = DtFederateTree::TestEnableRole+1
staticprotected
QAction* DtFederateTree::myChangeFederateIconAction
protected

Federate menu actions.

Referenced by DtFederateTree(), and refreshMenus().

QIcon DtFederateTree::myCheckIcon
protected

Icons to be used in the federate tree.

Referenced by DtFederateTree(), and updateFederateItem().

QAction* DtFederateTree::myClearAllDeadFederates
protected
QAction* DtFederateTree::myClearCurrDefunctFederate
protected

Federate menu actions.

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
std::vector<DtFederateTreeColDescr> DtFederateTree::myColumnDescrs
protected

List of descriptions for each column.

Referenced by DtFederateTree(), updateFederate(), updateFederateItems(), and updateFederation().

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

std::map<QTreeWidgetItem*, std::pair<MAKRti::DtTime, std::pair<QString, int> > > DtFederateTree::myDefunctFederateTreeWidgets
protected

Items are added to myDefunctFederateTreeWidgets 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 clearAllDefunctFederates(), clearCurrDefunctFederates(), isFederateValid(), processInvalidList(), and updateFederateItem().

bool DtFederateTree::myDeletionEnabled
protected

Indicates whether or not federate and federation deletion is enabled.

Referenced by enableDeletion(), and refreshMenus().

QAction* DtFederateTree::myDestroyFederationAction
protected

Federation menu actions.

Referenced by DtFederateTree(), and refreshMenus().

QAction* DtFederateTree::myDisplaySyncPointsAction
protected

Federation menu actions.

Referenced by DtFederateTree(), and refreshMenus().

QIcon DtFederateTree::myDroppedIcon
protected

The dropped Icon.

Referenced by DtFederateTree(), and updateFederateItemFromForwarderInformation().

QAction* DtFederateTree::myEnableNetworkTestingAction
protected

Federation menu actions.

Referenced by DtFederateTree(), and refreshMenus().

QAction* DtFederateTree::myFederateFomAction
protected

Federate menu actions.

Referenced by DtFederateTree(), and refreshMenus().

QAction* DtFederateTree::myFederateLogAction
protected

Federate menu actions.

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

QAction* DtFederateTree::myFederateRidParametersAction
protected

Federate menu actions.

Referenced by DtFederateTree(), and refreshMenus().

std::map< MAKRti::DtString, QColor > DtFederateTree::myFederationColors
protected

Map of federation names to their colors.

Referenced by removeAllFederations(), removeFederation(), and updateFederationColor().

QAction* DtFederateTree::myFederationFomAction
protected

Federation menu actions.

Referenced by DtFederateTree(), and refreshMenus().

QMenu* DtFederateTree::myFederationMenu
protected
std::map<QString, QString> DtFederateTree::myFederationNamesToItemNames
protected
std::map<QString, QString> DtFederateTree::myItemNamesToFederationNames
protected
QSize DtFederateTree::myLastVisibleSize
protected

The size of the dialog the last time it was visible.

Referenced by hideEvent(), and sizeHint().

QAction* DtFederateTree::myLatencyTestAction
protected

Federate menu actions.

Referenced by DtFederateTree(), and refreshMenus().

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.

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

QAction* DtFederateTree::myResignFederateAction
protected

Federate menu actions.

Referenced by DtFederateTree(), and refreshMenus().

QIcon DtFederateTree::mySingleTestIcon
protected

Icons to be used in the federate tree.

Referenced by DtFederateTree(), and updateFederateItem().

QAction* DtFederateTree::myStatisticsAction
protected

Federate menu actions.

Referenced by DtFederateTree(), and refreshMenus().

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
QIcon DtFederateTree::myWorldWideWeb
protected

Icons to be used in the federate tree.

Referenced by DtFederateTree().

QIcon DtFederateTree::myYellowAttention
protected

Icons to be used in the federate tree.

Referenced by DtFederateTree(), and updateFederateItem().

const int DtFederateTree::TestEnableRole = DtFederateTree::FederateHandleRole+1
staticprotected

Referenced by refreshMenus(), and updateFederateItem().

QString DtFederateTree::theConstrainedDisabledToolTip
QString DtFederateTree::theConstrainedEnabledToolTip

Tool tip strings.

Referenced by initializeQtToolTips(), and updateFederateItem().

QString DtFederateTree::theContinuousTestToolTip

Tool tip strings.

Referenced by initializeQtToolTips(), and updateFederateItem().

QString DtFederateTree::theFederateLogDisabledText

Tool tip strings.

Referenced by initializeQtToolTips(), and refreshMenus().

QString DtFederateTree::theFederateLogEnabledText

Tool tip strings.

Referenced by initializeQtToolTips(), and refreshMenus().

const int DtFederateTree::theLastColDefaultedOn = FederatePIDIndex
staticprotected

The number of the last column which is displayed by default the first time the dialog is shown.

Referenced by DtFederateTree().

const QString DtFederateTree::theLoadingText = DtFederateTree::tr("Loading...")
static

The message that indicates information is being loaded.

Referenced by DtFederateTree().

QString DtFederateTree::theNoTestToolTip
QString DtFederateTree::theRegulatingDisabledToolTip
QString DtFederateTree::theRegulatingEnabledToolTip

Tool tip strings.

Referenced by initializeQtToolTips(), and updateFederateItem().

QString DtFederateTree::theSingleTestToolTip

Tool tip strings.

Referenced by initializeQtToolTips(), and updateFederateItem().

QString DtFederateTree::theTestCapableDisabledToolTip

Tool tip strings.

Referenced by initializeQtToolTips().

QString DtFederateTree::theTestCapableEnabledToolTip

Tool tip strings.

Referenced by initializeQtToolTips().


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

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)