![]() |
MAK Data Logger API Documentation for DIS
|
Implements a protocol independent Simulation manager. More...
Inheritance diagram for MAKLogger::DtLgrSimManager:
Collaboration diagram for MAKLogger::DtLgrSimManager:Public Member Functions | |
| 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 void | tick ()=0 |
| A common method need for simulation managers to update the simulation. 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 DtLgrFileInput * | openFileForInput (const DtString &filename) const =0 |
| Opens a file for reading. More... | |
| virtual DtLgrFileOutput * | openFileForCopying (const DtString &filename, const DtLgrFileInput *input) const =0 |
| Opens a file for writing using the settings of the input file. More... | |
| virtual DtLgrFileOutput * | openFileForOutput (const DtString &filename, const DtString &description) const =0 |
| Opens a file for writing using the settings defined by the simulation. More... | |
| virtual DtLgrFileInput * | openPartialFileForCopying (const DtLgrFileOutput *output, DtFilePosition firstPacket, DtFilePosition lastPacket) const =0 |
| Opens a file for reading which is currently being recorded to. More... | |
| virtual DtMessageState * | createState () const =0 |
| Creates an empty state object. More... | |
| virtual const DtLgrSimInput * | input () const =0 |
| Get a simulation input. More... | |
| virtual DtLgrSimInput * | input ()=0 |
| Get a simulation input. More... | |
| virtual const DtLgrSimOutput * | output () const =0 |
| Get a simulation output. More... | |
| virtual DtLgrSimOutput * | output ()=0 |
| Get a simulation output. More... | |
| virtual const DtMessageState * | state () const =0 |
| Get a simulation state. More... | |
| virtual DtMessageState * | state ()=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 | setSimTime (DtAbsoluteTime simTime) |
| Set 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 bool | activity () const =0 |
| Get if there is any activity this tick. 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 DtLgrEntityTracker * | entityTracker () |
| Get the current entity tracker, or null if none or tracking is disabled. More... | |
| virtual const DtLgrEntityTracker * | entityTracker () 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 DtTimeProvider * | timeProvider () |
| Get the time provider. More... | |
| virtual const DtTimeProvider * | timeProvider () const |
| Get the time provider. More... | |
| virtual DtLgrPacketFilter * | filterByIndex (int index) |
| Get filter by index. More... | |
| virtual const DtLgrPacketFilter * | filterByIndex (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 Types | |
| typedef std::list < DtLgrPacketFilter * > | FilterList |
Protected Attributes | |
| DtTimeProvider * | myTimeProvider |
| Member data. More... | |
| DtLgrClock * | myClock |
| double | myBasePacketTime |
| double | myJumpAdjustment |
| double | myInitialTime |
| int | myRemoteControlId |
| DtLgrEntityTracker * | myEntityTracker |
| std::vector< DtString > | myFilterEntityList |
| 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 |
Implements a protocol independent Simulation manager.
|
protected |
| MAKLogger::DtLgrSimManager::DtLgrSimManager | ( | ) |
|
virtual |
|
virtual |
Activate sim filters.
|
virtual |
Activate listening while idle.
|
pure virtual |
Get if there is any activity this tick.
Implemented in MAKLogger::DtLgrBaseSimManager.
|
virtual |
Add filter.
Sim Manager now maintains ownership of filter.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
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.
HLA time management lookahead)
|
virtual |
Indicate/clear set of entities that need to be refreshed.
|
pure virtual |
Creates an empty state object.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
virtual |
Deactivate sim filters.
|
virtual |
Deactivate listening while idle.
|
virtual |
Indicate/clear set of entities that need to be refreshed.
|
virtual |
Get the current entity tracker, or null if none or tracking is disabled.
|
virtual |
Get the current entity tracker, or null if none or tracking is disabled.
|
virtual |
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.
Value of -1 indicates wait indefinitely.
|
virtual |
Check to see if the packet should be filtered.
|
virtual |
Get filter by index.
|
virtual |
Get filter by index.
|
virtual |
Get the count of filters.
|
virtual |
Get the list of filtered entity ID's that were set in the config file.
|
virtual |
Get the index of the given filter.
If filter is not found, return -1.
|
virtual |
|
virtual |
Perform initialization before tape playback.
|
pure virtual |
Get a simulation input.
Implemented in MAKLogger::DtLgrDisSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
pure virtual |
Get a simulation input.
Implemented in MAKLogger::DtLgrDisSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
pure virtual |
Returns true if an exercise connection has been established.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
pure virtual |
Returns true if an exercise connection has been established and its in a good state.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
virtual |
Is sim time being adjusted?
|
virtual |
Listen when idle?
|
pure virtual |
Opens a file for writing using the settings of the input file.
The simulation manager typically does NOT need to be connected for this to succeed.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
pure virtual |
Opens a file for reading.
The simulation manager typically does NOT need to be connected for this to succeed. Must be opened in Sim Manager interface for protocol specific information.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
pure virtual |
Opens a file for writing using the settings defined by the simulation.
Typically the simulation manager MUST be connected for this call to succeed. Must be opened in Sim Manager interface for protocol specific information.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
pure virtual |
Opens a file for reading which is currently being recorded to.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
pure virtual |
Get a simulation output.
Implemented in MAKLogger::DtLgrDisSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
pure virtual |
Get a simulation output.
Implemented in MAKLogger::DtLgrDisSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
virtual |
Set/Get flag indicating playback files opened to optimize random access (primarily for windows)
|
virtual |
Get the remote control id.
This is used in conjunction with any logger specific simulation operations. For example sending and receiving remote control messages.
|
virtual |
Remove a filter.
This call deallocates the filter object.
| -1 | If the filter was not found. |
|
virtual |
Get whether attributes are scaled with time scaling.
|
virtual |
Set whether to adjust sim time based on jumps in time.
|
virtual |
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)
|
pure virtual |
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
virtual |
Indicate/clear set of entities that need to be refreshed.
|
virtual |
takes ownership
|
virtual |
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.
Value of -1 indicates wait indefinitely.
|
virtual |
|
virtual |
Set the initial time when play begins.
|
virtual |
Set flag to listen when connecting;.
|
virtual |
Set/Get flag indicating playback files opened to optimize random access (primarily for windows)
|
virtual |
Set the remote control id for this logger.
|
virtual |
Enable or Disable attribute scaling.
|
virtual |
Set the current simulation time.
Reimplemented in MAKLogger::DtLgrBaseSimManager.
|
virtual |
Set flag to swap Dead Reckon Algorithm to static when paused.
|
virtual |
Set the adjustments to time when a jump is made.
|
virtual |
|
virtual |
Set the time provider.
|
virtual |
A function to get the current simulation time.
|
pure virtual |
Get a simulation state.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
pure virtual |
Get a simulation state.
Implemented in MAKLogger::DtLgrDisSimulationManager.
|
virtual |
Change Dead Reckon Algorithm to Static on Pause?
|
pure virtual |
A common method need for simulation managers to update the simulation.
Implemented in MAKLogger::DtLgrDisSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
virtual |
|
virtual |
Get the time provider.
|
virtual |
Get the time provider.
|
virtual |
Update the driver's entity tracker to match argument.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Member data.