![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Instances of DtFederateMgr process federation-level messages (such as create, destroy, join, resign, and sync points) and manages the objects responsible for handling general communication, objects, interactions, the FOM, MOM, and data distribution mmg. More...
Inheritance diagram for DtFederateMgr:
Collaboration diagram for DtFederateMgr:Public Types | |
| typedef DtFederateMgr *(* | DtFederateMgrCreator )(DtRIDParameters *ridParams, DtRtiAmbassadorBaseImplementor *ambImplPtr, DtConnectionMgr *connMgr, DtBoost::shared_ptr< DtRtiAssistantLrcClient > assistantClient) |
| Federate manager creator. More... | |
| typedef void(* | DtFedMgrPostTickCallbackFcn )(void *) |
| typedef std::pair < DtFedMgrPostTickCallbackFcn, void * > | DtFedMgrPostTickCallbackInfo |
| typedef std::map < MAKRti::DtString, DtFedMgrPostTickCallbackInfo > | DtPostTickCallbackMap |
| typedef std::map < MAKRti::DtString, DtFomClassMgr * > | DtParsedFomsMap |
| typedef std::map < MAKRti::DtString, std::pair < char *, int > > | DtFileNameToDataMap |
| typedef std::map< DtString, int > | DtFomToComplexMap |
| typedef std::map< DtString, DtString > | DtFomNameToFileNameMap |
| typedef std::map< DtString, DtString > | DtFileNameToFomNameMap |
| typedef std::multimap< int, DtString > | DtComplexToFomsMMap |
Public Member Functions | |
| virtual | ~DtFederateMgr () |
| Destructor. More... | |
| virtual void | createFederationExecution (const char *executionName, const char *timeImplName, const char *fed)=0 |
| Process the create federation execution service. More... | |
| virtual void | destroyFederationExecution (const char *executionName)=0 |
| Process the destroy federation execution service. More... | |
| virtual RTI::FederateHandle | joinFederationExecution (const char *yourName, const char *executionName, RTI::FederateAmbassador *federateAmbassadorReference, unsigned long flags)=0 |
| Process the join federation execution service. More... | |
| virtual void | resignFederationExecution (RTI::ResignAction theAction) |
| Process the resign federation execution service. More... | |
| virtual bool | automaticReserveObjectName (const char *) |
| HLA 1.3 does not have the ability to reserve an object name, so this function allows us to implici. More... | |
| virtual void | registerFederationSynchronizationPoint (const char *label, const char *theTag)=0 |
| Process the register federation synchronization point service. More... | |
| virtual void | waitForResignResponse (bool serviceCall=true) |
| Wait for Resign Response. More... | |
| virtual void | waitForReserveNameResponse (bool serviceCall=true) |
| Wait for Resign Response. More... | |
| virtual void | registerFederationSynchronizationPoint (const char *label, const char *theTag, DtFederateHandleSet const &syncSet)=0 |
| Process the register federation synchronization point service. More... | |
| virtual void | synchronizationPointAchieved (const char *label, bool successfully=true)=0 |
| Process the synchronization point achieved service. More... | |
| virtual MAKRti::DtString | fedFileName (MAKRti::DtString execName) |
| Return the .fed file name associated with the federation execution name. More... | |
| virtual MAKRti::DtString | timeImplName (MAKRti::DtString execName) |
| Return the time implementation name associated with the federation execution name. More... | |
| virtual void | init () |
| Virtual initialization within create. More... | |
| virtual bool | tick () |
| Update the state of the federation. More... | |
| virtual void | pretick () |
| virtual void | posttick () |
| virtual void | postTickCallbacks () |
| virtual void | addPostTickCallback (const MAKRti::DtString &label, const DtFedMgrPostTickCallbackInfo &cb) |
| virtual void | removePostTickCallback (const MAKRti::DtString &label) |
| virtual void | requestFederationSave (const char *label, const RTI::FedTime *time=NULL)=0 |
| Process the requested federation save service. More... | |
| virtual void | federateSaveBegun ()=0 |
| Process the federate save begun service. More... | |
| virtual void | federateSaveComplete ()=0 |
| Process the federate save complete service. More... | |
| virtual void | federateSaveNotComplete ()=0 |
| Process the federate save not complete service. More... | |
| virtual void | requestFederationRestore (const char *label)=0 |
| Process the request federation restore service. More... | |
| virtual void | federateRestoreComplete ()=0 |
| Process the federate restore complete service. More... | |
| virtual void | federateRestoreNotComplete ()=0 |
| Process the federate restore not complete service. More... | |
| virtual char * | getTransportationName (MAKRti::DtTransportType transport) |
| Get transport name service. More... | |
| virtual char * | getOrderName (MAKRti::DtOrderType order) |
| Get order name service. More... | |
| virtual MAKRti::DtTransportType | getTransportationHandle (MAKRti::DtString transport) |
| Get transport handle service. More... | |
| virtual MAKRti::DtOrderType | getOrderHandle (MAKRti::DtString order) |
| Get order handle service. More... | |
| virtual DtFederateHandle | federateHandle () const |
| Get the federate handle. More... | |
| virtual MAKRti::DtString const & | fedType () const |
| Get the federate type. More... | |
| virtual MAKRti::DtString const & | fedName () const |
| Get the federate name (HLA Evolved) More... | |
| virtual MAKRti::DtString const & | fedExName () const |
| Get the federation execution name. More... | |
| virtual unsigned long | fedExHandle () const |
| Get the federation execution handle. More... | |
| virtual bool | isJoined () const |
| Return boolean: federate is joined? More... | |
| virtual DtConnectionMgr * | connectMgr () |
| Access to the connection manager. More... | |
| virtual DtConnectionMgr * | connectMgr () const |
| virtual DtRIDParameters * | params () |
| Access to the RID parameters. More... | |
| virtual DtRIDParameters * | params () const |
| virtual DtFomClassMgr * | fom () |
| Access to the fom. More... | |
| virtual DtFomClassMgr * | fom () const |
| virtual DtInteractionMgr * | interMgr () |
| Access to the interaction mgr. More... | |
| virtual DtInteractionMgr * | interMgr () const |
| virtual DtTestManager * | testMgr () |
| Access to the test Manager. More... | |
| virtual DtTestManager * | testMgr () const |
| virtual DtObjectMgr * | objMgr () |
| Access to the object mgr. More... | |
| virtual DtObjectMgr * | objMgr () const |
| virtual DtLogicalTimeFactory * | timeFactory () |
| Access to the time factory. More... | |
| virtual DtLogicalTimeFactory * | timeFactory () const |
| virtual DtRtiAssistantLrcClient * | assistantClient () |
| Access to the RTI Assistant client. More... | |
| virtual DtRtiAssistantLrcClient * | assistantClient () const |
| virtual bool | isJoinedFederate (DtFederateHandle federateHandleValue) const |
| Return bool: Is the federate handle known to be in the federation. More... | |
| virtual bool | forcedToResign () const |
| Return bool: Was federate forced to resign? More... | |
| virtual void | setMomResign () |
| Marks that MOM is invoking resign. More... | |
| virtual void | resetMomResign () |
| Unmark that MOM is invoking resign. More... | |
| virtual bool | saveInitiated () const |
| return bool: save initiated? More... | |
| virtual bool | saveBegun () const |
| return bool: save begun? More... | |
| virtual bool | restoreRequested () const |
| return bool: restore requested? More... | |
| virtual bool | restoreInitiated () const |
| return bool: restore initiated ? More... | |
| virtual bool | restoreBegun () const |
| return bool: restore begun? More... | |
| virtual const MAKRti::DtString & | restoreLabel () const |
| return current restore label More... | |
| virtual const MAKRti::DtString & | lastRestoreLabel () const |
| return last restore label More... | |
| const MAKRti::DtString & | currentFedFileName () const |
| get/set current FED file name More... | |
| void | setCurrentFedFileName (const MAKRti::DtString &) |
| const MAKRti::DtString & | mimName () const |
| get/set MIM name More... | |
| void | setMimName (const MAKRti::DtString &) |
| const MAKRti::DtString & | currentTimeImplName () const |
| get/set current time implementation name More... | |
| void | setCurrentTimeImplName (const MAKRti::DtString &) |
| virtual const MAKRti::DtString & | saveLabel () const |
| Set/Get save label. More... | |
| virtual void | setSaveLabel (const MAKRti::DtString &value) |
| virtual const MAKRti::DtString & | lastSaveLabel () const |
| Set/Get last save label. More... | |
| virtual void | setLastSaveLabel (const MAKRti::DtString &value) |
| virtual void | testSaveProgress ()=0 |
| Perform exception tests on save/restore state. More... | |
| virtual void | initiateSave () |
| Perform the actual save possibly after waiting to enter time advancing state. More... | |
| virtual void | initiateTimedSave (RTI::FedTime const &saveTime) |
| Save is initiated possibly after waiting to enter time advancing state. More... | |
| virtual bool | save (DtRtiSaveFile &file) |
| Perform the actual save. More... | |
| virtual bool | restore (DtRtiSaveFile &file) |
| Perform the actual restore. More... | |
| virtual MAKRti::DtString & | getSaveFileName (const char *label, DtFederateHandle fedHandle, MAKRti::DtString &fileName, bool extendName=true) |
| Create a save file name from the label and return in supplied parameter. More... | |
| virtual MAKRti::DtString & | getRestoreFileName (const char *label, DtFederateHandle fedHandle, MAKRti::DtString &fileName) |
| Create a restore file name from the label and return in supplied parameter. More... | |
| virtual unsigned long | tickCount () const |
| Return the number of ticks. More... | |
| virtual bool | isTicking () const |
| Return true if currently processing tick. More... | |
| virtual void | reportLatencyTestResults (const DtLatencyReportMsg &msg) |
| Report results of a latency test. More... | |
| virtual void | reportLatencyTestStatus (const DtTestMgrStatusMsg &msg) |
| Report current latency test status. More... | |
| unsigned long | flags () const |
| DtResignAction | automaticResignDirective () const |
| virtual const MAKRti::DtString & | getFederateNameFromHandle (DtFederateHandle handle) |
| Get Federate Name / Handle from Handle / Name. More... | |
| virtual DtFederateHandle | getFederateHandleFromName (const MAKRti::DtString &name) |
| virtual void | setTopLevelAmbassador (RTI::RTIambassador *ambPtr) |
| Provide access to top level RTI Ambassador (and Federate Ambassador for 1516E) More... | |
| RTI::RTIambassador * | rtiAmb () |
| Access to the top level RTI Ambassador given to the federate. More... | |
| RTI::RTIambassador * | rtiAmb () const |
| Access to the top level RTI Ambassador given to the federate. More... | |
| virtual RTI::FederateAmbassador * | federateAmbassador () const |
| Access to the Federate Ambassador submitted by the federate. More... | |
Static Public Member Functions | |
| static DtFederateMgr * | create (DtRIDParameters *params, DtRtiAmbassadorBaseImplementor *ambImplPtr, DtConnectionMgr *connMgr, DtBoost::shared_ptr< DtRtiAssistantLrcClient > assistantClient) |
| A Federate Manager instance is created, initialized, and its pointer is returned. More... | |
| static void | setCreatorFunction (DtFederateMgrCreator fn) |
| Register a creator function. More... | |
| static void | setInternalCreatorFunction (DtFederateMgrCreator fn) |
| Register alternate internal creators. More... | |
Public Attributes | |
| bool | myFedCallbackReached |
Protected Types | |
| typedef std::pair< int, DtString > | DtMMapPair |
| typedef std::pair< DtString, int > | DtFomCompPair |
| typedef std::pair< DtString, DtString > | DtFomFilePair |
| typedef std::pair< DtString, DtString > | DtFileFomPair |
Protected Member Functions | |
| DtFederateMgr (DtRIDParameters *params, DtRtiAmbassadorBaseImplementor *ambImplPtr, DtConnectionMgr *connMgr, DtBoost::shared_ptr< DtRtiAssistantLrcClient > assistantClient) | |
| Constructor. More... | |
| virtual void | sendAlive () |
| Send the alive message. More... | |
| virtual void | sendResignMsg (const char *fedExName, DtFederateHandle fedHandle, DtResignAction action) |
| Send the resign message. More... | |
| void | sendTickedMsg () |
| Send the signal ticked message. More... | |
| virtual void | applyRidParameters () |
| Apply RID parameters. More... | |
| virtual MAKRti::DtFilename | fedFileNameToUse (MAKRti::DtString fileName, MAKRti::DtString executionName) |
| Utility function, finds fed file name to use based on fed file name and exeution name. More... | |
| virtual int | mapFomDepComplexity (DtString fomFileName) |
| virtual void | mapFomNameToFileName (std::vector< DtString > *fomFileNames) |
| virtual void | sortFomFileNames (std::vector< DtString > *fomFileNames) |
| virtual void | testReadFedFile (MAKRti::DtString fileName, MAKRti::DtString executionName) |
| Attempts to read a fed file but does not fill in the fom class. More... | |
| virtual void | readFedFile (MAKRti::DtString fileName, MAKRti::DtString executionName) |
| Reads a FED file into a DtFomClassMgr object. More... | |
| virtual void | readFedFilePtr (const FILE *fp, const MAKRti::DtString &fileName, const MAKRti::DtString &executionName) |
| Reads a FED file into a DtFomClassMgr object. More... | |
| virtual void | addFedExNameMapping (const MAKRti::DtString &execName, const MAKRti::DtString &timeImplName, const MAKRti::DtString &fed) |
| Add mapping between federation execution name, time Impl Name and fed file name. More... | |
| virtual void | addFomModuleNameMapping (const MAKRti::DtString executionName, const std::vector< MAKRti::DtString > &modules) |
| virtual void | addFomModuleNameMapping (const MAKRti::DtString executionName, const MAKRti::DtString &modules) |
| virtual DtResignAction | testResign (RTI::ResignAction theAction) |
| Test the resign action and return the internal representation. More... | |
| virtual void | postJoinInit (const char *federateType, const char *executionName, const char *federateName, RTI::FederateAmbassador *federateAmbassadorReference) |
| Uses the given information to initialize federate data. More... | |
| virtual void | postJoinConfirmInit () |
| virtual MAKRti::DtResignAction | convertResignAction (RTI::ResignAction) const |
| virtual RTI::ResignAction | convertResignAction (MAKRti::DtResignAction) const |
| DtFedReader * | getReader (DtFomType theFomType, DtFomClassMgr *target) |
| DtFedReader * | getReader (DtFomType theFomType) |
| void | addToParsedFomMap (DtFedReader *myFedReader, const MAKRti::DtString &fileNameToUse, DtFomClassMgr *fedTarget, unsigned long theCrc=0) |
MessageHandling | |
Process federation management messages Registered callback call these methods | |
| virtual void | processResign (const DtResignMsg &msg) |
| Process resign message. More... | |
| virtual void | processEnableDisableNetworkTesting (const DtEnableDisableNetworkTestingMsg &msg) |
| disable network testing More... | |
| virtual void | processSaveInitiate (const DtSaveInitiateMsg &msg) |
| Process save initiate message. More... | |
| virtual void | processSaveResponse (const DtSaveResponseMsg &msg) |
| Process save resonse message. More... | |
| virtual void | processSaveFinished (const DtSaveFinishedMsg &msg) |
| Process save finished message. More... | |
| virtual void | processRestoreReply (const DtRestoreReplyMsg &msg) |
| Process restore reply message. More... | |
| virtual void | processRestoreInitiate (const DtRestoreInitiateMsg &msg) |
| Process restore initiate message. More... | |
| virtual void | processRestoreEnd (const DtRestoreEndMsg &msg) |
| Process restore end message. More... | |
| virtual void | processRestore (const DtRestoreMsg &msg) |
| Process restore message. More... | |
AssistantMessageHandling | |
Process assistant messages Registered callback call these methods | |
| virtual void | processAssistantResign (const DtAssistantExitMsg &msg) |
| Process resign message from Assistant. More... | |
| virtual void | processAssistantEnableLogging (const DtAssistantLogEnableMsg &msg) |
| Process resign message from Assistant. More... | |
| virtual void | processSignalTickInterval (const DtAssistantFederateSignalTickIntervalMsg &msg) |
| Process a change in the interval at which a federate is expected to tick. More... | |
| virtual void | processRidParamRequest (const DtAssistantRidParamsMsg &msg) |
| Process a RID parameter request from the Assistant. More... | |
CreateManager | |
Create various managers | |
| virtual void | createObjectMgr () |
| Create the Object Manager. More... | |
| virtual void | createInteractionMgr () |
| Create the Interaction Manager. More... | |
| virtual void | createDdmMgr () |
| Create the DDM Manager. More... | |
| virtual void | createTimeMgr () |
| Create the Time manager. More... | |
| virtual void | createMomMgr () |
| Create the MOM Manager. More... | |
| virtual void | createTestMgr () |
| Create the test Manager. More... | |
Static Protected Member Functions | |
MessageCallbacks | |
Register these callbacks methods with connection manager. Pass this manager as the user data. | |
| static void | processResign (const DtResignMsg &msg, void *usr) |
| resign message callback More... | |
| static void | processEnableDisableNetworkTesting (const DtEnableDisableNetworkTestingMsg &msg, void *usr) |
| process enable / disable network testing callback More... | |
| static void | processSaveInitiate (const DtSaveInitiateMsg &msg, void *usr) |
| save initiate message callback More... | |
| static void | processSaveResponse (const DtSaveResponseMsg &msg, void *usr) |
| save response message callback More... | |
| static void | processSaveFinished (const DtSaveFinishedMsg &msg, void *usr) |
| save finished message callback More... | |
| static void | processRestoreReply (const DtRestoreReplyMsg &msg, void *usr) |
| restore reply message callback More... | |
| static void | processRestore (const DtRestoreMsg &msg, void *usr) |
| restore message callback More... | |
| static void | processRestoreInitiate (const DtRestoreInitiateMsg &msg, void *usr) |
| restore initiate message callback More... | |
| static void | processRestoreEnd (const DtRestoreEndMsg &msg, void *usr) |
| restore end message callback More... | |
AssistantMessageCallbacks | |
Register these callbacks methods with the assistant client. Pass this manager as the user data. | |
| static void | processAssistantResign (const DtAssistantExitMsg &msg, void *usr) |
| Assistant resign message callback. More... | |
| static void | processAssistantEnableLogging (const DtAssistantLogEnableMsg &msg, void *usr) |
| Assistant logging enable message callback. More... | |
| static void | processSignalTickInterval (const DtAssistantFederateSignalTickIntervalMsg &msg, void *usr) |
| Assistant signal tick interval message callback. More... | |
| static void | processRidParamRequest (const DtAssistantRidParamsMsg &msg, void *usr) |
| Assistant RID parameter request message callback. More... | |
Protected Attributes | |
| RTI::RTIambassador * | myRtiAmb |
| The federate's RTI Ambassador. More... | |
| DtRtiAmbassadorBaseImplementor * | myAmbImpl |
| The federate's RTI Ambassador Implementor. More... | |
| MAKRti::DtTime | myResponseInterval |
| Interval to wait for response message during a message protocol. More... | |
| MAKRti::DtString | myFedExName |
| Federation execution name. More... | |
| unsigned long | myFedExHandle |
| Federation handle. More... | |
| MAKRti::DtString | myFedType |
| Federate type. More... | |
| MAKRti::DtString | myFedName |
| Federate name. More... | |
| DtFederateHandle | myFedHandle |
| Federate handle. More... | |
| MAKRti::DtString | myCurrentFedFileName |
| Current FED/FDD file name. More... | |
| MAKRti::DtString | myMimName |
| MIM name. More... | |
| MAKRti::DtString | myCurrentTimeImplName |
| Current time implementation name. More... | |
| MAKRti::DtTime | myLastHeartbeat |
| Time of last heartbeat. More... | |
| DtLogicalTimeFactory * | myLogicalTimeFactory |
| Logical time factory Even if NULL, need to have this factory. More... | |
| RTI::FedTimeFactory | myHlaTimeFactory |
| DtFedAmbWrapper * | myPrinter |
| Prints data for federate ambassador calls. More... | |
| DtFedAmbWrapper * | myFedAmbCatch |
| Catches exceptions from federate ambassador calls. More... | |
| DtRIDParameters * | myParams |
| Initialization data. More... | |
| DtFedReader * | myFedReader |
| Temporary internal reader used until changes made to VR-Link fed reader. More... | |
| DtFedReader * | myFedReader13 |
| DtFedReader * | myFedReader1516 |
| DtFedReader * | myFedReader1516e |
| MAKRti::DtList | myMappingList |
| List of federation execution names with FED files names and time implementation names. More... | |
| std::map< MAKRti::DtString, std::set< MAKRti::DtString > > | myFedFileNames |
| DtParsedFomsMap | myParsedFoms |
| Map containing FOMs parsed into FedTargets. More... | |
| DtComplexToFomsMMap | myComplexToFomsMMap |
| DtFomToComplexMap | myFomToComplexMap |
| DtFomNameToFileNameMap | myFomToFileMap |
| DtFileNameToFomNameMap | myFileToFomMap |
| DtBoost::shared_ptr < DtRtiAssistantLrcClient > | myAssistantClient |
| Manages the connection to the RTI Assistant. More... | |
| bool | myIgnoreForcedResign |
| Prevents forcing duplicate resign. More... | |
| bool | myForcedToResign |
| Indicates forced resign occurred. More... | |
| bool | myMomResign |
| Indicates MOM caused resign. More... | |
| bool | myMomSaveEvokeCallbacks |
| State of evoking callbacks prior to MOM resign. More... | |
| bool | myResignInProgress |
| Indicates a resign is in progress. More... | |
| MAKRti::DtClock | myClock |
| Clock for timing. More... | |
| unsigned long | myTickCount |
| Tick counter. More... | |
| bool | myIsTicking |
| indicates currently processing tick More... | |
| bool | myEnableFederateHeartbeat |
| is heartbeating enabled? More... | |
| unsigned long | myFlags |
| DtTestManager * | myTestMgr |
| bool | myNetworkTestEnabled |
| float | mySignalTickInterval |
| The Signal Tick Interval. More... | |
| DtTime | myLastTickTime |
| The last tick time. More... | |
| DtPostTickCallbackMap | myPostTickCallbacks |
| MAKRti::DtFilename | myStandardMimPath |
| std::map< MAKRti::DtString, DtFederateHandle > | myFederateNameToHandle |
| std::map< DtFederateHandle, MAKRti::DtString > | myFederateHandleToName |
| MAKRti::DtResignAction | myResignAction |
| The resign action. More... | |
| DtFomSorter | myFomSorter |
ManagerAccess | |
Access to various manager components | |
| DtConnectionMgr * | myConnectMgr |
| The connection manager. More... | |
| DtFomClassMgr * | myFom |
| The FOM manager. More... | |
| DtInteractionMgr * | myInterMgr |
| The interaction manager. More... | |
| DtObjectMgr * | myObjMgr |
| The object manager. More... | |
| DtMomMgr * | myMomMgr |
| The MOM manager. More... | |
SaveRestoreData | |
Data used for processing save and restore. | |
| bool | mySaveInitiated |
| Indicates save initiated. More... | |
| bool | mySaveBegun |
| Indicates save begun. More... | |
| bool | myRestoreRequested |
| Indicates restore requested. More... | |
| bool | myRestoreInitiated |
| Indicates restore initiated. More... | |
| bool | myRestoreBegun |
| Indicates restore begun. More... | |
| MAKRti::DtString | mySaveLabel |
| The save label. More... | |
| MAKRti::DtString | myLastSaveLabel |
| The last save label. More... | |
| MAKRti::DtString | myRestoreLabel |
| The restore label. More... | |
| MAKRti::DtString | myLastRestoreLabel |
| The last restore label. More... | |
Static Protected Attributes | |
| static DtFederateMgrCreator | theCreator |
| The plugin creator. More... | |
| static DtFederateMgrCreator | theInternalCreator |
| The internal creator. More... | |
Private Member Functions | |
| DtFederateMgr (DtFederateMgr const &) | |
| Copy Constructor not implemented – Copy Not Allowed! More... | |
| DtFederateMgr & | operator= (DtFederateMgr const &) |
| Assignment not implemented – Assignment Not Allowed! More... | |
Instances of DtFederateMgr process federation-level messages (such as create, destroy, join, resign, and sync points) and manages the objects responsible for handling general communication, objects, interactions, the FOM, MOM, and data distribution mmg.
Users should generally not need to override this class directly. Instead, they should override either DtRtiExecFederateMgr (which is instantiated when using the rtiexec) or DtSimpleFederateMgr (which is used when LRCs communicate peer to peer). To inspect federation data, users can obtain a pointer to an instance of this class through the RTI's DtRtiAmbassadorBaseImplementor instance.
| typedef std::multimap< int, DtString > DtFederateMgr::DtComplexToFomsMMap |
| typedef DtFederateMgr*(* DtFederateMgr::DtFederateMgrCreator)(DtRIDParameters *ridParams, DtRtiAmbassadorBaseImplementor *ambImplPtr, DtConnectionMgr *connMgr, DtBoost::shared_ptr< DtRtiAssistantLrcClient > assistantClient) |
Federate manager creator.
| typedef void(* DtFederateMgr::DtFedMgrPostTickCallbackFcn)(void *) |
| typedef std::pair< DtFedMgrPostTickCallbackFcn, void* > DtFederateMgr::DtFedMgrPostTickCallbackInfo |
|
protected |
| typedef std::map< MAKRti::DtString, std::pair< char*, int > > DtFederateMgr::DtFileNameToDataMap |
| typedef std::map< DtString, DtString > DtFederateMgr::DtFileNameToFomNameMap |
|
protected |
|
protected |
| typedef std::map< DtString, DtString > DtFederateMgr::DtFomNameToFileNameMap |
| typedef std::map< DtString, int > DtFederateMgr::DtFomToComplexMap |
|
protected |
| typedef std::map< MAKRti::DtString, DtFomClassMgr* > DtFederateMgr::DtParsedFomsMap |
| typedef std::map< MAKRti::DtString, DtFedMgrPostTickCallbackInfo > DtFederateMgr::DtPostTickCallbackMap |
|
protected |
Constructor.
|
virtual |
Destructor.
|
private |
Copy Constructor not implemented – Copy Not Allowed!
|
protectedvirtual |
Add mapping between federation execution name, time Impl Name and fed file name.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
protected |
|
protectedvirtual |
Apply RID parameters.
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
Access to the RTI Assistant client.
|
virtual |
|
virtual |
HLA 1.3 does not have the ability to reserve an object name, so this function allows us to implici.
| DtResignAction DtFederateMgr::automaticResignDirective | ( | ) | const |
|
virtual |
Access to the connection manager.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
static |
A Federate Manager instance is created, initialized, and its pointer is returned.
A registered creator is used if present; otherwise, an internal class is instantiated. Note: A NULL pointer will be returned unless a plugin or internal creator is set because this class is abstract.
|
protectedvirtual |
Create the DDM Manager.
|
pure virtual |
Process the create federation execution service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
protectedvirtual |
Create the Interaction Manager.
|
protectedvirtual |
Create the MOM Manager.
|
protectedvirtual |
Create the Object Manager.
|
protectedvirtual |
Create the test Manager.
|
protectedvirtual |
Create the Time manager.
| const MAKRti::DtString& DtFederateMgr::currentFedFileName | ( | ) | const |
get/set current FED file name
| const MAKRti::DtString& DtFederateMgr::currentTimeImplName | ( | ) | const |
get/set current time implementation name
|
pure virtual |
Process the destroy federation execution service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
virtual |
Access to the Federate Ambassador submitted by the federate.
|
virtual |
Get the federate handle.
|
pure virtual |
Process the federate restore complete service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
pure virtual |
Process the federate restore not complete service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
pure virtual |
Process the federate save begun service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
pure virtual |
Process the federate save complete service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
pure virtual |
Process the federate save not complete service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
virtual |
Get the federation execution handle.
|
virtual |
Get the federation execution name.
|
virtual |
Return the .fed file name associated with the federation execution name.
If none has been registered using addFedExNameMapping, we use <execName>.fed.
|
protectedvirtual |
Utility function, finds fed file name to use based on fed file name and exeution name.
Back-compat with pre-1.3.6 releases, where FED file name does not come in a join response message.
|
virtual |
Get the federate name (HLA Evolved)
|
virtual |
Get the federate type.
| unsigned long DtFederateMgr::flags | ( | ) | const |
|
virtual |
Access to the fom.
|
virtual |
|
virtual |
Return bool: Was federate forced to resign?
|
virtual |
|
virtual |
Get Federate Name / Handle from Handle / Name.
|
virtual |
Get order handle service.
|
virtual |
Get order name service.
|
protected |
|
protected |
|
virtual |
Create a restore file name from the label and return in supplied parameter.
The default name is extended if a file with that name already exists. Name extension can be turned off using the supplied parameter. Returns a reference to the supplied file name parameter
|
virtual |
Create a save file name from the label and return in supplied parameter.
The default name is extended if a file with that name already exists. Name extension can be turned off using the supplied parameter. Returns a reference to the supplied file name parameter
|
virtual |
Get transport handle service.
|
virtual |
Get transport name service.
|
virtual |
Virtual initialization within create.
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
Perform the actual save possibly after waiting to enter time advancing state.
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
Save is initiated possibly after waiting to enter time advancing state.
Provide time of save.
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
Access to the interaction mgr.
|
virtual |
|
virtual |
Return boolean: federate is joined?
|
virtual |
Return bool: Is the federate handle known to be in the federation.
|
virtual |
Return true if currently processing tick.
|
pure virtual |
Process the join federation execution service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
virtual |
return last restore label
|
virtual |
Set/Get last save label.
|
protectedvirtual |
|
protectedvirtual |
| const MAKRti::DtString& DtFederateMgr::mimName | ( | ) | const |
get/set MIM name
|
virtual |
Access to the object mgr.
|
virtual |
|
private |
Assignment not implemented – Assignment Not Allowed!
|
virtual |
Access to the RID parameters.
|
virtual |
|
protectedvirtual |
Reimplemented in DtRtiExecFederateMgr.
|
protectedvirtual |
Uses the given information to initialize federate data.
DtFomClassMgr needs to be initialized before this function is called.
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
|
virtual |
|
protectedvirtual |
Process resign message from Assistant.
|
staticprotected |
Assistant logging enable message callback.
|
protectedvirtual |
Process resign message from Assistant.
|
staticprotected |
Assistant resign message callback.
|
protectedvirtual |
disable network testing
|
staticprotected |
process enable / disable network testing callback
|
protectedvirtual |
Process resign message.
|
staticprotected |
resign message callback
|
protectedvirtual |
Process restore message.
Reimplemented in DtRtiExecFederateMgr.
|
staticprotected |
restore message callback
|
protectedvirtual |
Process restore end message.
Reimplemented in DtRtiExecFederateMgr.
|
staticprotected |
restore end message callback
|
protectedvirtual |
Process restore initiate message.
Reimplemented in DtRtiExecFederateMgr.
|
staticprotected |
restore initiate message callback
|
protectedvirtual |
Process restore reply message.
Reimplemented in DtRtiExecFederateMgr.
|
staticprotected |
restore reply message callback
|
protectedvirtual |
Process a RID parameter request from the Assistant.
|
staticprotected |
Assistant RID parameter request message callback.
|
protectedvirtual |
Process save finished message.
Reimplemented in DtRtiExecFederateMgr.
|
staticprotected |
save finished message callback
|
protectedvirtual |
Process save initiate message.
Reimplemented in DtRtiExecFederateMgr.
|
staticprotected |
save initiate message callback
|
protectedvirtual |
Process save resonse message.
Reimplemented in DtRtiExecFederateMgr.
|
staticprotected |
save response message callback
|
protectedvirtual |
Process a change in the interval at which a federate is expected to tick.
|
staticprotected |
Assistant signal tick interval message callback.
|
protectedvirtual |
Reads a FED file into a DtFomClassMgr object.
If fileName = "", this class will try to read in a file with the name <executionName>.fed
|
protectedvirtual |
Reads a FED file into a DtFomClassMgr object.
This form is preferred when using the distributed Fed File option.
|
pure virtual |
Process the register federation synchronization point service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
pure virtual |
Process the register federation synchronization point service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
virtual |
|
virtual |
Report results of a latency test.
|
virtual |
Report current latency test status.
|
pure virtual |
Process the request federation restore service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
pure virtual |
Process the requested federation save service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
virtual |
Unmark that MOM is invoking resign.
|
virtual |
Process the resign federation execution service.
Reimplemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
inlinevirtual |
Perform the actual restore.
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
return bool: restore begun?
|
virtual |
return bool: restore initiated ?
|
virtual |
return current restore label
|
virtual |
return bool: restore requested?
| RTI::RTIambassador* DtFederateMgr::rtiAmb | ( | ) |
Access to the top level RTI Ambassador given to the federate.
| RTI::RTIambassador* DtFederateMgr::rtiAmb | ( | ) | const |
Access to the top level RTI Ambassador given to the federate.
|
inlinevirtual |
Perform the actual save.
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
return bool: save begun?
|
virtual |
return bool: save initiated?
|
virtual |
Set/Get save label.
|
protectedvirtual |
Send the alive message.
|
protectedvirtual |
Send the resign message.
|
protected |
Send the signal ticked message.
|
static |
Register a creator function.
When set, it will be used to create the Federate Manager.
| void DtFederateMgr::setCurrentFedFileName | ( | const MAKRti::DtString & | ) |
| void DtFederateMgr::setCurrentTimeImplName | ( | const MAKRti::DtString & | ) |
|
static |
Register alternate internal creators.
The RTI proper uses this function to choose from various internal implementations. This function should not be used by plugins as the assignment may be overridden internally. Use the setCreatorFunction.
|
virtual |
| void DtFederateMgr::setMimName | ( | const MAKRti::DtString & | ) |
|
virtual |
Marks that MOM is invoking resign.
|
virtual |
|
virtual |
Provide access to top level RTI Ambassador (and Federate Ambassador for 1516E)
|
protectedvirtual |
|
pure virtual |
Process the synchronization point achieved service.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
virtual |
Access to the test Manager.
|
virtual |
|
protectedvirtual |
Attempts to read a fed file but does not fill in the fom class.
|
protectedvirtual |
Test the resign action and return the internal representation.
|
pure virtual |
Perform exception tests on save/restore state.
Implemented in DtRtiExecFederateMgr, and DtSimpleFederateMgr.
|
virtual |
Update the state of the federation.
|
virtual |
Return the number of ticks.
|
virtual |
Access to the time factory.
|
virtual |
|
virtual |
Return the time implementation name associated with the federation execution name.
If none has been registered using addFedExNameMapping, an empty string (default implementation) is returned
|
virtual |
Wait for Resign Response.
Reimplemented in DtRtiExecFederateMgr.
|
virtual |
Wait for Resign Response.
Reimplemented in DtRtiExecFederateMgr.
|
protected |
The federate's RTI Ambassador Implementor.
|
protected |
Manages the connection to the RTI Assistant.
|
protected |
Clock for timing.
|
protected |
|
protected |
The connection manager.
|
protected |
Current FED/FDD file name.
|
protected |
Current time implementation name.
|
protected |
is heartbeating enabled?
|
protected |
Catches exceptions from federate ambassador calls.
| bool DtFederateMgr::myFedCallbackReached |
|
protected |
|
protected |
|
protected |
Federation handle.
|
protected |
Federation execution name.
|
protected |
|
protected |
Federate handle.
|
protected |
Federate name.
In HLA Evolved, the federate may choose this. In other HLA versions, the name is always assigned by the RTI.
|
protected |
Temporary internal reader used until changes made to VR-Link fed reader.
|
protected |
|
protected |
|
protected |
|
protected |
Federate type.
|
protected |
|
protected |
|
protected |
The FOM manager.
|
protected |
|
protected |
|
protected |
|
protected |
Indicates forced resign occurred.
|
protected |
|
protected |
Prevents forcing duplicate resign.
|
protected |
The interaction manager.
|
protected |
indicates currently processing tick
|
protected |
Time of last heartbeat.
|
protected |
The last restore label.
|
protected |
The last save label.
|
protected |
The last tick time.
|
protected |
Logical time factory Even if NULL, need to have this factory.
|
protected |
List of federation execution names with FED files names and time implementation names.
These names are collected when creating federation executions.
|
protected |
MIM name.
|
protected |
The MOM manager.
|
protected |
Indicates MOM caused resign.
|
protected |
State of evoking callbacks prior to MOM resign.
|
protected |
|
protected |
The object manager.
|
protected |
Initialization data.
|
protected |
Map containing FOMs parsed into FedTargets.
|
protected |
|
protected |
Prints data for federate ambassador calls.
|
protected |
The resign action.
|
protected |
Indicates a resign is in progress.
|
protected |
Interval to wait for response message during a message protocol.
|
protected |
Indicates restore begun.
|
protected |
Indicates restore initiated.
|
protected |
The restore label.
|
protected |
Indicates restore requested.
|
protected |
The federate's RTI Ambassador.
|
protected |
Indicates save begun.
|
protected |
Indicates save initiated.
|
protected |
The save label.
|
protected |
The Signal Tick Interval.
|
protected |
|
protected |
|
protected |
Tick counter.
|
staticprotected |
The plugin creator.
|
staticprotected |
The internal creator.