MAK RTIspy API Documentation for HLA 1.3
Public Member Functions | Protected Attributes
DtAddrMap Class Reference

Maintain mappings between handles and network addresses The mappings are assumed to be propogated through the network to be used for establishing multicast groups. More...

+ Collaboration diagram for DtAddrMap:

List of all members.

Public Member Functions

 DtAddrMap (long defaultHandle, float delayValue)
 Constructor.
virtual ~DtAddrMap ()
 Destructor.
virtual void setDelay (float delayValue)
 Set/Get address delay.
virtual float delay ()
virtual void addLocalAddrMap (long handle, const MAKRti::DtInetAddr &addr)
 Add/Remove/Get mappings between handles and network addresses.
virtual void removeLocalAddrMap (long handle)
virtual MAKRti::DtInetAddr localAddrMap (long handle)
virtual void addRemoteAddrMap (long handle, const MAKRti::DtInetAddr &addr)
virtual void removeRemoteAddrMap (long handle)
virtual MAKRti::DtInetAddr remoteAddrMap (long handle)
virtual void addAddrMapDelay (long handle)
 Add/Remove/Query the delay status of an address map.
virtual void removeAddrMapDelay (long handle)
virtual bool addrMapDelayExpired (long handle)
virtual void empty ()
 Empty mappings.

Protected Attributes

float myAddressDelay
long myDefaultHandle
std::map< long,
MAKRti::DtInetAddr > 
myLocalAddr
std::map< long,
MAKRti::DtInetAddr > 
myRemoteAddr
std::map< long, MAKRti::DtClock * > myAddrMapDelay

Detailed Description

Maintain mappings between handles and network addresses The mappings are assumed to be propogated through the network to be used for establishing multicast groups.

The mappings are delayed to allow the propgation to take effect.


Constructor & Destructor Documentation

DtAddrMap::DtAddrMap ( long  defaultHandle,
float  delayValue 
)

Constructor.

References addLocalAddrMap(), and myDefaultHandle.

DtAddrMap::~DtAddrMap ( ) [virtual]

Destructor.

References empty().


Member Function Documentation

void DtAddrMap::addAddrMapDelay ( long  handle) [virtual]

Add/Remove/Query the delay status of an address map.

Address maps require some time to propagate to remote federates. Addresses used for sending data should be added to the delay pool. Query the pool to determine if the address can be used. Deleted or expired addressed should be removed.

References myAddrMapDelay.

Referenced by addLocalAddrMap().

void DtAddrMap::addLocalAddrMap ( long  handle,
const MAKRti::DtInetAddr &  addr 
) [virtual]

Add/Remove/Get mappings between handles and network addresses.

References addAddrMapDelay(), and myLocalAddr.

Referenced by DtAddrMap().

void DtAddrMap::addRemoteAddrMap ( long  handle,
const MAKRti::DtInetAddr &  addr 
) [virtual]

References myRemoteAddr.

bool DtAddrMap::addrMapDelayExpired ( long  handle) [virtual]
float DtAddrMap::delay ( ) [inline, virtual]

References myAddressDelay.

void DtAddrMap::empty ( ) [virtual]

Empty mappings.

References myAddrMapDelay, myLocalAddr, and myRemoteAddr.

Referenced by DtObjectMgr::destroyObjectLists(), and ~DtAddrMap().

MAKRti::DtInetAddr DtAddrMap::localAddrMap ( long  handle) [virtual]
MAKRti::DtInetAddr DtAddrMap::remoteAddrMap ( long  handle) [virtual]

References myRemoteAddr.

void DtAddrMap::removeAddrMapDelay ( long  handle) [virtual]
void DtAddrMap::removeLocalAddrMap ( long  handle) [virtual]
void DtAddrMap::removeRemoteAddrMap ( long  handle) [virtual]

References myRemoteAddr.

void DtAddrMap::setDelay ( float  delayValue) [virtual]

Set/Get address delay.

References myAddressDelay.


Member Data Documentation

float DtAddrMap::myAddressDelay [protected]
std::map<long, MAKRti::DtClock*> DtAddrMap::myAddrMapDelay [protected]
long DtAddrMap::myDefaultHandle [protected]

Referenced by DtAddrMap().

std::map<long, MAKRti::DtInetAddr> DtAddrMap::myLocalAddr [protected]
std::map<long, MAKRti::DtInetAddr> DtAddrMap::myRemoteAddr [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)