MAK RTIspy API Documentation for HLA 1516
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtRtiExecFederateMgr Class Reference

Instances of DtRtiExecFederateMgr process federation-level messages (such as create, destroy, join, resign, and sync points) for HLA applications that are using the rtiexec. More...

+ Inheritance diagram for DtRtiExecFederateMgr:
+ Collaboration diagram for DtRtiExecFederateMgr:

List of all members.

Public Member Functions

 DtRtiExecFederateMgr (DtRIDParameters *params, DtRtiAmbassadorBaseImplementor *ambImplPtr, DtConnectionMgr *connMgr, DtBoost::shared_ptr< DtRtiAssistantLrcClient > assistantClient)
 Constructor.
virtual ~DtRtiExecFederateMgr ()
 Destructor.
std::map< DtString,
DtSynchronousFileDistributor * > 
distributors ()
 Access to the file distributor.
std::map< DtString,
DtSynchronousFileDistributor * > 
distributors () const
DtSynchronousFileDistributorjoinDistributor ()
DtSynchronousFileDistributorjoinDistributor () const
virtual void init ()
 Virtual initialization within create.
CreateDestoryJoinResignServices

Handle the create/destroy and join/resign services

virtual void createFederationExecution (const char *executionName, const char *timeImplName, const char *fed)
 Process the create federation execution service.
virtual void destroyFederationExecution (const char *executionName)
 Process the destroy federation execution service.
virtual RTI::FederateHandle joinFederationExecution (const char *yourName, const char *executionName, RTI::FederateAmbassador *federateAmbassadorReference, unsigned long flags)
 Process the join federation execution service.
virtual void resignFederationExecution (RTI::ResignAction theAction)
 Process the resign federation execution service.
SynchronizationPointServices

Handle the synchronization point services

virtual void registerFederationSynchronizationPoint (char const *label, char const *theTag)
 Process the register synchronization point service.
virtual void registerFederationSynchronizationPoint (char const *label, char const *theTag, DtFederateHandleSet const &syncSet)
 Process the register synchronization point service.
virtual void synchronizationPointAchieved (char const *label, bool successfully=true)
 Process the synchronization point achieved service.
SaveRestoreServices

Process the save and restore services

virtual void requestFederationSave (char const *label, RTI::FedTime const *time=NULL)
 Process the request federation save service.
virtual void federateSaveBegun ()
 Process the federate save begun service.
virtual void federateSaveComplete ()
 Process the federate save complete service.
virtual void federateSaveNotComplete ()
 Process the federate save complete service.
virtual void requestFederationRestore (const char *label)
 Process the request federation restore service.
virtual void federateRestoreComplete ()
 Process the federate restore complete service.
virtual void federateRestoreNotComplete ()
 Process the federate restore complete service.

Static Public Member Functions

static DtFederateMgrcreate (DtRIDParameters *params, DtRtiAmbassadorBaseImplementor *ambImplPtr, DtConnectionMgr *connMgr, DtBoost::shared_ptr< DtRtiAssistantLrcClient > assistantClient)
 Creates an instance of this derived class;.
MessageCallbacks

Register these methods for callbacks.

Pass this manager as the user data

static void processSyncPointMsg (const DtSyncPointMsg &msg, void *usr)
 sync point message callback
static void processDesignatedFederateMsg (const DtDesignatedFederateMsg &msg, void *usr)
 designated federate message callback
static void processFomModuleFileRequestMsg (const DtFomModuleRequestMsg &msg, void *usr)
 Fom Module file distribution message callback.
static void processCreateResponseMsg (const DtCreateResponseMsg &msg, void *usr)
 Create response message callback.
static void processJoinResponseMsg (const DtJoinResponseMsg &msg, void *usr)
 Join response message callback.
static void processDestroyResponseMsg (const DtDestroyResponseMsg &msg, void *usr)
 Destroy response message callback.

Protected Member Functions

virtual void initRidTester ()
 Initialize the RidTester.
virtual void initializeDistributor (const char *executionName)
 This function will create the distributor if necessary and initialize it.
virtual void waitForJoinResponse (const char *executionName, std::vector< MAKRti::DtString > &joinModules)
 This function will wait for the join response or fail and throw.
void checkJoinResponse ()
 Check the join response and throw appropriate exception on error.
virtual void initializeTimeFactory ()
 Initialize the time factory.
virtual void initializeFOM (const char *executionName)
 Initialize the FOM.
virtual void postJoinInit (const char *yourName, const char *executionName, const char *federateName, RTI::FederateAmbassador *federateAmbassadorReference)
 Uses the given information to initialize federate data.
virtual void handleFailedJoin (unsigned long sourceID, DtJoinConfirmMsg::errorCodes code)
 Handle the join failure before throwing an exception.
virtual void setDesignatedFederate (bool isDesignated)
 Set/Get designated status of this federate's LRC.
virtual bool isDesignatedFederate ()
void appendFomModule (std::vector< MAKRti::DtString > &target, MAKRti::DtString const &source)
 Append the source FED file name into the target list, stripping the path name as it is appended into the target.
void appendFomModules (std::vector< MAKRti::DtString > &target, std::vector< MAKRti::DtString > const &source)
 Append the source FED file names into the target list, stripping the path names as they are appended into the target.
virtual bool findFedFileNameFromMapping (const MAKRti::DtString execName, const std::vector< MAKRti::DtString > &orig, std::vector< MAKRti::DtString > &namesToUse) const
 Find the full FED file path from the stripped name.
void testReadFomModules (const DtRIDParameters::DtStringList &, MAKRti::DtString executionName, bool isMim=false)
 Attempt to read modules.
virtual void mergeFomModules (const std::vector< MAKRti::DtString > *fomModules)
 Merge the given FOM Modules into the current FOM.
virtual void testSaveProgress ()
 Check for save/restore in progress exceptions.
virtual void applyRidParameters ()
 Apply RID parameters.
virtual void posttick ()
 Processing after a tick.
DtFedReader * getReader (DtFomType theFomType)
void populateWithUnknownFoms (std::vector< DtString > &mods, std::vector< DtString > &requestedMods)
bool isFomAvailable (const DtString &fomName)
void getCrcsOfFoms (std::vector< unsigned int > &moduleCrcs, const std::vector< MAKRti::DtString > &creationFomModuleNames)
MAKRti::DtFilename & getStandardMimPath ()
MessageHandling

Process federation management messages Registered callback call these methods

virtual void processSyncPointMsg (const DtSyncPointMsg &msg)
 Process a sync point message.
virtual void processDesignatedFederateMsg (const DtDesignatedFederateMsg &msg)
 Process designated federate message.
virtual void processFomModuleFileRequestMsg (const DtFomModuleRequestMsg &msg)
 Process Fom Module file distribution message.
virtual void processCreateResponseMsg (const DtCreateResponseMsg &msg)
 Process create response message.
virtual void processJoinResponseMsg (const DtJoinResponseMsg &msg)
 Process join response message.
virtual void processDestroyResponseMsg (const DtDestroyResponseMsg &msg)
 Process destroy response message.
virtual void processSaveInitiate (const DtSaveInitiateMsg &msg)
 Process the save initiate message.
virtual void processSaveInitiate (const char *label)
 Process the save initiate.
virtual void requestImmediateSave (const char *label)
 Process the immediate save message.
virtual void processSaveResponse (const DtSaveResponseMsg &msg)
 Process the save response message.
virtual void processSaveFinished (const DtSaveFinishedMsg &msg)
 Process the save finished message.
virtual void processRestoreReply (const DtRestoreReplyMsg &msg)
 Process the restore reply message.
virtual void processRestoreEnd (const DtRestoreEndMsg &msg)
 Process the restore end message.
virtual void processRestoreInitiate (const DtRestoreInitiateMsg &msg)
 Process the restore initiate message.
virtual void processRestore (const DtRestoreMsg &msg)
 Process the restore message.
SendMessages

Send messages of different types

virtual void sendCreateMsg (MAKRti::DtString const &fedExNameVal, MAKRti::DtString const &timeImplName, const std::vector< unsigned int > &moduleCrcs, MAKRti::DtFomType fedType, MAKRti::DtString const &momModuleName, const std::vector< MAKRti::DtString > &fomModules, unsigned int momModuleCrc)
 Send create federation message.
virtual void sendDestroyMsg (const char *name)
 Send destroy federation message.
virtual void sendJoinMsg (unsigned long sourceID, unsigned short requestID, const char *fedType, const char *fedExName, const char *fedName, const std::vector< MAKRti::DtString > &fomModules, const unsigned long flags, const std::vector< unsigned int > &joinModulesCrcs)
 Send join federation message.
virtual void sendJoinConfirmMsg (unsigned long sourceID, DtJoinConfirmMsg::errorCodes errorCode)
 Send join federation confirm message.
virtual void sendSyncPointMsg (DtSyncMsgType kind, DtFederateHandle &id, char const *name, char const *tag=NULL, DtFederateHandleSet const *set=NULL)
 Send synchronization point message.
virtual void sendSaveRequestMsg (unsigned long requestID, const char *label)
 Send save federation request message.
virtual void sendSaveBegunMsg ()
 Send save federate begun message.
virtual void sendSaveCompleteMsg (const char *label, bool success)
 Send federate complete message.
virtual void sendRestoreRequestMsg (const char *label)
 Send restore federation request message.
virtual void sendRestoreBegunMsg (const char *label, DtResponseFlag response)
 Send restore federate begun message.
virtual void sendRestoreCompleteMsg (const char *label, bool success)
 Send restore federate complete message.
SaveRestoreHelpers

Helper methods to process save and restore

virtual void initiateSave ()
 Perform the actual save possibly after waiting to enter time advancing state.
virtual void initiateTimedSave (RTI::FedTime const &saveTime)
 Perform the actual save possibly after waiting to enter time advancing state.
virtual bool saveLRC (DtRtiSaveFile &saveFile)
 Save the LRC state information.
virtual bool save (DtRtiSaveFile &file)
 Save the federation manager state information to the given file.
virtual void prepareToRestoreLRC ()
 Prepare the state information of the LRC for a restore (may include a back up save in case restore fails).
virtual bool restoreLRC (DtRtiSaveFile &saveFile)
 Restore the LRC state information Return bool: restore successful?
virtual void prepareToRestore ()
 Prepare the state information to be restored (i.e., clear out existing data).
virtual bool restore (DtRtiSaveFile &file)
 Restore the federation manager state information from the given file.

Protected Attributes

std::map< DtString,
DtSynchronousFileDistributor * > 
myDistributors
 federate Fed File Distributors.
DtSynchronousFileDistributormyJoinDistributor
 The Fed File Distributor of the joined federation execution.
DtCreateResponseFlag myCreateResponse
 Status of create federation.
MAKRti::DtString myCreateResponseErrorString
 Error String of create federation.
DtDestroyResponseFlag myDestroyResponse
 Status of destroy federation.
DtJoinResponseMsgmyJoinResponse
 Copy of join response.
DtJoinConfirmMsg::errorCodes myJoinConfirmResponse
 Status of join confirm.
MAKRti::DtString myDestroyExecutionName
 Name of federation to destroy.
bool myFedFileRequest
 Status of fed file request.
std::vector< MAKRti::DtString > myFomModuleRequests
 Queue of modules requested.
unsigned short myJoinRequestID
 Join request ID.
unsigned long mySaveRequestID
 Save request ID.
DtSaveResponseFlag mySaveResponse
 Save response status.
MAKRti::DtHashList mySyncPoints
 MAKRti::DtHashList of DtStringHashKeys representing synch point names that have been announced to us.
std::string * myFailedSyncPointLabel
 Failed sync point request.
DtFederateHandle myOldFedHandle
 during a restore the fedhandle changes.
bool myIsDesignatedFederate
 This federate LRC is designated for handling some federation wide tasks (e.g., MOM Federation attribute ownership)
vrlmod::DtThreadedObjectmyDistributorThread
 Should we use local or distributed fed file?
bool myAsynchronousDistributor
std::map< MAKRti::DtString,
DtFileInformation * > 
myTakenFiles
 until requester takes them.
DtFedReader13 * myFedReader13
DtFedReader1516 * myFedReader1516
DtFedReader1516e * myFedReader1516e
MAKRti::DtFilename myStandardMimPath
bool myFullFedFileDistribution

Private Member Functions

 DtRtiExecFederateMgr (DtFederateMgr const &)
 Copy Constructor not implemented -- Copy Not Allowed!
DtRtiExecFederateMgroperator= (DtRtiExecFederateMgr const &)
 Assignment not implemented -- Assignment Not Allowed!

Detailed Description

Instances of DtRtiExecFederateMgr process federation-level messages (such as create, destroy, join, resign, and sync points) for HLA applications that are using the rtiexec.

It also manages the manager objects responsible for handling general communication, objects, interactions, the FOM, MOM, and data distribution mmg. Override this class if you want to change how federation-level messages get processed. To inspect federation data, users can obtain a pointer to an instance of this class through the RTI's DtRtiAmbassadorImplementor pointer.


Constructor & Destructor Documentation

DtRtiExecFederateMgr::DtRtiExecFederateMgr ( DtRIDParameters params,
DtRtiAmbassadorBaseImplementor ambImplPtr,
DtConnectionMgr connMgr,
DtBoost::shared_ptr< DtRtiAssistantLrcClient assistantClient 
)

Constructor.

References DtRIDParameters::fullFedFileDistribution, and myFullFedFileDistribution.

Referenced by create().

Copy Constructor not implemented -- Copy Not Allowed!


Member Function Documentation

void DtRtiExecFederateMgr::appendFomModule ( std::vector< MAKRti::DtString > &  target,
MAKRti::DtString const &  source 
) [protected]

Append the source FED file name into the target list, stripping the path name as it is appended into the target.

void DtRtiExecFederateMgr::appendFomModules ( std::vector< MAKRti::DtString > &  target,
std::vector< MAKRti::DtString > const &  source 
) [protected]

Append the source FED file names into the target list, stripping the path names as they are appended into the target.

void DtRtiExecFederateMgr::applyRidParameters ( ) [protected, virtual]
DtFederateMgr * DtRtiExecFederateMgr::create ( DtRIDParameters params,
DtRtiAmbassadorBaseImplementor ambImplPtr,
DtConnectionMgr connMgr,
DtBoost::shared_ptr< DtRtiAssistantLrcClient assistantClient 
) [static]

Creates an instance of this derived class;.

Reimplemented from DtFederateMgr.

References DtRtiExecFederateMgr().

Referenced by DtRtiAmbassadorBaseImplementor::completeConnection(), and mergeFomModules().

void DtRtiExecFederateMgr::createFederationExecution ( const char *  executionName,
const char *  timeImplName,
const char *  fed 
) [virtual]
void DtRtiExecFederateMgr::destroyFederationExecution ( const char *  executionName) [virtual]

Access to the file distributor.

References myDistributors.

Referenced by initializeFOM(), and waitForJoinResponse().

References myDistributors.

Process the federate restore complete service.

Implements DtFederateMgr.

References DtFederateMgr::myRestoreLabel, and sendRestoreCompleteMsg().

Process the federate restore complete service.

Implements DtFederateMgr.

References DtFederateMgr::myRestoreLabel, and sendRestoreCompleteMsg().

Referenced by processRestoreInitiate().

Process the federate save begun service.

Implements DtFederateMgr.

References DtFederateMgr::mySaveBegun, and sendSaveBegunMsg().

bool DtRtiExecFederateMgr::findFedFileNameFromMapping ( const MAKRti::DtString  execName,
const std::vector< MAKRti::DtString > &  orig,
std::vector< MAKRti::DtString > &  namesToUse 
) const [protected, virtual]

Find the full FED file path from the stripped name.

References DtFederateMgr::myFedFileNames.

Referenced by initializeFOM(), and waitForJoinResponse().

void DtRtiExecFederateMgr::getCrcsOfFoms ( std::vector< unsigned int > &  moduleCrcs,
const std::vector< MAKRti::DtString > &  creationFomModuleNames 
) [protected]
DtFedReader * DtRtiExecFederateMgr::getReader ( DtFomType  theFomType) [protected]
MAKRti::DtFilename & DtRtiExecFederateMgr::getStandardMimPath ( ) [protected]
void DtRtiExecFederateMgr::handleFailedJoin ( unsigned long  sourceID,
DtJoinConfirmMsg::errorCodes  code 
) [protected, virtual]
void DtRtiExecFederateMgr::init ( ) [virtual]
void DtRtiExecFederateMgr::initializeDistributor ( const char *  executionName) [protected, virtual]

This function will create the distributor if necessary and initialize it.

References DtFederateMgr::myConnectMgr, myDistributors, myFedFileRequest, and DtFederateMgr::params().

void DtRtiExecFederateMgr::initializeFOM ( const char *  executionName) [protected, virtual]
void DtRtiExecFederateMgr::initializeTimeFactory ( ) [protected, virtual]
void DtRtiExecFederateMgr::initiateSave ( ) [protected, virtual]
void DtRtiExecFederateMgr::initiateTimedSave ( RTI::FedTime const &  saveTime) [protected, virtual]

Perform the actual save possibly after waiting to enter time advancing state.

Provide time of save.

Reimplemented from DtFederateMgr.

References initiateSave().

void DtRtiExecFederateMgr::initRidTester ( ) [protected, virtual]
bool DtRtiExecFederateMgr::isFomAvailable ( const DtString &  fomName) [protected]

References myJoinDistributor.

Referenced by mergeFomModules(), and posttick().

References myJoinDistributor.

RTI::FederateHandle DtRtiExecFederateMgr::joinFederationExecution ( const char *  yourName,
const char *  executionName,
RTI::FederateAmbassador federateAmbassadorReference,
unsigned long  flags 
) [virtual]
void DtRtiExecFederateMgr::mergeFomModules ( const std::vector< MAKRti::DtString > *  fomModules) [protected, virtual]
DtRtiExecFederateMgr& DtRtiExecFederateMgr::operator= ( DtRtiExecFederateMgr const &  ) [private]

Assignment not implemented -- Assignment Not Allowed!

void DtRtiExecFederateMgr::populateWithUnknownFoms ( std::vector< DtString > &  mods,
std::vector< DtString > &  requestedMods 
) [protected]

References isFomAvailable().

Referenced by initializeFOM().

void DtRtiExecFederateMgr::postJoinInit ( const char *  yourName,
const char *  executionName,
const char *  federateName,
RTI::FederateAmbassador federateAmbassadorReference 
) [protected, virtual]

Uses the given information to initialize federate data.

DtFomClassMgr needs to be initialized before this function is called.

Reimplemented from DtFederateMgr.

References DtDesignatedFederateMsg::addCallback(), DtSyncPointMsg::addCallback(), DtJoinConfirmMsg::DtNoError, and DtFederateMgr::postJoinInit().

void DtRtiExecFederateMgr::posttick ( ) [protected, virtual]
void DtRtiExecFederateMgr::prepareToRestore ( ) [protected, virtual]

Prepare the state information to be restored (i.e., clear out existing data).

Referenced by prepareToRestoreLRC().

void DtRtiExecFederateMgr::prepareToRestoreLRC ( ) [protected, virtual]
void DtRtiExecFederateMgr::processCreateResponseMsg ( const DtCreateResponseMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processCreateResponseMsg ( const DtCreateResponseMsg msg,
void *  usr 
) [static]

Create response message callback.

void DtRtiExecFederateMgr::processDesignatedFederateMsg ( const DtDesignatedFederateMsg msg,
void *  usr 
) [static]

designated federate message callback

void DtRtiExecFederateMgr::processDestroyResponseMsg ( const DtDestroyResponseMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processDestroyResponseMsg ( const DtDestroyResponseMsg msg,
void *  usr 
) [static]

Destroy response message callback.

void DtRtiExecFederateMgr::processFomModuleFileRequestMsg ( const DtFomModuleRequestMsg msg,
void *  usr 
) [static]

Fom Module file distribution message callback.

void DtRtiExecFederateMgr::processJoinResponseMsg ( const DtJoinResponseMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processJoinResponseMsg ( const DtJoinResponseMsg msg,
void *  usr 
) [static]

Join response message callback.

void DtRtiExecFederateMgr::processRestore ( const DtRestoreMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processRestoreEnd ( const DtRestoreEndMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processRestoreInitiate ( const DtRestoreInitiateMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processRestoreReply ( const DtRestoreReplyMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processSaveFinished ( const DtSaveFinishedMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processSaveInitiate ( const DtSaveInitiateMsg msg) [protected, virtual]

Process the save initiate message.

Reimplemented from DtFederateMgr.

References DtSaveMsg::label().

void DtRtiExecFederateMgr::processSaveInitiate ( const char *  label) [protected, virtual]
void DtRtiExecFederateMgr::processSaveResponse ( const DtSaveResponseMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processSyncPointMsg ( const DtSyncPointMsg msg) [protected, virtual]
void DtRtiExecFederateMgr::processSyncPointMsg ( const DtSyncPointMsg msg,
void *  usr 
) [static]

sync point message callback

void DtRtiExecFederateMgr::registerFederationSynchronizationPoint ( char const *  label,
char const *  theTag 
) [virtual]

Process the register synchronization point service.

Implements DtFederateMgr.

References DtRegister, myFailedSyncPointLabel, DtFederateMgr::myFedHandle, mySyncPoints, and sendSyncPointMsg().

void DtRtiExecFederateMgr::registerFederationSynchronizationPoint ( char const *  label,
char const *  theTag,
DtFederateHandleSet const &  syncSet 
) [virtual]

Process the register synchronization point service.

Implements DtFederateMgr.

References DtRegister, myFailedSyncPointLabel, DtFederateMgr::myFedHandle, mySyncPoints, and sendSyncPointMsg().

void DtRtiExecFederateMgr::requestFederationRestore ( const char *  label) [virtual]

Process the request federation restore service.

Implements DtFederateMgr.

References DtFederateMgr::myRestoreLabel, DtFederateMgr::myRestoreRequested, and sendRestoreRequestMsg().

void DtRtiExecFederateMgr::requestFederationSave ( char const *  label,
RTI::FedTime const *  time = NULL 
) [virtual]

Process the request federation save service.

Implements DtFederateMgr.

References DtFederateMgr::mySaveLabel, and requestImmediateSave().

void DtRtiExecFederateMgr::requestImmediateSave ( const char *  label) [protected, virtual]
bool DtRtiExecFederateMgr::restore ( DtRtiSaveFile file) [protected, virtual]
bool DtRtiExecFederateMgr::restoreLRC ( DtRtiSaveFile saveFile) [protected, virtual]
bool DtRtiExecFederateMgr::save ( DtRtiSaveFile file) [protected, virtual]
bool DtRtiExecFederateMgr::saveLRC ( DtRtiSaveFile saveFile) [protected, virtual]
void DtRtiExecFederateMgr::sendCreateMsg ( MAKRti::DtString const &  fedExNameVal,
MAKRti::DtString const &  timeImplName,
const std::vector< unsigned int > &  moduleCrcs,
MAKRti::DtFomType  fedType,
MAKRti::DtString const &  momModuleName,
const std::vector< MAKRti::DtString > &  fomModules,
unsigned int  momModuleCrc 
) [protected, virtual]
void DtRtiExecFederateMgr::sendDestroyMsg ( const char *  name) [protected, virtual]
void DtRtiExecFederateMgr::sendJoinConfirmMsg ( unsigned long  sourceID,
DtJoinConfirmMsg::errorCodes  errorCode 
) [protected, virtual]
void DtRtiExecFederateMgr::sendJoinMsg ( unsigned long  sourceID,
unsigned short  requestID,
const char *  fedType,
const char *  fedExName,
const char *  fedName,
const std::vector< MAKRti::DtString > &  fomModules,
const unsigned long  flags,
const std::vector< unsigned int > &  joinModulesCrcs 
) [protected, virtual]
void DtRtiExecFederateMgr::sendRestoreBegunMsg ( const char *  label,
DtResponseFlag  response 
) [protected, virtual]
void DtRtiExecFederateMgr::sendRestoreCompleteMsg ( const char *  label,
bool  success 
) [protected, virtual]
void DtRtiExecFederateMgr::sendRestoreRequestMsg ( const char *  label) [protected, virtual]
void DtRtiExecFederateMgr::sendSaveBegunMsg ( ) [protected, virtual]
void DtRtiExecFederateMgr::sendSaveCompleteMsg ( const char *  label,
bool  success 
) [protected, virtual]
void DtRtiExecFederateMgr::sendSaveRequestMsg ( unsigned long  requestID,
const char *  label 
) [protected, virtual]
void DtRtiExecFederateMgr::sendSyncPointMsg ( DtSyncMsgType  kind,
DtFederateHandle id,
char const *  name,
char const *  tag = NULL,
DtFederateHandleSet const *  set = NULL 
) [protected, virtual]
void DtRtiExecFederateMgr::setDesignatedFederate ( bool  isDesignated) [protected, virtual]

Set/Get designated status of this federate's LRC.

References myIsDesignatedFederate.

Referenced by processDesignatedFederateMsg().

void DtRtiExecFederateMgr::synchronizationPointAchieved ( char const *  label,
bool  successfully = true 
) [virtual]

Process the synchronization point achieved service.

Implements DtFederateMgr.

References DtAchieved, DtAchievedUnsuccessfully, DtFederateMgr::myFedHandle, mySyncPoints, and sendSyncPointMsg().

void DtRtiExecFederateMgr::testReadFomModules ( const DtRIDParameters::DtStringList modulesNames,
MAKRti::DtString  executionName,
bool  isMim = false 
) [protected]
void DtRtiExecFederateMgr::testSaveProgress ( ) [protected, virtual]
void DtRtiExecFederateMgr::waitForJoinResponse ( const char *  executionName,
std::vector< MAKRti::DtString > &  joinModules 
) [protected, virtual]

Member Data Documentation

Status of create federation.

Referenced by processCreateResponseMsg().

Error String of create federation.

Referenced by processCreateResponseMsg().

MAKRti::DtString DtRtiExecFederateMgr::myDestroyExecutionName [protected]

Name of federation to destroy.

Referenced by destroyFederationExecution(), and processDestroyResponseMsg().

Status of destroy federation.

Referenced by destroyFederationExecution(), and processDestroyResponseMsg().

federate Fed File Distributors.

Referenced by distributors(), initializeDistributor(), and ~DtRtiExecFederateMgr().

Should we use local or distributed fed file?

Failed sync point request.

Referenced by posttick(), and registerFederationSynchronizationPoint().

Status of fed file request.

Referenced by initializeDistributor(), processFomModuleFileRequestMsg(), and waitForJoinResponse().

DtFedReader13* DtRtiExecFederateMgr::myFedReader13 [protected]

Reimplemented from DtFederateMgr.

Referenced by getReader(), and ~DtRtiExecFederateMgr().

DtFedReader1516* DtRtiExecFederateMgr::myFedReader1516 [protected]

Reimplemented from DtFederateMgr.

Referenced by getReader(), and ~DtRtiExecFederateMgr().

DtFedReader1516e* DtRtiExecFederateMgr::myFedReader1516e [protected]

Reimplemented from DtFederateMgr.

Referenced by getReader(), and ~DtRtiExecFederateMgr().

std::vector<MAKRti::DtString> DtRtiExecFederateMgr::myFomModuleRequests [protected]

Queue of modules requested.

Referenced by processFomModuleFileRequestMsg(), and waitForJoinResponse().

This federate LRC is designated for handling some federation wide tasks (e.g., MOM Federation attribute ownership)

Referenced by isDesignatedFederate(), and setDesignatedFederate().

Status of join confirm.

The Fed File Distributor of the joined federation execution.

Referenced by joinDistributor().

unsigned short DtRtiExecFederateMgr::myJoinRequestID [protected]

Join request ID.

Referenced by processJoinResponseMsg().

during a restore the fedhandle changes.

this stores the old handle so it can make some communications with the fedex during a restore but after changing the fedhandle

Referenced by processRestoreEnd(), and restore().

unsigned long DtRtiExecFederateMgr::mySaveRequestID [protected]

Save request ID.

Referenced by processSaveResponse(), and requestImmediateSave().

Save response status.

Referenced by processSaveResponse(), and requestImmediateSave().

MAKRti::DtFilename DtRtiExecFederateMgr::myStandardMimPath [protected]

Referenced by getStandardMimPath().

MAKRti::DtHashList DtRtiExecFederateMgr::mySyncPoints [protected]

MAKRti::DtHashList of DtStringHashKeys representing synch point names that have been announced to us.

Data associated with the string is just (void*)

  1. (NULL wouldn't work, because it's indistinguishable from "not present" in a lookup result.)

Referenced by processSyncPointMsg(), registerFederationSynchronizationPoint(), restore(), save(), synchronizationPointAchieved(), and ~DtRtiExecFederateMgr().

std::map<MAKRti::DtString, DtFileInformation*> DtRtiExecFederateMgr::myTakenFiles [protected]

until requester takes them.

Referenced by isFomAvailable(), and ~DtRtiExecFederateMgr().


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)