MAK RTIspy API Documentation for HLA 1516
Public Member Functions | Protected Attributes
DtFedAmbWrapperChain Class Reference

Instances of DtFedAmbWrapperChain store a linked list of DtFedAmbWrappers. More...

+ Collaboration diagram for DtFedAmbWrapperChain:

List of all members.

Public Member Functions

 DtFedAmbWrapperChain ()
virtual ~DtFedAmbWrapperChain ()
virtual void init (RTI::FederateAmbassador *theBase)
 Initialize the chain for the given federate ambassador.
virtual void reset ()
 Reset the chain to empty.
virtual RTI::FederateAmbassadorfirst () const
 Return the first federate ambassador in the chain.
virtual void addWrapper (MAKRti::DtString const &name, DtFedAmbWrapper *fedWrap)
 Add/Remove a wrapper to the chain.
virtual DtFedAmbWrapperremoveWrapper (MAKRti::DtString const &name)
virtual bool addWrapperAtFront (MAKRti::DtString const &name, DtFedAmbWrapper *fedWrap)
 Add wrapper at the front of the chain.

Protected Attributes

RTI::FederateAmbassadormyBase
RTI::FederateAmbassadormyFirst
MAKRti::DtHashList myWrappers
bool myFrontTaken
 Has the front of the fedAmb Chain been reserved / taken?

Detailed Description

Instances of DtFedAmbWrapperChain store a linked list of DtFedAmbWrappers.

Whenever the RTI calls a federate service, the corresponding service call for each wrapper in the chain will also get called. The last federate ambassador in the list is always the pointer given to the RTI by the user in 'joinFederationExecution'. To register a DtFedAmbWrapper with the MAK RTI, simply call DtConnectMgr::addFedAmbWrapper()


Constructor & Destructor Documentation

References myWrappers, and NULL.


Member Function Documentation

void DtFedAmbWrapperChain::addWrapper ( MAKRti::DtString const &  name,
DtFedAmbWrapper fedWrap 
) [virtual]

Add/Remove a wrapper to the chain.

References myFirst, myFrontTaken, myWrappers, and NULL.

Referenced by DtConnectionMgr::addFedAmbWrapper(), and addWrapperAtFront().

bool DtFedAmbWrapperChain::addWrapperAtFront ( MAKRti::DtString const &  name,
DtFedAmbWrapper fedWrap 
) [virtual]

Add wrapper at the front of the chain.

Preserve that position when new wrappers are added. There can be only one wrapper at the front. Returns success.

References addWrapper(), and myFrontTaken.

Referenced by DtConnectionMgr::addFedAmbWrapperAtFront().

Return the first federate ambassador in the chain.

References myFirst.

void DtFedAmbWrapperChain::init ( RTI::FederateAmbassador theBase) [virtual]

Initialize the chain for the given federate ambassador.

Referenced by DtSmConnectionMgr::connectFederation(), DtConnectionMgr::connectFederation(), and removeWrapper().

DtFedAmbWrapper * DtFedAmbWrapperChain::removeWrapper ( MAKRti::DtString const &  name) [virtual]
void DtFedAmbWrapperChain::reset ( ) [virtual]

Member Data Documentation

Referenced by removeWrapper(), and reset().

Has the front of the fedAmb Chain been reserved / taken?

Referenced by addWrapper(), addWrapperAtFront(), removeWrapper(), and reset().

MAKRti::DtHashList DtFedAmbWrapperChain::myWrappers [protected]

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)