![]() |
MAK RTIspy API Documentation for HLA 1516
|
Inheritance diagram for DtForwarderCounterMsg:
Collaboration diagram for DtForwarderCounterMsg:Public Types | |
| enum | DtCounterStatus { CounterRequest = 0, CounterRequestFromUpstreamTarget, CounterResponse } |
Public Member Functions | |
| DtForwarderCounterMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| DtForwarderCounterMsg (const DtNetForwarderCounterMsg *netRep, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| DtForwarderCounterMsg (const MAKRti::DtInetAddr &target, int port, DtCounterStatus status, unsigned int count, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| virtual | ~DtForwarderCounterMsg () |
| Destructor. | |
| virtual DtRtiMsg * | clone (bool copy=true) const |
| Return a copy/empty object of the same type as this. | |
| virtual void | set (const MAKRti::DtInetAddr &target, int port, DtCounterStatus status, unsigned int count) |
| Set all fields simultaneously. | |
| virtual void | setCounterStatus (DtCounterStatus status) |
| Set/Get the count msg status/type. | |
| virtual DtCounterStatus | countStatus () const |
| virtual void | setDestination (const MAKRti::DtInetAddr &target) |
| Set/Get the target host address for the count. | |
| virtual MAKRti::DtInetAddr | destination () const |
| virtual void | setPort (int port) |
| Set/Get the target host port for the count. | |
| virtual int | port () const |
| virtual void | setCount (unsigned int count) |
| Set/Get the downstream federate count for the response. | |
| virtual unsigned int | count () 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) |
| static void | addCallback (DtConnectionMgr *conn, DtForwarderCounterCb cb, void *usr, bool isMomCallback=false) |
| Callback management. | |
| static void | removeCallback (DtConnectionMgr *conn, DtForwarderCounterCb cb, void *usr, bool isMomCallback=false) |
Protected Member Functions | |
| virtual MAKRti::DtInetUtils::DtInetAddrFamily | addressFamily () const |
| Set get IP address family. | |
| virtual void | setAddressFamily (MAKRti::DtInetUtils::DtInetAddrFamily fam) |
| virtual DtNetForwarderCounterMsg * | netForwarderCounterMsg () |
| The network representation. | |
| virtual const DtNetForwarderCounterMsg * | netForwarderCounterMsg () const |
| virtual DtRtiMsgKind | internalDtRtiMsgKind () |
| Returns the kind of an Forwarder Counter Msg. | |
| virtual int | minSize () const |
| Returns minimum size of a message, including header. | |
| virtual DtForwarderCounterMsg * | self () const |
| Casts away const-ness. | |
| DtForwarderCounterMsg::DtForwarderCounterMsg | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructor.
References DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), and minSize().
| DtForwarderCounterMsg::DtForwarderCounterMsg | ( | const DtNetForwarderCounterMsg * | netRep, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
Constructor.
References DtNetForwarderCounterMsg::header, and DtRtiMsg::initDtRtiMsg().
| DtForwarderCounterMsg::DtForwarderCounterMsg | ( | const MAKRti::DtInetAddr & | target, |
| int | port, | ||
| DtCounterStatus | status, | ||
| unsigned int | count, | ||
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
Constructor.
References count(), DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), minSize(), port(), and DtRtiMsg::status().
| DtForwarderCounterMsg::~DtForwarderCounterMsg | ( | ) | [virtual] |
Destructor.
| void DtForwarderCounterMsg::addCallback | ( | DtConnectionMgr * | conn, |
| DtForwarderCounterCb | cb, | ||
| void * | usr, | ||
| bool | isMomCallback = false |
||
| ) | [static] |
Callback management.
References DtConnectionMgr::addMsgCallback(), and DtForwarderCounterMsgKind.
| MAKRti::DtInetUtils::DtInetAddrFamily DtForwarderCounterMsg::addressFamily | ( | ) | const [protected, virtual] |
| DtRtiMsg * DtForwarderCounterMsg::clone | ( | bool | copy = true | ) | const [virtual] |
Return a copy/empty object of the same type as this.
Implements DtRtiMsg.
References DtForwarderCounterMsg(), and netForwarderCounterMsg().
| unsigned int DtForwarderCounterMsg::count | ( | ) | const [virtual] |
References DtNetForwarderCounterMsg::federateCount, and netForwarderCounterMsg().
Referenced by DtForwarderCounterMsg(), printData(), and DtFederateCounterProcessor::processInToOutMsg().
| DtForwarderCounterMsg::DtCounterStatus DtForwarderCounterMsg::countStatus | ( | ) | const [virtual] |
References DtNetForwarderCounterMsg::countStatus, and netForwarderCounterMsg().
Referenced by DtFederateCounterProcessor::processInToOutMsg(), and DtFederateCounterProcessor::processLanToOutMsg().
| DtRtiMsg * DtForwarderCounterMsg::create | ( | const DtNetMsgHeader * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Creator.
References DtForwarderCounterMsg().
| DtRtiMsg * DtForwarderCounterMsg::create | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) | [static] |
References DtForwarderCounterMsg().
| MAKRti::DtInetAddr DtForwarderCounterMsg::destination | ( | ) | const [virtual] |
References addressFamily(), and netForwarderCounterMsg().
Referenced by printData(), DtFederateCounterProcessor::processInToOutMsg(), and DtFederateCounterProcessor::processLanToOutMsg().
| DtRtiMsgKind DtForwarderCounterMsg::internalDtRtiMsgKind | ( | ) | [protected, virtual] |
Returns the kind of an Forwarder Counter Msg.
Implements DtRtiMsg.
References DtForwarderCounterMsgKind.
Referenced by DtForwarderCounterMsg().
| int DtForwarderCounterMsg::minSize | ( | ) | const [protected, virtual] |
Returns minimum size of a message, including header.
Referenced by DtForwarderCounterMsg().
| DtNetForwarderCounterMsg * DtForwarderCounterMsg::netForwarderCounterMsg | ( | ) | [protected, virtual] |
The network representation.
Referenced by addressFamily(), clone(), count(), countStatus(), destination(), port(), setAddressFamily(), setCount(), setCounterStatus(), setDestination(), and setPort().
| const DtNetForwarderCounterMsg * DtForwarderCounterMsg::netForwarderCounterMsg | ( | ) | const [protected, virtual] |
| int DtForwarderCounterMsg::port | ( | ) | const [virtual] |
| void DtForwarderCounterMsg::printData | ( | DtLogicalTimeFactory * | logicalTimeFactory | ) | const [virtual] |
Print the data section.
Reimplemented from DtRtiMsg.
References count(), destination(), and DtRtiMsg::status().
| void DtForwarderCounterMsg::removeCallback | ( | DtConnectionMgr * | conn, |
| DtForwarderCounterCb | cb, | ||
| void * | usr, | ||
| bool | isMomCallback = false |
||
| ) | [static] |
References DtForwarderCounterMsgKind, and DtConnectionMgr::removeMsgCallback().
| DtForwarderCounterMsg * DtForwarderCounterMsg::self | ( | ) | const [inline, protected, virtual] |
Casts away const-ness.
| void DtForwarderCounterMsg::set | ( | const MAKRti::DtInetAddr & | target, |
| int | port, | ||
| DtCounterStatus | status, | ||
| unsigned int | count | ||
| ) | [virtual] |
Set all fields simultaneously.
References setCount(), setCounterStatus(), setDestination(), and setPort().
| void DtForwarderCounterMsg::setAddressFamily | ( | MAKRti::DtInetUtils::DtInetAddrFamily | fam | ) | [protected, virtual] |
References DtNetForwarderCounterMsg::addressFamily, and netForwarderCounterMsg().
Referenced by setDestination().
| void DtForwarderCounterMsg::setCount | ( | unsigned int | count | ) | [virtual] |
Set/Get the downstream federate count for the response.
References DtNetForwarderCounterMsg::federateCount, and netForwarderCounterMsg().
Referenced by set().
| void DtForwarderCounterMsg::setCounterStatus | ( | DtCounterStatus | status | ) | [virtual] |
Set/Get the count msg status/type.
References DtNetForwarderCounterMsg::countStatus, and netForwarderCounterMsg().
Referenced by set().
| void DtForwarderCounterMsg::setDestination | ( | const MAKRti::DtInetAddr & | target | ) | [virtual] |
Set/Get the target host address for the count.
References DtNetForwarderCounterMsg::destinationAddress, netForwarderCounterMsg(), and setAddressFamily().
Referenced by set().
| void DtForwarderCounterMsg::setPort | ( | int | port | ) | [virtual] |
Set/Get the target host port for the count.
References DtNetForwarderCounterMsg::destinationPort, and netForwarderCounterMsg().
Referenced by set().