MAK RTIspy API Documentation for HLA 1.3
Public Member Functions | Static Public Member Functions | Protected Member Functions
DtMcastConfigureMsg Class Reference

IMPORTANT NOTE: Multicast Configuration message are not intended for dissemination over the network. More...

+ Inheritance diagram for DtMcastConfigureMsg:
+ Collaboration diagram for DtMcastConfigureMsg:

List of all members.

Public Member Functions

 DtMcastConfigureMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
 DtMcastConfigureMsg (unsigned long ID, MAKRti::DtInetAddr mcastAddr, MAKRti::DtInetAddr interfaceAddr, DtMcastConfigFlags flag, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 DtMcastConfigureMsg (const DtNetMulticastConfigureMsg *netRepMsg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
virtual ~DtMcastConfigureMsg ()
 Destructor.
virtual DtRtiMsg * clone (bool copy=true) const
 Return a copy/empty object of the same type as this.
virtual void set (unsigned long ID, const MAKRti::DtInetAddr &mcastAddr, const MAKRti::DtInetAddr &interfaceAddr, DtMcastConfigFlags flag)
 Set all parameters simultaneously.
void setSourceID (const unsigned long ID)
 Set/Get source federate ID.
const unsigned long sourceID () const
void setMcastAddr (const MAKRti::DtInetAddr &mcastAddr)
 Set/Get multicast address.
MAKRti::DtInetAddr mcastAddr () const
void setInterfaceAddr (const MAKRti::DtInetAddr &interfaceAddr)
 Set/Get local interface address.
MAKRti::DtInetAddr interfaceAddr () const
void setConfigFlag (DtMcastConfigFlags flag)
 Set/Get listen / drop flag.
DtMcastConfigFlags configFlag () const
virtual void printData (DtLogicalTimeFactory *logicalTimeFactory) const
 Print the data section.

Static Public Member Functions

static DtRtiMsg * create (const DtNetMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creator.
static DtRtiMsg * create (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creator.
static void addCallback (DtConnectionMgr *conn, DtMcastConfigureMsgCb cb, void *usr)
 Callback management.
static void removeCallback (DtConnectionMgr *conn, DtMcastConfigureMsgCb cb, void *usr)

Protected Member Functions

virtual
DtNetMulticastConfigureMsg * 
netMulticastConfigMsg ()
 The network representation.
virtual const
DtNetMulticastConfigureMsg * 
netMulticastConfigMsg () const
virtual DtRtiMsgKind internalDtRtiMsgKind ()
 Returns the kind of an SmMulticastConfig Msg.
virtual int minSize () const
 Returns minimum size of a message, including header.
virtual DtMcastConfigureMsg * self () const
 Casts away const-ness.

Detailed Description

IMPORTANT NOTE: Multicast Configuration message are not intended for dissemination over the network.

They are to be exchanged over a shared memory message queue only to allow federates to instruct a shared memory queue manager's network I/O connection manager to listen or drop multicast groups.


Constructor & Destructor Documentation

DtMcastConfigureMsg::DtMcastConfigureMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)

Constructor.

References DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), and minSize().

Referenced by clone(), and create().

DtMcastConfigureMsg::DtMcastConfigureMsg ( unsigned long  ID,
MAKRti::DtInetAddr  mcastAddr,
MAKRti::DtInetAddr  interfaceAddr,
DtMcastConfigFlags  flag,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
DtMcastConfigureMsg::DtMcastConfigureMsg ( const DtNetMulticastConfigureMsg *  netRepMsg,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)

Destructor.


Member Function Documentation

void DtMcastConfigureMsg::addCallback ( DtConnectionMgr *  conn,
DtMcastConfigureMsgCb  cb,
void *  usr 
) [static]

Callback management.

References DtConnectionMgr::addMsgCallback(), and DtMcastConfigureMsgKind.

DtRtiMsg * DtMcastConfigureMsg::clone ( bool  copy = true) const [virtual]

Return a copy/empty object of the same type as this.

Implements DtRtiMsg.

References DtMcastConfigureMsg(), and netMulticastConfigMsg().

References netMulticastConfigMsg().

Referenced by printData().

DtRtiMsg * DtMcastConfigureMsg::create ( const DtNetMsgHeader *  initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
) [static]

Creator.

References DtMcastConfigureMsg().

DtRtiMsg * DtMcastConfigureMsg::create ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER) [static]

Creator.

References DtMcastConfigureMsg().

MAKRti::DtInetAddr DtMcastConfigureMsg::interfaceAddr ( ) const

References netMulticastConfigMsg().

Referenced by printData().

Returns the kind of an SmMulticastConfig Msg.

Implements DtRtiMsg.

References DtMcastConfigureMsgKind.

Referenced by DtMcastConfigureMsg().

MAKRti::DtInetAddr DtMcastConfigureMsg::mcastAddr ( ) const

References netMulticastConfigMsg().

Referenced by printData().

int DtMcastConfigureMsg::minSize ( ) const [protected, virtual]

Returns minimum size of a message, including header.

Referenced by DtMcastConfigureMsg().

void DtMcastConfigureMsg::printData ( DtLogicalTimeFactory *  logicalTimeFactory) const [virtual]

Print the data section.

Reimplemented from DtRtiMsg.

References configFlag(), interfaceAddr(), mcastAddr(), and sourceID().

void DtMcastConfigureMsg::removeCallback ( DtConnectionMgr *  conn,
DtMcastConfigureMsgCb  cb,
void *  usr 
) [static]
DtMcastConfigureMsg * DtMcastConfigureMsg::self ( ) const [inline, protected, virtual]

Casts away const-ness.

void DtMcastConfigureMsg::set ( unsigned long  ID,
const MAKRti::DtInetAddr &  mcastAddr,
const MAKRti::DtInetAddr &  interfaceAddr,
DtMcastConfigFlags  flag 
) [virtual]

Set/Get listen / drop flag.

References DtNetMulticastConfigureMsg::listenDropFlag, and netMulticastConfigMsg().

Referenced by DtMcastConfigureMsg(), and set().

void DtMcastConfigureMsg::setInterfaceAddr ( const MAKRti::DtInetAddr &  interfaceAddr)

Set/Get local interface address.

References DtNetMulticastConfigureMsg::interfaceAddr, and netMulticastConfigMsg().

Referenced by DtMcastConfigureMsg(), and set().

void DtMcastConfigureMsg::setMcastAddr ( const MAKRti::DtInetAddr &  mcastAddr)
void DtMcastConfigureMsg::setSourceID ( const unsigned long  ID)

Set/Get source federate ID.

References DtNetMulticastConfigureMsg::id, and netMulticastConfigMsg().

Referenced by DtMcastConfigureMsg(), and set().

const unsigned long DtMcastConfigureMsg::sourceID ( ) const

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)