MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtAssistantForwarderInfo Class Reference

Stores the current state of a single forwarder. More...

+ Collaboration diagram for DtAssistantForwarderInfo:

Public Types

typedef std::pair
< MAKRti::DtString, int > 
DtFedexNameFedHdlPair
 Typedefs for information storage.
typedef std::map
< DtFedexNameFedHdlPair,
DtAssistantNetworkCompInfo
DtCompByFederationAndHandleMap
 Typedefs for information storage.
typedef std::map
< MAKRti::DtString,
DtAssistantNetworkCompInfo
DtPeerForwarderByIdMap
 Typedefs for information storage.

Public Member Functions

 DtAssistantForwarderInfo (bool isLocal)
 Constructor.
 ~DtAssistantForwarderInfo ()
 Destructor.
DtAssistantForwarderInfooperator= (const DtAssistantForwarderInfo &rhs)
 Overloaded operator=.
bool operator!= (const DtAssistantForwarderInfo &other) const
bool operator== (const DtAssistantForwarderInfo &other) const
void updateFromStateMsg (const DtAssistantForwarderStateMsg &msg)
 Updates the state from a status message.
const DtAssistantMsglastStateMsg () const
 Returns a pointer to the last state message we received for this forwarder.
MAKRti::DtInetAddr address () const
 Methods to get forwarder information.
int port () const
 Methods to get forwarder information.
MAKRti::DtString hostName () const
 Methods to get forwarder information.
const DtPeerForwarderByIdMappeerForwarders () const
 Methods to get forwarder information.
const DtAssistantNetworkCompInfortiexecInfo () const
 Methods to get forwarder information.
const DtAssistantNetworkCompInfofederateInfo (const MAKRti::DtString &federation, int handle) const
 Methods to get forwarder information.
const
DtCompByFederationAndHandleMap
federates () const
 Methods to get forwarder information.
const
DtAssistantNetworkCompInfoList
unclassifiedConns () const
 Methods to get forwarder information.
const DtAssistantNetworkCompInfounclassifiedConnInfo (unsigned connId) const
 Methods to get forwarder information.
bool isDropped ()
 Methods to get forwarder information.

Protected Attributes

MAKRti::DtInetAddr myAddr
 Address of this forwarder.
int myPort
 Forwarder port for this forwarder.
MAKRti::DtString myHostName
 Host name of this forwarder.
DtPeerForwarderByIdMap myPeerForwarders
 Map of forwarder identifiers to connected peer forwarder info.
DtAssistantNetworkCompInfo myRtiexec
 Info on the rtiexec connected to this forwarder.
DtCompByFederationAndHandleMap myFederateConns
 Map of federation name/connection handle pairs to info on federate connections.
std::list
< DtAssistantNetworkCompInfo
myUnclassifiedConns
 List of unclassified connections.
bool myIsLocal
 Whether or not this forwarder is local to this assistant.
DtBoost::shared_ptr
< DtAssistantMsg
myLastStateMessage
 The last received forwarder state message.

Detailed Description

Stores the current state of a single forwarder.

Member Typedef Documentation

Typedefs for information storage.

typedef std::pair<MAKRti::DtString, int> DtAssistantForwarderInfo::DtFedexNameFedHdlPair

Typedefs for information storage.

Typedefs for information storage.

Constructor & Destructor Documentation

DtAssistantForwarderInfo::DtAssistantForwarderInfo ( bool  isLocal)

Constructor.

DtAssistantForwarderInfo::~DtAssistantForwarderInfo ( )

Destructor.

Member Function Documentation

MAKRti::DtInetAddr DtAssistantForwarderInfo::address ( ) const
inline

Methods to get forwarder information.

const DtAssistantNetworkCompInfo * DtAssistantForwarderInfo::federateInfo ( const MAKRti::DtString &  federation,
int  handle 
) const
const DtCompByFederationAndHandleMap* DtAssistantForwarderInfo::federates ( ) const
inline
MAKRti::DtString DtAssistantForwarderInfo::hostName ( ) const

Methods to get forwarder information.

References myHostName.

Referenced by DtAssistantFederationsViewMgr::processForwarderUpdated().

bool DtAssistantForwarderInfo::isDropped ( )

Methods to get forwarder information.

const DtAssistantMsg* DtAssistantForwarderInfo::lastStateMsg ( ) const
inline

Returns a pointer to the last state message we received for this forwarder.

Only stored for local forwarders.

bool DtAssistantForwarderInfo::operator!= ( const DtAssistantForwarderInfo other) const

References operator==().

DtAssistantForwarderInfo & DtAssistantForwarderInfo::operator= ( const DtAssistantForwarderInfo rhs)
bool DtAssistantForwarderInfo::operator== ( const DtAssistantForwarderInfo other) const
const DtPeerForwarderByIdMap* DtAssistantForwarderInfo::peerForwarders ( ) const
inline
int DtAssistantForwarderInfo::port ( ) const
inline

Methods to get forwarder information.

const DtAssistantNetworkCompInfo* DtAssistantForwarderInfo::rtiexecInfo ( ) const
inline
const DtAssistantNetworkCompInfo * DtAssistantForwarderInfo::unclassifiedConnInfo ( unsigned  connId) const

Methods to get forwarder information.

References myUnclassifiedConns.

Referenced by DtAssistantFederationsViewMgr::processFederateSelection().

const DtAssistantNetworkCompInfoList* DtAssistantForwarderInfo::unclassifiedConns ( ) const
inline

Methods to get forwarder information.

Referenced by DtAssistantFederationsViewMgr::processForwarderUpdated().

void DtAssistantForwarderInfo::updateFromStateMsg ( const DtAssistantForwarderStateMsg msg)

Member Data Documentation

MAKRti::DtInetAddr DtAssistantForwarderInfo::myAddr
protected

Address of this forwarder.

Referenced by operator=(), operator==(), and updateFromStateMsg().

DtCompByFederationAndHandleMap DtAssistantForwarderInfo::myFederateConns
protected

Map of federation name/connection handle pairs to info on federate connections.

Referenced by federateInfo(), operator=(), operator==(), and updateFromStateMsg().

MAKRti::DtString DtAssistantForwarderInfo::myHostName
protected

Host name of this forwarder.

Referenced by hostName(), operator=(), operator==(), and updateFromStateMsg().

bool DtAssistantForwarderInfo::myIsLocal
protected

Whether or not this forwarder is local to this assistant.

Referenced by operator=(), operator==(), and updateFromStateMsg().

DtBoost::shared_ptr<DtAssistantMsg> DtAssistantForwarderInfo::myLastStateMessage
protected

The last received forwarder state message.

Referenced by operator=(), operator==(), and updateFromStateMsg().

DtPeerForwarderByIdMap DtAssistantForwarderInfo::myPeerForwarders
protected

Map of forwarder identifiers to connected peer forwarder info.

Referenced by operator=(), operator==(), and updateFromStateMsg().

int DtAssistantForwarderInfo::myPort
protected

Forwarder port for this forwarder.

Referenced by operator=(), and operator==().

DtAssistantNetworkCompInfo DtAssistantForwarderInfo::myRtiexec
protected

Info on the rtiexec connected to this forwarder.

Referenced by operator=(), operator==(), and updateFromStateMsg().

std::list<DtAssistantNetworkCompInfo> DtAssistantForwarderInfo::myUnclassifiedConns
protected

List of unclassified connections.

These are most likely federates which are not currently joined to a federation.

Referenced by operator=(), operator==(), unclassifiedConnInfo(), and updateFromStateMsg().


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)