VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtLauncherInitializer Class Reference

DtLauncherInitializer derives from DtVrlApplicationInitializer and describes how command line/MTL parameters could be added to a VR-Link application. More...

+ Inheritance diagram for DtLauncherInitializer:
+ Collaboration diagram for DtLauncherInitializer:

Public Member Functions

 DtLauncherInitializer (int argc, char *argv[])
 Default CTOR. More...
 
virtual ~DtLauncherInitializer ()
 Default DTOR. More...
 
virtual void parseCmdLine ()
 Parse the command line. More...
 
virtual void setLispFileName (const DtString &name)
 
virtual DtString lispFileName () const
 
virtual double refLatitude () const
 
virtual double refLongitude () const
 
virtual double lifeTime () const
 
virtual double erectorStartTime () const
 
virtual double erectorStopTime () const
 
virtual double missileSwapTime () const
 
virtual double fireTime () const
 
virtual double damageTime () const
 
virtual double missileMoveTime () const
 
virtual double missileStopTime () const
 
- Public Member Functions inherited from DtVrlApplicationInitializer
 DtVrlApplicationInitializer (int argc, char *argv[], const DtString &appName, const DtString &version=DtExerciseConnInitializer::vrlinkVersion(), bool pressAnyKey=false)
 Constructor. More...
 
virtual ~DtVrlApplicationInitializer ()
 Destructor. More...
 
virtual int argc () const
 Get the argc passed into the constructor. More...
 
virtual char ** argv () const
 Get the argv passed into the constructor. More...
 
virtual void loadFile (const DtString &fileName)
 Load a .mtl or .xml file. More...
 
virtual void loadMtlFile (const DtString &fileName)
 
virtual void saveFile (const DtString &filename)
 Save configuration settings to a .xml file. More...
 
virtual void setExecName (const DtString &name)
 Set/Get the execution name. More...
 
virtual DtString execName () const
 Set the execution name. More...
 
virtual void setFederateName (const DtString &name)
 HLA Evolved only. More...
 
virtual DtString federateName () const
 Set the federate name In HLA Evolved, this is the same as federateType. More...
 
virtual void setNotifyFileLevel (int level)
 Sets the notify level for file output, if the filename has been set. More...
 
virtual int notifyFileLevel () const
 
virtual void setNotifyFilename (const DtString &file)
 Setting this will allow notifications to be sent to a file as well as the console. More...
 
virtual DtString notifyFilename () const
 
virtual void setFederateType (const DtString &type)
 Set/Get the federate type. More...
 
virtual DtString federateType () const
 Get the federate type. More...
 
void setFedFileName (const DtString &name)
 Set/Get the fed file name. More...
 
virtual DtString fedFileName () const
 Set the fed file name. More...
 
virtual void setFomMapperLibName (const DtString &name)
 Set/Get the DSO name. More...
 
virtual DtString fomMapperLibName () const
 Set the FOM Mapper library name. More...
 
virtual void setRprFomVersion (double version)
 Set/Get the RPR FOM Version. More...
 
virtual double rprFomVersion () const
 Returns the RPR FOM Version. See above description. More...
 
virtual void * fomMapperInitData () const
 Set/Get the FOM mapper initialization data. More...
 
virtual void setFomMapperInitData (void *data)
 Get the FOM mapper initialization data. More...
 
virtual void setUseAdvisories (bool onOff)
 Set/Get the whether to use advisories. More...
 
virtual bool useAdvisories () const
 Get use of advisories. More...
 
virtual void setRequestClassUpdate (bool onOff)
 Set/Get request class update flag. More...
 
virtual bool requestClassUpdate () const
 Get request class update flag. More...
 
virtual void setRequestObjectUpdate (bool onOff)
 Set/Get request object update flag. More...
 
virtual bool requestObjectUpdate () const
 Get request object update flag. More...
 
virtual void setRequestWhenInitialized (bool onOff)
 Set/Get request when initialized flag. More...
 
virtual bool requestWhenInitialized () const
 Get request when initialized flag. More...
 
virtual void setDefaultRefreshWaitList (bool onOff)
 Set/Get request object update flag. More...
 
virtual bool defaultRefreshWaitList () const
 Get request object update flag. More...
 
virtual void setDefaultWaitListRefreshPeriod (double period)
 Set/Get default wait list refresh period. More...
 
virtual double defaultWaitListRefreshPeriod () const
 Get default wait list refresh period. More...
 
virtual void setTimeStampType (DtTimeStampType relOrAbs)
 Set the time stamp type (DtTimeStampAbsolute or DtTimeStampRelative). More...
 
virtual DtTimeStampType timeStampType () const
 Get the time stamp type. More...
 
virtual void setDestroyFedExec (bool onOff)
 Set the destroy fed exec flag. More...
 
virtual bool destroyFedExec () const
 Get the destroy fed exec flag. See above description. More...
 
virtual void setSendFedTime (bool onOff)
 Set the send fed time flag. More...
 
virtual bool sendFedTime () const
 Get the send fed time flag. See above description. More...
 
virtual void setUseGeographicDdm (bool yesNo)
 Sets the use geographic DDM flag. More...
 
virtual bool useGeographicDdm () const
 Get the use geographic DDM flag. More...
 
virtual void setRprFomRevision (int val)
 Sets the revision of the FOM Mapper currently used. More...
 
virtual int rprFomRevision () const
 returns the revision of the current FOM being used. More...
 
virtual void setGenericAttributes (bool yesNo)
 Set the Generic attributes flag. More...
 
virtual bool enabledGenericAttributes () const
 Set the Generic attributes flag. More...
 
virtual void setOutputInterval (double period)
 Set print output interval. More...
 
virtual double outputInterval () const
 Get print output interval. More...
 
virtual bool pauseOnSaveRestore () const
 Block the simulation if a save or a restore is in process. More...
 
virtual void setPauseOnSaveRestore (bool yesNo)
 Block the simulation if a save or a restore is in process. More...
 
virtual void setExceptionOnRtiCompilerMismatch (bool yesNo)
 Block the simulation if a save or a restore is in process. More...
 
virtual bool exceptionOnRtiCompilerMismatch () const
 Block the simulation if a save or a restore is in process. More...
 
- Public Member Functions inherited from DtExerciseConnInitializer
 DtExerciseConnInitializer ()
 Constructor. More...
 
virtual ~DtExerciseConnInitializer ()
 Destructor. More...
 
 DtExerciseConnInitializer (const DtExerciseConnInitializer &orig)
 Copy Constructor. More...
 
DtExerciseConnInitializeroperator= (const DtExerciseConnInitializer &orig)
 Assignment Operator. More...
 
virtual DtFomMapperfomMapper () const
 Set the FOM mapper. More...
 
virtual void setFomMapper (DtFomMapper *mapper)
 Get the FOM mapper. More...
 
virtual void setReflecting (bool onOff)
 Set reflecting. More...
 
virtual bool reflecting () const
 Get reflecting. See above description. More...
 
virtual void setPassiveMode (bool onOff)
 Set passive mode. More...
 
virtual bool passiveMode () const
 Get passive mode. See above description. More...
 
virtual void setReflectRemoteUpdatesIntoPub (bool onOff)
 Set the reflectRemoteUpdatesIntoPub flag. More...
 
virtual bool reflectRemoteUpdatesIntoPub () const
 Get reflect remove updates into publisher flag. More...
 
virtual void setReflectThroughRti (bool onOff)
 Set the reflecting through RTI flag to true. More...
 
virtual bool reflectThroughRti () const
 Get the reflecting through RTI flag. More...
 
virtual void setReplyToSynchPoints (bool onOff)
 Set reply to sync points. More...
 
virtual bool replyToSynchPoints () const
 Get reply to sync points. See above description. More...
 
virtual void setAutoSubscribe (bool onOff)
 Set auto subscribe flag. More...
 
virtual bool autoSubscribe () const
 Get auto subscribe flag;. More...
 
virtual void setNotifyLevel (int level)
 Sets the notify level. More...
 
virtual void setRtiArguments (const std::vector< std::wstring > &args)
 Specify the vector of wstring args to pass to HLA 1516's RTIambassador constructor. More...
 
virtual void setRtiArguments (const std::vector< DtString > &args)
 Specify the vector of wstring args to pass to HLA 1516's RTIambassador constructor. More...
 
virtual void rtiArguments (std::vector< std::wstring > &args) const
 Returns the rtiArguments which will be passed to HLA 1516's RTI ambassador constructor. More...
 
virtual void setGetValueMethod (DtGetValueMethod getValueMethodChoice)
 Configure how VR-Link retrieves data from RTI attribute/parameter handle value pair sets. More...
 
virtual DtGetValueMethod getValueMethod () const
 Configure how VR-Link retrieves data from RTI attribute/parameter handle value pair sets. More...
 

Protected Member Functions

virtual void initializeMtlParams ()
 Register the MTL/Command Line parameters. More...
 
- Protected Member Functions inherited from DtVrlApplicationInitializer
virtual void initializeFileLogging ()
 Start file logging. Done automatically by the reader. More...
 

Protected Attributes

DtConfigVariable< DtStringmyLispFileName
 Command line arguments. More...
 
DtConfigVariable< doublemyLifeTime
 
DtConfigVariable< doublemyErectorStartTime
 
DtConfigVariable< doublemyErectorStopTime
 
DtConfigVariable< doublemyFireTime
 
DtConfigVariable< doublemyMissileSwapTime
 
DtConfigVariable< doublemyMissileMoveTime
 
DtConfigVariable< doublemyMissileStopTime
 
DtConfigVariable< doublemyDamageTime
 
int myMtlUseAsynchronousIO
 
double myRefLatitude
 here, because MTL does not support bool types More...
 
double myRefLongitude
 
- Protected Attributes inherited from DtVrlApplicationInitializer
int myArgc
 
char ** myArgv
 
DtMtlEnvironmentmyMtlEnv
 
DtApplicationSettings mySettings
 
DtConfigVariable< intmyConfigVarNotifyLevel
 
DtVariableGroup myHlaConnection
 
DtConfigVariable< DtStringmyConfigVarFederateType
 
DtConfigVariable< DtStringmyConfigVarExecName
 
DtConfigVariable< DtStringmyConfigVarFedFileName
 
DtConfigVariable< DtStringmyConfigVarFederateName
 
DtConfigVariable< DtStringmyConfigVarFomMapperLibName
 
DtConfigVariable< DtStringmyConfigVarFomMapperInitData
 
DtConfigVariable< doublemyConfigVarRprFomVersion
 
DtConfigVariable< intmyConfigVarRprFomRevision
 
DtConfigVariable< boolmyConfigVarUseAdvisories
 
DtConfigVariable< boolmyConfigVarRequestClassUpdate
 
DtConfigVariable< boolmyConfigVarRequestObjectUpdate
 
DtConfigVariable< boolmyConfigVarRequestWhenInitialized
 
DtConfigVariable< boolmyConfigVarDefaultRefreshWaitList
 
DtConfigVariable< doublemyConfigVarDefaultWaitListRefreshPeriod
 
DtConfigVariable< boolmyConfigVarIgnoreAdvisories
 
DtConfigVariable< boolmyConfigVarUseGeographicDdm
 
DtConfigVariable< boolmyConfigVarUseAbsoluteTimestamps
 
DtConfigVariable< boolmyConfigVarDestroyFedExec
 
DtConfigVariable< boolmyConfigVarSendFedTime
 
DtConfigVariable< boolmyConfigVarGenericAttributes
 
DtConfigVariable< boolmyConfigVarPauseOnSaveRestore
 
DtConfigVariable< boolmyConfigVarRtiCompilerCheck
 
DtConfigVariable< intmyConfigVarNotifyFileLevel
 
DtConfigVariable< DtStringmyConfigVarNotifyFilename
 
DtConfigVariable< doublemyConfigVarOutputInterval
 
DtFilePrintermyLogFilePrinter
 
int myMtlUseAdvisories
 
int myMtlUseGeographicDdm
 
int myMtlUseAbsoluteTimeStamps
 
int myMtlDestroyFedExec
 
int myMtlSendFedTime
 
int myMtlPauseOnSaveRestore
 
int myMtlRequestClassUpdate
 
int myMtlRequestObjectUpdate
 
int myMtlRequestWhenInitialized
 
int myMtlDefaultRefreshWaitList
 

Private Member Functions

 DtLauncherInitializer (const DtLauncherInitializer &other)
 Copy CTOR not implemented – Do Not copy. More...
 
DtLauncherInitializeroperator= (const DtLauncherInitializer &other)
 Assignment Operator not implemented – Do Not copy. More...
 

Additional Inherited Members

- Public Types inherited from DtExerciseConnInitializer
enum  DtGetValueMethod { DtForceGetValue, DtForceGetValuePointer, DtGetValuePointerWhereAvailable }
 Indicate if getValue or getValuePointer should be used to retrieve data from handleValuePairSets. More...
 
- Static Public Member Functions inherited from DtExerciseConnInitializer
static DtString vrlinkVersion ()
 Returns a string indicating the VR-Link version number. More...
 

Detailed Description

DtLauncherInitializer derives from DtVrlApplicationInitializer and describes how command line/MTL parameters could be added to a VR-Link application.

DtVrlApplicationInitializer contains default behavior for protocol specific parameters, while DtLauncherInitializer contains behavior particular to the F18 app parseCmdLine() parses the command line arguments specified in this class and DtVrlApplicationInitializer. loadMtlFile() can be called (defined in DtVrlApplicationInitializer) with an MTL file name. This will parse the MTL file specified and set those variables registered

Constructor & Destructor Documentation

DtLauncherInitializer::DtLauncherInitializer ( int  argc,
char *  argv[] 
)

Default CTOR.

virtual DtLauncherInitializer::~DtLauncherInitializer ( )
virtual

Default DTOR.

DtLauncherInitializer::DtLauncherInitializer ( const DtLauncherInitializer other)
private

Copy CTOR not implemented – Do Not copy.

Member Function Documentation

virtual double DtLauncherInitializer::damageTime ( ) const
virtual
virtual double DtLauncherInitializer::erectorStartTime ( ) const
virtual
virtual double DtLauncherInitializer::erectorStopTime ( ) const
virtual
virtual double DtLauncherInitializer::fireTime ( ) const
virtual
virtual void DtLauncherInitializer::initializeMtlParams ( )
protectedvirtual

Register the MTL/Command Line parameters.

Non-virtual since they are called from the constructor

Reimplemented from DtVrlApplicationInitializer.

virtual double DtLauncherInitializer::lifeTime ( ) const
virtual
virtual DtString DtLauncherInitializer::lispFileName ( ) const
virtual
virtual double DtLauncherInitializer::missileMoveTime ( ) const
virtual
virtual double DtLauncherInitializer::missileStopTime ( ) const
virtual
virtual double DtLauncherInitializer::missileSwapTime ( ) const
virtual
DtLauncherInitializer& DtLauncherInitializer::operator= ( const DtLauncherInitializer other)
private

Assignment Operator not implemented – Do Not copy.

virtual void DtLauncherInitializer::parseCmdLine ( )
virtual

Parse the command line.

This method will parse the command line and set the variables according to what options have been set on the command line

Reimplemented from DtVrlApplicationInitializer.

virtual double DtLauncherInitializer::refLatitude ( ) const
virtual
virtual double DtLauncherInitializer::refLongitude ( ) const
virtual
virtual void DtLauncherInitializer::setLispFileName ( const DtString name)
virtual

Member Data Documentation

DtConfigVariable<double> DtLauncherInitializer::myDamageTime
protected
DtConfigVariable<double> DtLauncherInitializer::myErectorStartTime
protected
DtConfigVariable<double> DtLauncherInitializer::myErectorStopTime
protected
DtConfigVariable<double> DtLauncherInitializer::myFireTime
protected
DtConfigVariable<double> DtLauncherInitializer::myLifeTime
protected
DtConfigVariable<DtString> DtLauncherInitializer::myLispFileName
protected

Command line arguments.

DtConfigVariable<double> DtLauncherInitializer::myMissileMoveTime
protected
DtConfigVariable<double> DtLauncherInitializer::myMissileStopTime
protected
DtConfigVariable<double> DtLauncherInitializer::myMissileSwapTime
protected
int DtLauncherInitializer::myMtlUseAsynchronousIO
protected
double DtLauncherInitializer::myRefLatitude
protected

here, because MTL does not support bool types

double DtLauncherInitializer::myRefLongitude
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)