![]() |
MAK Data Logger API Documentation for HLA
|
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 number of connections. | |
| virtual void | tick ()=0 |
| A common method need for simulation managers to update the simulation. | |
| virtual bool | scaleAttributes () const |
| Get whether attributes are scaled with time scaling. | |
| virtual void | setScaleAttributes (bool enable) |
| Enable or Disable attribute scaling. | |
| virtual DtLgrFileInput * | openFileForInput (const DtString &filename) const =0 |
| Opens a file for reading. | |
| virtual DtLgrFileOutput * | openFileForCopying (const DtString &filename, const DtLgrFileInput *input) const =0 |
| Opens a file for writing using the settings of the input file. | |
| virtual DtLgrFileOutput * | openFileForOutput (const DtString &filename, const DtString &description) const =0 |
| Opens a file for writing using the settings defined by the simulation. | |
| virtual DtLgrFileInput * | openPartialFileForCopying (const DtLgrFileOutput *output, DtFilePosition firstPacket, DtFilePosition lastPacket) const =0 |
| Opens a file for reading which is currently being recorded to. | |
| virtual DtMessageState * | createState () const =0 |
| Creates an empty state object. | |
| virtual const DtLgrSimInput * | input () const =0 |
| Get a simulation input. | |
| virtual DtLgrSimInput * | input ()=0 |
| Get a simulation input. | |
| virtual const DtLgrSimOutput * | output () const =0 |
| Get a simulation output. | |
| virtual DtLgrSimOutput * | output ()=0 |
| Get a simulation output. | |
| virtual const DtMessageState * | state () const =0 |
| Get a simulation state. | |
| virtual DtMessageState * | state ()=0 |
| Get a simulation state. | |
| virtual const DtTimeProvider * | timeProvider () const =0 |
| Get a time provider. | |
| virtual bool | activity () const =0 |
| Get if there is any activity this tick. | |
| virtual DtAbsoluteTime | simTime () const =0 |
| A function to det the current simulation time. | |
| virtual int | remoteControlId () const |
| Get the remote control id. | |
| virtual void | setRemoteControlId (int id) |
| Set the remote control id for this logger. | |
| virtual void | activateFilters (const DtMessageIOInfo *info) |
| Activate sim filters. | |
| virtual void | deactivateFilters () |
| Deactivate sim filters. | |
| virtual bool | filter (DtPacket *packet) |
| Check to see if the packet should be filtered. | |
| virtual int | addFilter (DtLgrPacketFilter *filter) |
| Add filter. | |
| virtual int | removeFilter (const DtLgrPacketFilter *filter) |
| Remove a filter. | |
| virtual int | filterCount () const |
| Get the count of filters. | |
| virtual int | filterIndex (const DtLgrPacketFilter *filter) const |
| Get the index of the given filter. | |
| 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. | |
| 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) | |
| virtual DtLgrEntityTracker * | entityTracker () |
| Get the current entity tracker, or null if none or tracking is disabled. | |
| virtual const DtLgrEntityTracker * | entityTracker () const |
| Get the current entity tracker, or null if none or tracking is disabled. | |
| virtual const std::vector < DtString > & | filterEntityList () |
| Get the list of filtered entity ID's that were set in the config file. | |
| virtual void | addTemporaryTrackedEntity (const DtString &name) |
| virtual void | setEntityTracker (DtLgrEntityTracker *tracker) |
| takes ownership | |
| 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. | |
| virtual void | setEntitiesForRefresh (const DtLgrEntityTracker::EntryHandleSet &handleSet) |
| Indicate/clear set of entities that need to be refreshed. | |
| virtual const DtLgrEntityTracker::EntryHandleSet & | entitiesForRefresh () const |
| Indicate/clear set of entities that need to be refreshed. | |
| virtual void | clearEntitiesForRefresh () |
| Indicate/clear set of entities that need to be refreshed. | |
| virtual DtLgrPacketFilter * | filterByIndex (int index) |
| Get filter by index. | |
| virtual const DtLgrPacketFilter * | filterByIndex (int index) const |
| Get filter by index. | |
| virtual bool | playbackFilesUseRandomAccess () const |
| Set/Get flag indicating playback files opened to optimize random access (primarily for windows) | |
| virtual void | setPlaybackFilesUseRandomAccess (bool val) |
| Set/Get flag indicating playback files opened to optimize random access (primarily for windows) | |
Protected Types | |
| typedef std::list < DtLgrPacketFilter * > | FilterList |
Protected Attributes | |
| 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 |
Implements a protocol independent Simulation manager.
|
protected |
| MAKLogger::DtLgrSimManager::DtLgrSimManager | ( | ) |
|
virtual |
|
virtual |
Activate sim filters.
|
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 |
Indicate/clear set of entities that need to be refreshed.
|
pure virtual |
Creates an empty state object.
Implemented in MAKLogger::DtLgrHlaSimulationManager.
|
virtual |
Deactivate sim filters.
|
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 |
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.
Reimplemented in MAKLogger::DtLgrHlaSimulationManager.
|
pure virtual |
Get a simulation input.
Implemented in MAKLogger::DtLgrHlaSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
pure virtual |
Get a simulation input.
Implemented in MAKLogger::DtLgrHlaSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
pure virtual |
Returns number of connections.
Implemented in MAKLogger::DtLgrHlaSimulationManager.
|
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::DtLgrHlaSimulationManager.
|
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::DtLgrHlaSimulationManager.
|
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::DtLgrHlaSimulationManager.
|
pure virtual |
Opens a file for reading which is currently being recorded to.
Implemented in MAKLogger::DtLgrHlaSimulationManager.
|
pure virtual |
Get a simulation output.
Implemented in MAKLogger::DtLgrHlaSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
pure virtual |
Get a simulation output.
Implemented in MAKLogger::DtLgrHlaSimulationManager, 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 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::DtLgrHlaSimulationManager.
|
virtual |
Indicate/clear set of entities that need to be refreshed.
|
virtual |
takes ownership
|
virtual |
|
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 |
|
pure virtual |
A function to det the current simulation time.
Implemented in MAKLogger::DtLgrBaseSimManager.
|
pure virtual |
Get a simulation state.
Implemented in MAKLogger::DtLgrHlaSimulationManager.
|
pure virtual |
Get a simulation state.
Implemented in MAKLogger::DtLgrHlaSimulationManager.
|
pure virtual |
A common method need for simulation managers to update the simulation.
Implemented in MAKLogger::DtLgrHlaSimulationManager, and MAKLogger::DtLgrBaseSimManager.
|
virtual |
|
pure virtual |
Get a time provider.
Implemented in MAKLogger::DtLgrBaseSimManager.
|
virtual |
Update the driver's entity tracker to match argument.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |