![]() |
MAK RTIspy API Documentation for HLA Evolved
|
The DtFederateCounterProcessor class consists of filters for FederateCounter messages for forwarder nodes. More...
Collaboration diagram for DtFederateCounterProcessor:Classes | |
| class | PendingRequest |
| Simple helper class to hold status of pending Pings. More... | |
Public Types | |
| typedef bool(DtFederateCounterProcessor::* | CounterMsgHandlerMemberCb )(const DtInetAddrAndPort &src, const DtForwarderCounterMsg &msg) |
| Pointer to member function callbacks used by the port filters. More... | |
| typedef bool(DtFederateCounterProcessor::* | DestinationProcessingMemberCb )(const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
Public Member Functions | |
| DtFederateCounterProcessor (std::shared_ptr< DtForwarderNode > parent) | |
| Default Ctor. More... | |
| virtual | ~DtFederateCounterProcessor () |
| Default Dtor. More... | |
| virtual bool | gotMsgToOutPort (const DtInetAddrAndPort &src, const DtForwarderCounterMsg &msg) |
| Got Handshake Message from the IN or LAN Port to the OUT Port. More... | |
| virtual bool | processCounterMsgDestinations (const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
| Set forwarding destination list based on source (eg. More... | |
Static Public Member Functions | |
| static int | lostConnection (const MAKRti::DtString &connName, const MAKRti::DtString &hostName, unsigned int connID, const std::pair< DtInetAddrAndPort, DtInetAddrAndPort > &connAddr, void *usr) |
| Connection loss callback. More... | |
| static int | reconnectBegun (const MAKRti::DtString &connName, const MAKRti::DtString &hostName, unsigned int connID, const DtInetAddrAndPort &connAddr, void *usr) |
Protected Types | |
| typedef std::map < DtInetAddrAndPort, PendingRequest > | DtDestToRequestMap |
Protected Member Functions | |
| virtual int | lostConnection (const MAKRti::DtString &connName, const MAKRti::DtString &hostName, unsigned int connID, const std::pair< DtInetAddrAndPort, DtInetAddrAndPort > &connAddr) |
| Connection loss callback. More... | |
| virtual int | reconnectBegun (const MAKRti::DtString &connName, const MAKRti::DtString &hostName, unsigned int connID, const DtInetAddrAndPort &connAddr) |
| virtual void | sendResponseMsg (const DtInetAddrAndPort &destination, unsigned int federateCount, const DtInetAddrAndPort *addr=0) |
| Send a Count Response based on aggregating all downstream WAN responses. More... | |
| virtual void | requestDownstreamCount (const DtInetAddrAndPort &destination) |
| Send a new downstream request indicating that the target is upstream (so all recipients should respond with their federate counts) More... | |
| virtual void | requestDownstreamCount (const DtInetAddrAndPort &destination, const DtRouteMap::DtAddressPortList &destinations) |
| virtual bool | processInToOutMsg (const DtInetAddrAndPort &src, const DtForwarderCounterMsg &msg) |
| Got Count Message from the IN Port to the OUT Port. More... | |
| virtual bool | processLanToOutMsg (const DtInetAddrAndPort &src, const DtForwarderCounterMsg &msg) |
| Got Count Message from the LAN Port to the OUT Port. More... | |
Protected Attributes | |
| std::shared_ptr< DtForwarderNode > | myParent |
| DtFederateCounterFilter * | myMsgToOutFilter |
| DtDestToRequestMap | myPendingRequests |
| Map of outstanding Count Requests to Responses. More... | |
The DtFederateCounterProcessor class consists of filters for FederateCounter messages for forwarder nodes.
The FederateCounter algorithm allows forwarder nodes or the rtiexec to obtain a count of all federates downstream from a given node (including federates directly attached to the specified node). Ie - the rtiexec could obtain a complete federate count by querying the node to which it is directly attached.
Basic Algo:
| typedef bool(DtFederateCounterProcessor::* DtFederateCounterProcessor::CounterMsgHandlerMemberCb)(const DtInetAddrAndPort &src, const DtForwarderCounterMsg &msg) |
Pointer to member function callbacks used by the port filters.
| typedef bool(DtFederateCounterProcessor::* DtFederateCounterProcessor::DestinationProcessingMemberCb)(const DtInetAddrAndPort &src, DtForwarderPort::DtAddressPortList &destinations) |
|
protected |
| DtFederateCounterProcessor::DtFederateCounterProcessor | ( | std::shared_ptr< DtForwarderNode > | parent | ) |
Default Ctor.
|
virtual |
Default Dtor.
|
virtual |
Got Handshake Message from the IN or LAN Port to the OUT Port.
|
static |
Connection loss callback.
|
protectedvirtual |
Connection loss callback.
|
virtual |
Set forwarding destination list based on source (eg.
which inlet the message was received on) and forwarder network configuration
|
protectedvirtual |
Got Count Message from the IN Port to the OUT Port.
|
protectedvirtual |
Got Count Message from the LAN Port to the OUT Port.
|
static |
|
protectedvirtual |
|
protectedvirtual |
Send a new downstream request indicating that the target is upstream (so all recipients should respond with their federate counts)
|
protectedvirtual |
|
protectedvirtual |
Send a Count Response based on aggregating all downstream WAN responses.
|
protected |
|
protected |
|
protected |
Map of outstanding Count Requests to Responses.