MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtLgrBaseSimManager Class Referenceabstract

Shared implementation of the Sim Manager. More...

+ Inheritance diagram for MAKLogger::DtLgrBaseSimManager:
+ Collaboration diagram for MAKLogger::DtLgrBaseSimManager:

Public Member Functions

virtual ~DtLgrBaseSimManager ()
 
virtual void tick ()
 Tick the simulations. More...
 
virtual void setExerciseConn (DtExerciseConn *exconn)
 Set the exercise conn (deleting the existing one if it was set). More...
 
virtual void setShareExerciseConn (bool shared)
 Set the the logger is using a shared exercise connection. More...
 
virtual void setSimTime (DtAbsoluteTime simTime)
 Set the current simulation time. More...
 
virtual double exConnSimTime () const
 Get the exercise connection sim time. More...
 
virtual void setExConnSimTime (double time)
 Set the exercise connection sim time. More...
 
virtual void setAllowSetSimTime (bool setSimTime)
 Set whether the logger can set sim time for the exercise connection. More...
 
virtual bool allowSetSimTime () const
 Get whether the logger is allowed to set sim time for the exercise connection. More...
 
virtual void setDrainInputOnTick (bool drainInput)
 Set the drain input on tick flag. More...
 
virtual bool drainInputOnTick () const
 Get whether the logger can drain input on tick. More...
 
virtual bool connect (DtExerciseConnInitializer &initializer, DtString &failureReason)=0
 Connect to an exercise. More...
 
virtual void disconnect ()=0
 Disconnect from the exercise. More...
 
virtual bool activity () const
 Get whether there is simulation activity. More...
 
virtual const DtLgrSimInputinput () const =0
 Get input. More...
 
virtual DtLgrSimInputinput ()=0
 Get input. More...
 
virtual const DtLgrSimOutputoutput () const =0
 Get output. More...
 
virtual DtLgrSimOutputoutput ()=0
 Get output. More...
 
virtual DtExerciseConnexerciseConn ()
 Get the current exerciseConn. More...
 
virtual DtExerciseConnexerciseConn () const
 Get the current exerciseConn. More...
 
- Public Member Functions inherited from MAKLogger::DtLgrSimManager
 DtLgrSimManager ()
 
virtual ~DtLgrSimManager ()
 
virtual bool isConnected () const =0
 Returns true if an exercise connection has been established. More...
 
virtual bool isConnectionOk () const =0
 Returns true if an exercise connection has been established and its in a good state. More...
 
virtual bool scaleAttributes () const
 Get whether attributes are scaled with time scaling. More...
 
virtual void setScaleAttributes (bool enable)
 Enable or Disable attribute scaling. More...
 
virtual DtLgrFileInputopenFileForInput (const DtString &filename) const =0
 Opens a file for reading. More...
 
virtual DtLgrFileOutputopenFileForCopying (const DtString &filename, const DtLgrFileInput *input) const =0
 Opens a file for writing using the settings of the input file. More...
 
virtual DtLgrFileOutputopenFileForOutput (const DtString &filename, const DtString &description) const =0
 Opens a file for writing using the settings defined by the simulation. More...
 
virtual DtLgrFileInputopenPartialFileForCopying (const DtLgrFileOutput *output, DtFilePosition firstPacket, DtFilePosition lastPacket) const =0
 Opens a file for reading which is currently being recorded to. More...
 
virtual DtMessageStatecreateState () const =0
 Creates an empty state object. More...
 
virtual const DtMessageStatestate () const =0
 Get a simulation state. More...
 
virtual DtMessageStatestate ()=0
 Get a simulation state. More...
 
virtual void activateIdleListening (DtMessagePipeline *pipeLine)
 Activate listening while idle. More...
 
virtual void deactivateIdleListening (DtMessagePipeline *pipeLine)
 Deactivate listening while idle. More...
 
virtual void setTimeProvider (DtTimeProvider *provider)
 Set the time provider. More...
 
virtual DtAbsoluteTime simTime () const
 A function to get the current simulation time. More...
 
virtual void setAdjustSimTime (bool adjustSimTime)
 Set whether to adjust sim time based on jumps in time. More...
 
virtual bool isSimTimeAdjusted () const
 Is sim time being adjusted? More...
 
virtual DtTime adjustedSimTime (DtTime packetTime, bool includeOffset=false) const
 Given a packet time return a sim time for sending it to network that has been adjusted based on jumps in time (if adjustments are enabled) Add in time offset if specified (e.g. More...
 
virtual void setTimeJump (DtAbsoluteTime jumpTime)
 Set the adjustments to time when a jump is made. More...
 
virtual void setInitialTime (DtAbsoluteTime initialTime)
 Set the initial time when play begins. More...
 
virtual int remoteControlId () const
 Get the remote control id. More...
 
virtual void setRemoteControlId (int id)
 Set the remote control id for this logger. More...
 
virtual void activateFilters (const DtMessageIOInfo *info)
 Activate sim filters. More...
 
virtual void deactivateFilters ()
 Deactivate sim filters. More...
 
virtual bool filter (DtPacket *packet)
 Check to see if the packet should be filtered. More...
 
virtual int addFilter (DtLgrPacketFilter *filter)
 Add filter. More...
 
virtual int removeFilter (const DtLgrPacketFilter *filter)
 Remove a filter. More...
 
virtual int filterCount () const
 Get the count of filters. More...
 
virtual int filterIndex (const DtLgrPacketFilter *filter) const
 Get the index of the given filter. More...
 
virtual void setHeartbeatIntervals (const std::map< DtString, DtLgrSimDriver::HeartbeatTimeRecord > &intervals)
 
virtual const std::map
< DtString,
DtLgrSimDriver::HeartbeatTimeRecord > & 
heartbeatIntervals () const
 
virtual void setTimeoutIntervals (const std::map< DtString, DtLgrSimDriver::HeartbeatTimeRecord > &intervals)
 
virtual const std::map
< DtString,
DtLgrSimDriver::HeartbeatTimeRecord > & 
timeoutIntervals () const
 
virtual void updateEntityTracker (const DtString &tracker)
 Update the driver's entity tracker to match argument. More...
 
virtual void setAllowEntityTracking (bool trackingEnabled)
 Set a flag that allows entity tracking or not (i.e., even if there is an entity tracker, controls if it is returned or not) More...
 
virtual DtLgrEntityTrackerentityTracker ()
 Get the current entity tracker, or null if none or tracking is disabled. More...
 
virtual const DtLgrEntityTrackerentityTracker () const
 Get the current entity tracker, or null if none or tracking is disabled. More...
 
virtual const std::vector
< DtString > & 
filterEntityList ()
 Get the list of filtered entity ID's that were set in the config file. More...
 
virtual void addTemporaryTrackedEntity (const DtString &name)
 
virtual void addTemporaryTrackedMarking (const DtString &marking)
 
virtual void setEntityTracker (DtLgrEntityTracker *tracker)
 takes ownership More...
 
virtual void addToFilterEntityList (const std::vector< DtString > &nameList)
 
virtual void setConfigurationFileName (const DtString &filename)=0
 
virtual void initPlayback (DtLgrFileInput &input)
 Perform initialization before tape playback. More...
 
virtual bool listenWhenIdle () const
 Listen when idle? More...
 
virtual void setListenWhenIdle (bool val)
 Set flag to listen when connecting;. More...
 
virtual bool staticDRAlgorithmWhenPaused () const
 Change Dead Reckon Algorithm to Static on Pause? More...
 
virtual void setStaticDRAlgorithmWhenPaused (bool staticDRAlgorithm)
 Set flag to swap Dead Reckon Algorithm to static when paused. More...
 
virtual void setEntitiesForRefresh (const DtLgrEntityTracker::EntryHandleSet &handleSet)
 Indicate/clear set of entities that need to be refreshed. More...
 
virtual const
DtLgrEntityTracker::EntryHandleSet
entitiesForRefresh () const
 Indicate/clear set of entities that need to be refreshed. More...
 
virtual void clearEntitiesForRefresh ()
 Indicate/clear set of entities that need to be refreshed. More...
 
virtual DtTimeProvidertimeProvider ()
 Get the time provider. More...
 
virtual const DtTimeProvidertimeProvider () const
 Get the time provider. More...
 
virtual DtLgrPacketFilterfilterByIndex (int index)
 Get filter by index. More...
 
virtual const DtLgrPacketFilterfilterByIndex (int index) const
 Get filter by index. More...
 
virtual bool playbackFilesUseRandomAccess () const
 Set/Get flag indicating playback files opened to optimize random access (primarily for windows) More...
 
virtual void setPlaybackFilesUseRandomAccess (bool val)
 Set/Get flag indicating playback files opened to optimize random access (primarily for windows) More...
 
virtual double extendedStopTimeoutInterval () const
 When simultaneously playing back a file that is being recorded this value controls how long playback that has reached the stop time should wait for the recording file to expand and increase the stop time allowing playback to continue. More...
 
virtual void setExtendedStopTimeoutInterval (double interval)
 When simultaneously playing back a file that is being recorded this value controls how long playback that has reached the stop time should wait for the recording file to expand and increase the stop time allowing playback to continue. More...
 

Protected Member Functions

 DtLgrBaseSimManager (DtLogger &logger)
 

Protected Attributes

bool myActivityFlag
 
DtExerciseConnmyExerciseConnection
 
DtLgrControlListenermyListener
 
bool myExerciseConnectionIsShared
 
bool myDrainInputOnTick
 
bool myAllowSetSimTime
 
- Protected Attributes inherited from MAKLogger::DtLgrSimManager
DtTimeProvidermyTimeProvider
 Member data. More...
 
DtLgrClockmyClock
 
double myBasePacketTime
 
double myJumpAdjustment
 
double myInitialTime
 
int myRemoteControlId
 
DtLgrEntityTrackermyEntityTracker
 
std::vector< DtStringmyFilterEntityList
 
DtLgrEntityTracker::EntryHandleSet myEntitiesToRefresh
 
bool myIsTrackingEnabled
 
bool myScaleAttributesFlag
 
FilterList myFilterList
 
std::map< DtString,
DtLgrSimDriver::HeartbeatTimeRecord
myHeartbeatIntervals
 
std::map< DtString,
DtLgrSimDriver::HeartbeatTimeRecord
myTimeoutIntervals
 
bool myPlaybackFilesUseRandomAccess
 
double myExtendedStopTimeoutInterval
 
bool myListenWhenIdle
 
bool myAdjustSimTime
 
bool myStaticDRAlgorithmWhenPaused
 

Additional Inherited Members

- Protected Types inherited from MAKLogger::DtLgrSimManager
typedef std::list
< DtLgrPacketFilter * > 
FilterList
 

Detailed Description

Shared implementation of the Sim Manager.

Base implementation of sim manager shared by protocol specific implementations.

Constructor & Destructor Documentation

MAKLogger::DtLgrBaseSimManager::DtLgrBaseSimManager ( DtLogger logger)
protected
virtual MAKLogger::DtLgrBaseSimManager::~DtLgrBaseSimManager ( )
virtual

Member Function Documentation

virtual bool MAKLogger::DtLgrBaseSimManager::activity ( ) const
virtual

Get whether there is simulation activity.

Implements MAKLogger::DtLgrSimManager.

virtual bool MAKLogger::DtLgrBaseSimManager::allowSetSimTime ( ) const
virtual

Get whether the logger is allowed to set sim time for the exercise connection.

virtual bool MAKLogger::DtLgrBaseSimManager::connect ( DtExerciseConnInitializer &  initializer,
DtString failureReason 
)
pure virtual

Connect to an exercise.

If connect fails, pass reason for failure through given string. Return bool: connected succeeded?

Implemented in MAKLogger::DtLgrHlaSimulationManager.

virtual void MAKLogger::DtLgrBaseSimManager::disconnect ( )
pure virtual

Disconnect from the exercise.

Implemented in MAKLogger::DtLgrHlaSimulationManager, and MAKLogger::DtLgrHlaDdmSimulationManager.

virtual bool MAKLogger::DtLgrBaseSimManager::drainInputOnTick ( ) const
virtual

Get whether the logger can drain input on tick.

virtual double MAKLogger::DtLgrBaseSimManager::exConnSimTime ( ) const
virtual

Get the exercise connection sim time.

virtual DtExerciseConn* MAKLogger::DtLgrBaseSimManager::exerciseConn ( )
virtual

Get the current exerciseConn.

virtual DtExerciseConn* MAKLogger::DtLgrBaseSimManager::exerciseConn ( ) const
virtual

Get the current exerciseConn.

virtual const DtLgrSimInput* MAKLogger::DtLgrBaseSimManager::input ( ) const
pure virtual

Get input.

Implements MAKLogger::DtLgrSimManager.

Implemented in MAKLogger::DtLgrHlaSimulationManager.

virtual DtLgrSimInput* MAKLogger::DtLgrBaseSimManager::input ( )
pure virtual

Get input.

Implements MAKLogger::DtLgrSimManager.

Implemented in MAKLogger::DtLgrHlaSimulationManager.

virtual const DtLgrSimOutput* MAKLogger::DtLgrBaseSimManager::output ( ) const
pure virtual

Get output.

Implements MAKLogger::DtLgrSimManager.

Implemented in MAKLogger::DtLgrHlaSimulationManager.

virtual DtLgrSimOutput* MAKLogger::DtLgrBaseSimManager::output ( )
pure virtual

Get output.

Implements MAKLogger::DtLgrSimManager.

Implemented in MAKLogger::DtLgrHlaSimulationManager.

virtual void MAKLogger::DtLgrBaseSimManager::setAllowSetSimTime ( bool  setSimTime)
virtual

Set whether the logger can set sim time for the exercise connection.

virtual void MAKLogger::DtLgrBaseSimManager::setDrainInputOnTick ( bool  drainInput)
virtual

Set the drain input on tick flag.

virtual void MAKLogger::DtLgrBaseSimManager::setExConnSimTime ( double  time)
virtual

Set the exercise connection sim time.

virtual void MAKLogger::DtLgrBaseSimManager::setExerciseConn ( DtExerciseConn exconn)
virtual

Set the exercise conn (deleting the existing one if it was set).

Reimplemented in MAKLogger::DtLgrHlaSimulationManager.

virtual void MAKLogger::DtLgrBaseSimManager::setShareExerciseConn ( bool  shared)
virtual

Set the the logger is using a shared exercise connection.

virtual void MAKLogger::DtLgrBaseSimManager::setSimTime ( DtAbsoluteTime  simTime)
virtual

Set the current simulation time.

Reimplemented from MAKLogger::DtLgrSimManager.

virtual void MAKLogger::DtLgrBaseSimManager::tick ( )
virtual

Tick the simulations.

Implements MAKLogger::DtLgrSimManager.

Reimplemented in MAKLogger::DtLgrHlaSimulationManager.

Member Data Documentation

bool MAKLogger::DtLgrBaseSimManager::myActivityFlag
protected
bool MAKLogger::DtLgrBaseSimManager::myAllowSetSimTime
protected
bool MAKLogger::DtLgrBaseSimManager::myDrainInputOnTick
protected
DtExerciseConn* MAKLogger::DtLgrBaseSimManager::myExerciseConnection
protected
bool MAKLogger::DtLgrBaseSimManager::myExerciseConnectionIsShared
protected
DtLgrControlListener* MAKLogger::DtLgrBaseSimManager::myListener
protected

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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)