MAK RTIspy API Documentation for HLA 1.3
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtRtiForwarderObserverMgr Class Reference

The DtRtiForwarderObserverMgr is the class which manages all RTI Forwarder observers. More...

+ Collaboration diagram for DtRtiForwarderObserverMgr:

Public Member Functions

 DtRtiForwarderObserverMgr ()
 Constructor.
virtual ~DtRtiForwarderObserverMgr ()
 Destructor.
virtual void setForwarderNode (DtBoost::shared_ptr< DtForwarderNode > forwarder)
 Sets the forwarder to be observed.
virtual void addObserver (DtBoost::shared_ptr< DtRtiForwarderObserver > observer)
 Add a new RTI Forwarder observer.
virtual void removeObserver (DtBoost::shared_ptr< DtRtiForwarderObserver > observer)
 Remove RTI Forwarder observer.
virtual void removeAllObservers ()
 Remove all RTI Forwarder observers.
virtual void addRtiMsgCallback (DtRtiMsgKind msgKind, DtRtiMsgCbMgr::DtCallbackFcn fcn, DtRtiForwarderObserver *observer, bool isMomCallback)
 Add callback for incoming RTI message.
virtual void removeRtiMsgCallback (DtRtiMsgKind msgKind, DtRtiMsgCbMgr::DtCallbackFcn fcn, DtRtiForwarderObserver *observer, bool isMomCallback)
 Remove callback for incoming RTI message.
virtual int clientToForwarderConnectionEstablished (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr)
virtual int clientToForwarderConnectionLost (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr)
virtual void clientToForwarderFederateJoined (const MAKRti::DtString &connName, const MAKRti::DtString &connType, const MAKRti::DtString &federationName, unsigned int connID, unsigned int fedHandle, const DtInetAddrAndPort &connAddr, const MAKRti::DtString &hostName, unsigned int procesId, const MAKRti::DtString &processName, const MAKRti::DtString &commandArgs, DtHlaVersionId hlaVersion)
virtual int clientToForwarderSocketQueueUpdate (unsigned int connId, int connQueueStatus)
virtual void clientToForwarderFederateLost (const MAKRti::DtString &connName, const MAKRti::DtString &connType, unsigned int connID, unsigned int fedHandle, const DtInetAddrAndPort &connAddr)
virtual int forwarderToForwarderExecConnected (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, const MAKRti::DtString &connHost, bool fullyCompliant)
virtual int forwarderToForwarderExecLost (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr)
virtual int clientToForwarderExecConnected (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, const MAKRti::DtString &hostName, bool fullyCompliant)
virtual int clientToForwarderExecLost (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr)
virtual int forwarderToForwarderConnectionEstablished (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr)
virtual int forwarderToForwarderConnectionLost (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr)
virtual void waitingForFowrarderConnections (const DtForwarderPort::DtConnAndNameMap &allNeededFws, const DtForwarderPort::DtConnAndNameMap &stillNeededFws)
virtual void notWaitingForFowrarderConnections ()
virtual void addTickCallback (DtTickCbFn fcn, DtRtiForwarderObserver *observer, MAKRti::DtTime interval)
 Add a tick callback function to be called periodically at the given time interval.
virtual void removeTickCallback (DtTickCbFn fcn, DtRtiForwarderObserver *observer)
 Remove tick callback.
virtual unsigned long connectionId () const
 Retrieve information about this node.
virtual const DtInetAddrAndPortconnectionAddr () const
virtual MAKRti::DtString connectionName () const

Static Public Member Functions

static int clientToForwarderConnectionEstablished (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, void *usr)
 Callback for established client<->forwarder connections.
static int clientToForwarderConnectionLost (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, void *usr)
 Callback for lost client<->forwarder connections.
static void clientToForwarderFederateJoined (const MAKRti::DtString &connName, const MAKRti::DtString &connType, const MAKRti::DtString &federationName, unsigned int connID, unsigned int fedHandle, const DtInetAddrAndPort &connAddr, const MAKRti::DtString &hostName, unsigned int procesId, const MAKRti::DtString &processName, const MAKRti::DtString &commandArgs, DtHlaVersionId hlaVersion, void *usr)
 Callback for established client<->forwarder connections.
static int clientToForwarderSocketQueueUpdate (unsigned int connId, int connQueueStatus, void *usr)
static void clientToForwarderFederateLost (const MAKRti::DtString &connName, const MAKRti::DtString &connType, unsigned int connID, unsigned int fedHandle, const DtInetAddrAndPort &connAddr, void *usr)
 Callback for lost client<->forwarder connections.
static int forwarderToForwarderExecConnected (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, const MAKRti::DtString &connHost, bool fullyCompliant, void *usr)
 Callback for established forwarder<->forwarder rtiexec connections.
static int forwarderToForwarderExecLost (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, void *usr)
 Callback for lost forwarder<->forwarder rtiexec connections.
static int clientToForwarderExecConnected (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, const MAKRti::DtString &hostName, bool fullyCompliant, void *usr)
 Callback for established client<->forwarder rtiexec connections.
static int clientToForwarderExecLost (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, void *usr)
 Callback for lost client<->forwarder rtiexec connections.
static int forwarderToForwarderConnectionEstablished (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, void *usr)
 Callback for established forwarder<->forwarder connections.
static int forwarderToForwarderConnectionLost (const MAKRti::DtString &connName, unsigned int connID, const DtInetAddrAndPort &connAddr, void *usr)
 Callback for lost forwarder<->forwarder connections.
static void waitingForFowrarderConnections (const DtForwarderPort::DtConnAndNameMap &allNeededFws, const DtForwarderPort::DtConnAndNameMap &stillNeededFws, void *usr)
 Callback to signal that forwarder is waiting for forwarder<->forwarder connections.
static void notWaitingForFowrarderConnections (void *usr)
 Callback to signal that forwarder is no longer waiting for forwarder<->forwarder connections.

Protected Types

typedef std::set< DtMsgCbInfoDtMsgCbSet
typedef std::set
< DtTickCallbackInfo
DtTickCbSet
typedef std::set
< DtForwarderPortCbInfo
DtForwarderPortCbSet
typedef std::list
< DtBoost::shared_ptr
< DtRtiForwarderObserver > > 
DtForwarderObsList

Protected Member Functions

 DtRtiForwarderObserverMgr (const DtRtiForwarderObserverMgr &orig)
 Copy constructor unimplemented.
DtRtiForwarderObserverMgroperator= (const DtRtiForwarderObserverMgr &orig)
 Assignment unimplemented.

Protected Attributes

DtBoost::shared_ptr
< DtForwarderNode
myForwarder
 The RTI Forwarder which is being observed.
DtForwarderObsList myObservers
 List of RTI Forwarder observers.
DtMsgCbSet myMsgCbSet
 Set of all registered message callbacks.
DtTickCbSet myTickCbSet
 Set of all registered tick callbacks.

Detailed Description

The DtRtiForwarderObserverMgr is the class which manages all RTI Forwarder observers.

Member Typedef Documentation

typedef std::list< DtBoost::shared_ptr<DtRtiForwarderObserver> > DtRtiForwarderObserverMgr::DtForwarderObsList
protected

Constructor & Destructor Documentation

DtRtiForwarderObserverMgr::DtRtiForwarderObserverMgr ( )

Constructor.

DtRtiForwarderObserverMgr::~DtRtiForwarderObserverMgr ( )
virtual
DtRtiForwarderObserverMgr::DtRtiForwarderObserverMgr ( const DtRtiForwarderObserverMgr orig)
protected

Copy constructor unimplemented.

Member Function Documentation

void DtRtiForwarderObserverMgr::addObserver ( DtBoost::shared_ptr< DtRtiForwarderObserver observer)
virtual

Add a new RTI Forwarder observer.

References myObservers.

void DtRtiForwarderObserverMgr::addRtiMsgCallback ( DtRtiMsgKind  msgKind,
DtRtiMsgCbMgr::DtCallbackFcn  fcn,
DtRtiForwarderObserver observer,
bool  isMomCallback 
)
virtual

Add callback for incoming RTI message.

Referenced by DtRtiForwarderObserver::addRtiMsgCallback().

void DtRtiForwarderObserverMgr::addTickCallback ( DtTickCbFn  fcn,
DtRtiForwarderObserver observer,
MAKRti::DtTime  interval 
)
virtual

Add a tick callback function to be called periodically at the given time interval.

References myForwarder, and myTickCbSet.

Referenced by DtRtiForwarderObserver::addTickCallback().

int DtRtiForwarderObserverMgr::clientToForwarderConnectionEstablished ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
void *  usr 
)
static

Callback for established client<->forwarder connections.

Referenced by setForwarderNode(), and ~DtRtiForwarderObserverMgr().

int DtRtiForwarderObserverMgr::clientToForwarderConnectionEstablished ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr 
)
virtual

References myObservers.

int DtRtiForwarderObserverMgr::clientToForwarderConnectionLost ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
void *  usr 
)
static

Callback for lost client<->forwarder connections.

Referenced by setForwarderNode(), and ~DtRtiForwarderObserverMgr().

int DtRtiForwarderObserverMgr::clientToForwarderConnectionLost ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr 
)
virtual

References myForwarder, and myObservers.

int DtRtiForwarderObserverMgr::clientToForwarderExecConnected ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
const MAKRti::DtString &  hostName,
bool  fullyCompliant,
void *  usr 
)
static

Callback for established client<->forwarder rtiexec connections.

Referenced by clientToForwarderExecConnected(), setForwarderNode(), and ~DtRtiForwarderObserverMgr().

int DtRtiForwarderObserverMgr::clientToForwarderExecConnected ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
const MAKRti::DtString &  hostName,
bool  fullyCompliant 
)
virtual
int DtRtiForwarderObserverMgr::clientToForwarderExecLost ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
void *  usr 
)
static

Callback for lost client<->forwarder rtiexec connections.

Referenced by clientToForwarderExecLost(), setForwarderNode(), and ~DtRtiForwarderObserverMgr().

int DtRtiForwarderObserverMgr::clientToForwarderExecLost ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr 
)
virtual
void DtRtiForwarderObserverMgr::clientToForwarderFederateJoined ( const MAKRti::DtString &  connName,
const MAKRti::DtString &  connType,
const MAKRti::DtString &  federationName,
unsigned int  connID,
unsigned int  fedHandle,
const DtInetAddrAndPort connAddr,
const MAKRti::DtString &  hostName,
unsigned int  procesId,
const MAKRti::DtString &  processName,
const MAKRti::DtString &  commandArgs,
DtHlaVersionId  hlaVersion,
void *  usr 
)
static

Callback for established client<->forwarder connections.

Referenced by setForwarderNode(), and ~DtRtiForwarderObserverMgr().

void DtRtiForwarderObserverMgr::clientToForwarderFederateJoined ( const MAKRti::DtString &  connName,
const MAKRti::DtString &  connType,
const MAKRti::DtString &  federationName,
unsigned int  connID,
unsigned int  fedHandle,
const DtInetAddrAndPort connAddr,
const MAKRti::DtString &  hostName,
unsigned int  procesId,
const MAKRti::DtString &  processName,
const MAKRti::DtString &  commandArgs,
DtHlaVersionId  hlaVersion 
)
virtual

References myObservers.

void DtRtiForwarderObserverMgr::clientToForwarderFederateLost ( const MAKRti::DtString &  connName,
const MAKRti::DtString &  connType,
unsigned int  connID,
unsigned int  fedHandle,
const DtInetAddrAndPort connAddr,
void *  usr 
)
static

Callback for lost client<->forwarder connections.

Referenced by setForwarderNode(), and ~DtRtiForwarderObserverMgr().

void DtRtiForwarderObserverMgr::clientToForwarderFederateLost ( const MAKRti::DtString &  connName,
const MAKRti::DtString &  connType,
unsigned int  connID,
unsigned int  fedHandle,
const DtInetAddrAndPort connAddr 
)
virtual

References myForwarder, and myObservers.

int DtRtiForwarderObserverMgr::clientToForwarderSocketQueueUpdate ( unsigned int  connId,
int  connQueueStatus,
void *  usr 
)
static

Referenced by setForwarderNode().

int DtRtiForwarderObserverMgr::clientToForwarderSocketQueueUpdate ( unsigned int  connId,
int  connQueueStatus 
)
virtual

References myObservers.

const DtInetAddrAndPort & DtRtiForwarderObserverMgr::connectionAddr ( ) const
virtual
unsigned long DtRtiForwarderObserverMgr::connectionId ( ) const
virtual
MAKRti::DtString DtRtiForwarderObserverMgr::connectionName ( ) const
virtual
int DtRtiForwarderObserverMgr::forwarderToForwarderConnectionEstablished ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
void *  usr 
)
static

Callback for established forwarder<->forwarder connections.

Referenced by setForwarderNode(), and ~DtRtiForwarderObserverMgr().

int DtRtiForwarderObserverMgr::forwarderToForwarderConnectionEstablished ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr 
)
virtual

References myObservers.

int DtRtiForwarderObserverMgr::forwarderToForwarderConnectionLost ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
void *  usr 
)
static

Callback for lost forwarder<->forwarder connections.

Referenced by setForwarderNode(), and ~DtRtiForwarderObserverMgr().

int DtRtiForwarderObserverMgr::forwarderToForwarderConnectionLost ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr 
)
virtual

References myObservers.

int DtRtiForwarderObserverMgr::forwarderToForwarderExecConnected ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
const MAKRti::DtString &  connHost,
bool  fullyCompliant,
void *  usr 
)
static

Callback for established forwarder<->forwarder rtiexec connections.

Referenced by setForwarderNode().

int DtRtiForwarderObserverMgr::forwarderToForwarderExecConnected ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
const MAKRti::DtString &  connHost,
bool  fullyCompliant 
)
virtual

References myObservers.

int DtRtiForwarderObserverMgr::forwarderToForwarderExecLost ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr,
void *  usr 
)
static

Callback for lost forwarder<->forwarder rtiexec connections.

Referenced by setForwarderNode().

int DtRtiForwarderObserverMgr::forwarderToForwarderExecLost ( const MAKRti::DtString &  connName,
unsigned int  connID,
const DtInetAddrAndPort connAddr 
)
virtual

References myObservers.

void DtRtiForwarderObserverMgr::notWaitingForFowrarderConnections ( void *  usr)
static

Callback to signal that forwarder is no longer waiting for forwarder<->forwarder connections.

References notWaitingForFowrarderConnections().

void DtRtiForwarderObserverMgr::notWaitingForFowrarderConnections ( )
virtual
DtRtiForwarderObserverMgr& DtRtiForwarderObserverMgr::operator= ( const DtRtiForwarderObserverMgr orig)
protected

Assignment unimplemented.

void DtRtiForwarderObserverMgr::removeAllObservers ( )
virtual

Remove all RTI Forwarder observers.

References myObservers.

Referenced by ~DtRtiForwarderObserverMgr().

void DtRtiForwarderObserverMgr::removeObserver ( DtBoost::shared_ptr< DtRtiForwarderObserver observer)
virtual

Remove RTI Forwarder observer.

References myObservers.

void DtRtiForwarderObserverMgr::removeRtiMsgCallback ( DtRtiMsgKind  msgKind,
DtRtiMsgCbMgr::DtCallbackFcn  fcn,
DtRtiForwarderObserver observer,
bool  isMomCallback 
)
virtual

Remove callback for incoming RTI message.

Referenced by DtRtiForwarderObserver::removeRtiMsgCallback().

void DtRtiForwarderObserverMgr::removeTickCallback ( DtTickCbFn  fcn,
DtRtiForwarderObserver observer 
)
virtual

Remove tick callback.

References myForwarder, and myTickCbSet.

Referenced by DtRtiForwarderObserver::removeTickCallback().

void DtRtiForwarderObserverMgr::setForwarderNode ( DtBoost::shared_ptr< DtForwarderNode forwarder)
virtual
void DtRtiForwarderObserverMgr::waitingForFowrarderConnections ( const DtForwarderPort::DtConnAndNameMap allNeededFws,
const DtForwarderPort::DtConnAndNameMap stillNeededFws,
void *  usr 
)
static

Callback to signal that forwarder is waiting for forwarder<->forwarder connections.

Referenced by setForwarderNode().

void DtRtiForwarderObserverMgr::waitingForFowrarderConnections ( const DtForwarderPort::DtConnAndNameMap allNeededFws,
const DtForwarderPort::DtConnAndNameMap stillNeededFws 
)
virtual

References myObservers.

Member Data Documentation

DtBoost::shared_ptr<DtForwarderNode> DtRtiForwarderObserverMgr::myForwarder
protected
DtMsgCbSet DtRtiForwarderObserverMgr::myMsgCbSet
protected

Set of all registered message callbacks.

DtForwarderObsList DtRtiForwarderObserverMgr::myObservers
protected
DtTickCbSet DtRtiForwarderObserverMgr::myTickCbSet
protected

Set of all registered tick callbacks.

Referenced by addTickCallback(), and removeTickCallback().


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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)