![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Structure containing State information from a single federation. More...
Collaboration diagram for DtAssistantFederationInfo:Public Member Functions | |
| DtAssistantFederationInfo (const MAKRti::DtString &name=MAKRti::DtString::nullString(), int handle=-1, const std::list< MAKRti::DtString > &files=std::list< MAKRti::DtString >(), bool testEn=true) | |
| void | setFederationName (const MAKRti::DtString &val) |
| const MAKRti::DtString & | federationName () const |
| void | setFederationHandle (int val) |
| int | federationHandle () const |
| void | addFomModule (const MAKRti::DtString &module) |
| void | setFomModules (const std::list< MAKRti::DtString > &modules) |
| const std::list < MAKRti::DtString > * | fomModules () const |
| void | enableTesting (bool enabled) |
| bool | testingEnabled () const |
| bool | updateFederates (const DtFederateInfoByHandleMap &federates) |
| Updates or adds federates from given list. | |
| bool | updateFederate (const DtAssistantFederateInfo &federate) |
| Updates or adds a single federate. Returns true if list was updated. | |
| void | replaceFederateList (const DtFederateInfoByHandleMap &federates) |
| Replaces the existing federate list with the new one. | |
| bool | removeFederate (int handle) |
| Removes a federate from the federation, returns true if it was removed. | |
| void | clearFederates () |
| Clears all federates from the federation. | |
| const DtAssistantFederateInfo * | federateInfo (unsigned handle) const |
| Gets the federate info for a federate with the given handle. | |
| DtAssistantFederateInfo * | federateInfo (unsigned handle) |
| const DtFederateInfoByHandleMap * | federates () const |
| Returns a pointer to the map of federate info by handle. | |
| DtFederateInfoByHandleMap * | federates () |
| unsigned | numFederates () const |
| Returns the number of federates in the federation. | |
| unsigned | numLocalFederates () const |
| Returns the number of local federates in the federation. | |
| int | localFederateCompId (int federateHandle) const |
| Returns the local component ID if the federate is local, otherwise -1. | |
| int | localFederateHandle (int compId) const |
| Returns the federate handle if the federate with the specified local component ID is in this federation, otherwise -1;. | |
| void | updateSyncPoint (const MAKRti::DtString &name, const DtPendingAchievedPair &pendAchv) |
| Updates a sync points. Adds if not present. | |
| void | removeSyncPoint (const MAKRti::DtString &name) |
| Removes a sync point. | |
| DtPendingAchievedPair * | syncPoint (const MAKRti::DtString &name) |
| Gets a pointer to the pending and achieved federates for the given sync point. | |
| const DtSyncPtToAchievedFederatesMap * | syncPoints () const |
| Returns a pointer to the map of federate info by handle. | |
| void | setHeartbeated (bool hb) |
| Set/Get whether this federation has been heartbeated. | |
| bool | heartbeated () const |
Protected Attributes | |
| MAKRti::DtString | myFederationName |
| int | myFederationHandle |
| std::list< MAKRti::DtString > | myFomModuleNames |
| bool | myTestEnabled |
| DtFederateInfoByHandleMap | myFederates |
| DtSyncPtToAchievedFederatesMap | mySyncPts |
| bool | myHeartbeated |
| std::map< int, int > | myLocalFederatesByHandle |
| Local federate component IDs by federate handle. | |
| std::map< int, int > | myLocalFederatesByCompId |
| Local federate handles by component ID. | |
Structure containing State information from a single federation.
| DtAssistantFederationInfo::DtAssistantFederationInfo | ( | const MAKRti::DtString & | name = MAKRti::DtString::nullString(), |
| int | handle = -1, |
||
| const std::list< MAKRti::DtString > & | files = std::list<MAKRti::DtString>(), |
||
| bool | testEn = true |
||
| ) |
|
inline |
| void DtAssistantFederationInfo::clearFederates | ( | ) |
Clears all federates from the federation.
References myFederates, myLocalFederatesByCompId, and myLocalFederatesByHandle.
|
inline |
| const DtAssistantFederateInfo * DtAssistantFederationInfo::federateInfo | ( | unsigned | handle | ) | const |
Gets the federate info for a federate with the given handle.
References myFederates.
Referenced by DtAssistantFederationsInfoMgr::federateInfo(), DtRtiexecObserverForAssistant::processFederateDisconnectedEvent(), DtRtiexecObserverForAssistant::processFederateReconnectFailedEvent(), DtRtiexecObserverForAssistant::processFederateReconnectSucceededEvent(), DtRtiexecObserverForAssistant::processFederateResignedEvent(), DtAssistantFederationsInfoMgr::processFederateResponseMsg(), DtRtiexecObserverForAssistant::processLatencyTestStatusMsg(), and DtRtiexecObserverForAssistant::processTimeStateEvent().
| DtAssistantFederateInfo * DtAssistantFederationInfo::federateInfo | ( | unsigned | handle | ) |
References myFederates.
|
inline |
Returns a pointer to the map of federate info by handle.
Referenced by DtAssistantFederationsInfoMgr::federates(), DtRtiexecObserverForAssistant::processDeleteFederateMsg(), DtRtiexecObserverForAssistant::processDeleteFederationMsg(), DtAssistantFederationsInfoMgr::processFederationStateMsg(), DtAssistantFederationsViewMgr::processFederationUpdate(), DtAssistantFederationsInfoMgr::pruneStaleFederationsAndObservers(), replaceFederateList(), DtAssistantFederationsInfoMgr::sendAllFederationInfo(), DtRtiAssistantExecClient::sendExecStateMsg(), DtRtiAssistantExecClient::sendFederationStateMsg(), DtRtiAssistantPeer::sendFederationStateMsg(), DtRtiAssistantExecClient::sendFederationTimeStateMsg(), DtSyncPtDialog::update(), and DtFederateTree::updateFederation().
|
inline |
|
inline |
Referenced by DtAssistantFederationsViewMgr::destroyFederation(), DtRtiexecObserverForAssistant::processFedExCreatedEvent(), DtAssistantFederationsViewMgr::resignFederate(), DtAssistantFederationsInfoMgr::sendAllFederationInfo(), DtRtiAssistantExecClient::sendExecStateMsg(), DtRtiAssistantExecClient::sendFederationStateMsg(), DtRtiAssistantPeer::sendFederationStateMsg(), DtAssistantFederationsViewMgr::sendNetworkTestingDisableMsg(), DtAssistantFederationsViewMgr::sendNetworkTestingEnableMsg(), DtFederationsViewDialog::showFederationInfo(), DtAssistantFederationsViewMgr::showLatencyTestDialog(), and DtFederateTree::updateFederation().
|
inline |
Referenced by DtAssistantFederationsInfoMgr::processFederateResponseMsg(), DtAssistantFederationsInfoMgr::processFederationStateMsg(), DtRtiexecObserverForAssistant::processFedExCreatedEvent(), DtAssistantFederationsInfoMgr::processLocalFederateResigned(), DtAssistantFederationsInfoMgr::pruneStaleFederationsAndObservers(), DtAssistantFederationsInfoMgr::sendAllFederationInfo(), DtRtiAssistantExecClient::sendExecStateMsg(), DtRtiAssistantExecClient::sendFederationStateMsg(), DtRtiAssistantPeer::sendFederationStateMsg(), DtRtiAssistantExecClient::sendFederationTimeStateMsg(), DtFederationsViewDialog::showFederationInfo(), DtAssistantFederationsInfoMgr::tick(), DtSyncPtDialog::update(), DtFederateTree::updateFederation(), and DtFederationsViewDialog::updateFederation().
|
inline |
|
inline |
| int DtAssistantFederationInfo::localFederateCompId | ( | int | federateHandle | ) | const |
Returns the local component ID if the federate is local, otherwise -1.
References myLocalFederatesByHandle.
Referenced by DtAssistantFederationsViewMgr::showLatencyTestDialog().
| int DtAssistantFederationInfo::localFederateHandle | ( | int | compId | ) | const |
Returns the federate handle if the federate with the specified local component ID is in this federation, otherwise -1;.
References myLocalFederatesByCompId.
|
inline |
Returns the number of federates in the federation.
Referenced by DtAssistantFederationsInfoMgr::processLocalFederateResigned(), and DtFederationsViewDialog::showFederationInfo().
|
inline |
Returns the number of local federates in the federation.
Referenced by DtAssistantFederationsInfoMgr::pruneStaleFederationsAndObservers().
| bool DtAssistantFederationInfo::removeFederate | ( | int | handle | ) |
Removes a federate from the federation, returns true if it was removed.
References myFederates, myLocalFederatesByCompId, and myLocalFederatesByHandle.
Referenced by DtRtiexecObserverForAssistant::processFederateResignedEvent(), DtAssistantFederationsInfoMgr::processFederationStateMsg(), DtAssistantFederationsInfoMgr::processLocalFederateResigned(), and DtAssistantFederationsInfoMgr::pruneStaleFederationsAndObservers().
|
inline |
Removes a sync point.
Referenced by DtRtiexecObserverForAssistant::processFederationSynchronizedEvent().
| void DtAssistantFederationInfo::replaceFederateList | ( | const DtFederateInfoByHandleMap & | federates | ) |
Replaces the existing federate list with the new one.
Existing federates not in the list will be removed.
References federates(), and myFederates.
|
inline |
|
inline |
|
inline |
Referenced by DtAssistantFederationsInfoMgr::processFederationStateMsg().
|
inline |
Set/Get whether this federation has been heartbeated.
Referenced by DtAssistantFederationsInfoMgr::processFederationStateMsg(), and DtAssistantFederationsInfoMgr::pruneStaleFederationsAndObservers().
|
inline |
Gets a pointer to the pending and achieved federates for the given sync point.
Referenced by DtRtiexecObserverForAssistant::processExecObserveMsg(), DtRtiexecObserverForAssistant::processFederationSynchronizedEvent(), DtRtiexecObserverForAssistant::processSyncPtAchievedEvent(), and DtRtiexecObserverForAssistant::processSyncPtRegisteredEvent().
|
inline |
Returns a pointer to the map of federate info by handle.
Referenced by DtSyncPtDialog::update().
|
inline |
| bool DtAssistantFederationInfo::updateFederate | ( | const DtAssistantFederateInfo & | federate | ) |
Updates or adds a single federate. Returns true if list was updated.
References DtAssistantFederateInfo::assistantCompId(), DtAssistantFederateInfo::federateHandle(), DtAssistantFederateInfo::isLocalComp(), myFederates, myLocalFederatesByCompId, and myLocalFederatesByHandle.
Referenced by DtRtiexecObserverForAssistant::processFederateDisconnectedEvent(), DtRtiexecObserverForAssistant::processFederateJoinedEvent(), DtRtiexecObserverForAssistant::processFederateReconnectFailedEvent(), DtRtiexecObserverForAssistant::processFederateReconnectSucceededEvent(), DtAssistantFederationsInfoMgr::processFederateResponseMsg(), and DtRtiexecObserverForAssistant::processTimeStateEvent().
| bool DtAssistantFederationInfo::updateFederates | ( | const DtFederateInfoByHandleMap & | federates | ) |
Updates or adds federates from given list.
Existing federates not in the list remain the same. Returns true if list was updated.
References myFederates.
| void DtAssistantFederationInfo::updateSyncPoint | ( | const MAKRti::DtString & | name, |
| const DtPendingAchievedPair & | pendAchv | ||
| ) |
Updates a sync points. Adds if not present.
References mySyncPts.
Referenced by DtRtiexecObserverForAssistant::processSyncPtRegisteredEvent().
|
protected |
Referenced by clearFederates(), federateInfo(), removeFederate(), replaceFederateList(), updateFederate(), and updateFederates().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Local federate handles by component ID.
Referenced by clearFederates(), localFederateHandle(), removeFederate(), and updateFederate().
|
protected |
Local federate component IDs by federate handle.
Referenced by clearFederates(), localFederateCompId(), removeFederate(), and updateFederate().
|
protected |
Referenced by updateSyncPoint().
|
protected |