![]() |
MAK Data Logger API Documentation for DIS
|
The class responsible for interfacing with the simulation in a protocol independent manner. More...
Inheritance diagram for MAKLogger::DtLgrSimInterface:
Collaboration diagram for MAKLogger::DtLgrSimInterface:Public Types | |
| typedef DtLgrSimCommandFactory | Factory |
| The factory type of this object. More... | |
| typedef int | EntityTrackerUpdateId |
Public Member Functions | |
| DtLgrSimInterface (DtLogger &, const DtLgrSimDriver &) | |
| Ctr with Logger and driver for initialization of state. More... | |
| virtual | ~DtLgrSimInterface () |
| DTOR. More... | |
| virtual DtLgrProtocolId | protocolId () const =0 |
| Get the protocol ID. More... | |
| virtual DtString | protocolName () const |
| Get the protocol as a string. More... | |
| virtual void | connect () const |
| Send a command to connect. More... | |
| virtual void | connectToSharedExerciseConn (DtExerciseConn *exconn, bool allowDrainInput, bool allowSetSimTime, bool allowUnsubscribe) const |
| Send a command to connect using a shared exercise connection. More... | |
| virtual void | disconnect () const |
| Send a command to disconnect. More... | |
| virtual void | getLoggerName (DtString &name) const =0 |
| Get a descriptive name for this logger instance. More... | |
| virtual bool | isConnected () const |
| Check to see if the logger is currently connected. More... | |
| virtual void | setDumpFilename (const DtString &) |
| Set the dump filename. More... | |
| virtual bool | processRemoteControls () const |
| Get whether remote control messages are processed. More... | |
| virtual bool | recordRemoteControls () const |
| Get whether remote control messages are recorded in the logger tape. More... | |
| virtual bool | allowAllRemoteControls () const |
| Get whether remote control messages are processed regardless of site ID. More... | |
| virtual bool | allowRemoteDelete () const |
| Allow the delete file message to be processed. More... | |
| virtual int | remoteControlId () const |
| Remote control ID. More... | |
| virtual bool | sendResponses () const |
| Send responses to remote controller? More... | |
| virtual bool | crippleGui () const |
| Cripple GUI interaction (e.g., mouse clicks and minimize window) More... | |
| virtual bool | useLegacyPdu () const |
| Use Legacy control PDU. More... | |
| virtual DtTime | connectSendInterval () const |
| Connect messages are sent using this interval. More... | |
| virtual DtTime | heartbeatSendInterval () const |
| Logger heartbeat messages are sent using this interval. More... | |
| virtual bool | useSimChannel () const |
| Use the sim channel connection for remote control? More... | |
| virtual bool | useBackChannel () const |
| Use the back channel connection for remote control? More... | |
| virtual const DtString & | backChannelAddress () const |
| Back channel connection address. More... | |
| virtual int | backChannelPort () const |
| Back Channel port. More... | |
| virtual const DtString & | backChannelInterface () const |
| Back Channel interface. More... | |
| virtual void | setRemoteControlSettings (bool useSimChannel, bool useBackChannel, bool record, bool allowDelete, bool allowAll, bool sendResponses, bool crippleGui, bool useLegacyPdu, DtTime connectSendInterval, DtTime heartbeatSendInterval) const |
| Change how remote control settings. More... | |
| virtual void | addFilteredEntityName (const DtString &name) const |
| Add a filtered entity name. More... | |
| virtual void | clearFilteredEntityNames () const |
| Clear filtered entity names. More... | |
| virtual void | addFilter (DtLgrPacketFilter *) const |
| Install a new filter object. More... | |
| virtual void | setFilterSettings (const DtLgrPacketFilter *) const |
| Set the filter settings using a copy of the filter. More... | |
| virtual int | filterCount () const |
| Get the number of filters. More... | |
| virtual int | filterIndex (const DtLgrPacketFilter *filter) const |
| Get the index of the given filter. More... | |
| virtual void | setScaleAttributes (bool scale) const |
| Send command to scale attributes. More... | |
| virtual bool | scaleAttributes () const |
| Get whether attributes are being scaled. More... | |
| virtual bool | networkActivity () const |
| Get whether there was network activity during the last tick. More... | |
| virtual void | setSaveConnectionConfiguration (bool saveConnectConfig) const |
| Sends the command to change save connection configuration. More... | |
| virtual bool | saveConnectConfiguration () const |
| Return whether connection configuration should be saved. More... | |
| virtual void | setSaveIndexConfiguration (bool saveIndexConfig) const |
| Sends the command to change save index configuration. More... | |
| virtual bool | saveIndexConfiguration () const |
| Return whether index configuration should be saved. More... | |
| virtual void | setSaveProtocolConfiguration (bool saveProtocolConfig) const |
| Sends the command to change save protocol configuration. More... | |
| virtual bool | saveProtocolConfiguration () const |
| Return whether protocol configuration should be saved. More... | |
| virtual void | setListenWhenIdle (bool listen) const |
| Sends the command to change switch to listen when idle. More... | |
| virtual bool | listenWhenIdle () const |
| Return whether listen when idle is enabled. More... | |
| virtual bool | staticDROnPause () const |
| Return whether Static Dead Reckon Algorithm when pause is enabled. More... | |
| virtual void | setStaticDROnPause (bool staticDRAlgorithm) const |
| Set whether to swap Dead reckon algorithms when paused. More... | |
| virtual const DtLgrEntityTracker * | entityTracker () const |
| Get the current entity tracker, or null if none. More... | |
| virtual void | addTemporaryTrackedEntity (const DtString &name) const |
| Add a temporary name to the entity tracker. More... | |
| virtual bool | connectionSettingsMatchInputFile (DtString &filename) |
| Check the connection settings in the Logger file meta data. More... | |
| virtual void | useRecommendedSettings () |
| Set connection settings to match those in the Logger file meta data. More... | |
| virtual EntityTrackerUpdateId | entityTrackerUpdateId () const |
| DtLgrPacketFilter * | filter (int index) |
| Get the filter by index. More... | |
| const DtLgrPacketFilter * | filter (int index) const |
| Get the filter by index. More... | |
Public Member Functions inherited from MAKLogger::DtCommandInterface | |
| virtual | ~DtCommandInterface () |
| Virtual Constructor. More... | |
| virtual bool | update () |
| Remove all all commands from response queue Update is responsible for updating all responses and synchronizing state. More... | |
| void | disconnectFromDispatcher () |
| Disconnects the interface from its dispatcher, this is for temporarily removing itself from the message queue. More... | |
| void | reconnectToDispatcher () |
| Reconnect the interface to its dispatcher. More... | |
| void | addResponseHandler (const DtCommand &command, DtResponseFunctorSP) |
| virtual void | sendCommand (const DtCommand &) const |
| Send a command to the interface's dispatcher. More... | |
| bool | executeResponse (DtResponse command) |
| Execute a response. More... | |
Public Attributes | |
| DtValueSignal< int > | filterCountChangedSignal |
| Response signals. More... | |
| DtValueSignal< bool > | connectedStatusChangedSignal |
| Response signals. More... | |
| DtValueSignal< bool > | unableToConnectSignal |
| Response signals. More... | |
| DtValueSignal< bool > | activityChangedSignal |
| Response signal. More... | |
| DtValueSignal< bool > | crippleGuiChangedSignal |
| Response signal. More... | |
Protected Types | |
| typedef std::list < DtLgrPacketFilter * > | FilterTypeList |
Protected Types inherited from MAKLogger::DtCommandInterface | |
| typedef std::map< DtCommand, DtResponseFunctorSP, std::less < DtCommand > > | DtResponseMap |
| Callback types. More... | |
The class responsible for interfacing with the simulation in a protocol independent manner.
The factory type of this object.
|
protected |
| MAKLogger::DtLgrSimInterface::DtLgrSimInterface | ( | DtLogger & | , |
| const DtLgrSimDriver & | |||
| ) |
Ctr with Logger and driver for initialization of state.
Secondary constructor.
|
virtual |
DTOR.
|
protected |
|
virtual |
Install a new filter object.
The filter object should be initialized, and allocated with 'new'. Ownership of the memory will be taken by the SimDriver. Access to the object should be completely lost as the object may pass through THREAD boundaries.
|
virtual |
Add a filtered entity name.
|
virtual |
Add a temporary name to the entity tracker.
|
virtual |
Get whether remote control messages are processed regardless of site ID.
|
virtual |
Allow the delete file message to be processed.
|
virtual |
Back channel connection address.
|
protected |
|
virtual |
Back Channel interface.
|
virtual |
Back Channel port.
|
virtual |
Clear filtered entity names.
|
virtual |
Send a command to connect.
|
protected |
|
virtual |
Check the connection settings in the Logger file meta data.
Reimplemented in MAKLogger::DtLgrDisSimInterface.
|
protectedvirtual |
Utility function which connects a DtLgrSimInterface member function as a response handler.
|
protected |
Function which connects the response handlers.
This is called from the constructor and thus not virtual.
|
virtual |
Connect messages are sent using this interval.
|
virtual |
Send a command to connect using a shared exercise connection.
|
virtual |
Cripple GUI interaction (e.g., mouse clicks and minimize window)
|
virtual |
Send a command to disconnect.
|
protected |
|
virtual |
Get the current entity tracker, or null if none.
|
virtual |
| DtLgrPacketFilter* MAKLogger::DtLgrSimInterface::filter | ( | int | index | ) |
Get the filter by index.
| const DtLgrPacketFilter* MAKLogger::DtLgrSimInterface::filter | ( | int | index | ) | const |
Get the filter by index.
|
protected |
|
virtual |
Get the number of filters.
|
virtual |
Get the index of the given filter.
If filter is not found, return -1.
|
protected |
|
protected |
|
pure virtual |
Get a descriptive name for this logger instance.
Implemented in MAKLogger::DtLgrDisSimInterface.
|
virtual |
Logger heartbeat messages are sent using this interval.
|
virtual |
Check to see if the logger is currently connected.
|
virtual |
Return whether listen when idle is enabled.
|
protected |
|
protected |
|
virtual |
Get whether there was network activity during the last tick.
|
virtual |
Get whether remote control messages are processed.
|
pure virtual |
Get the protocol ID.
Implemented in MAKLogger::DtLgrDisSimInterface.
|
virtual |
Get the protocol as a string.
|
virtual |
Get whether remote control messages are recorded in the logger tape.
|
virtual |
Remote control ID.
|
protected |
|
protected |
|
virtual |
Return whether connection configuration should be saved.
|
protected |
|
virtual |
Return whether index configuration should be saved.
|
protected |
|
virtual |
Return whether protocol configuration should be saved.
|
protected |
|
virtual |
Get whether attributes are being scaled.
|
protected |
|
virtual |
Send responses to remote controller?
|
virtual |
Set the dump filename.
|
virtual |
Set the filter settings using a copy of the filter.
The filter supplied must be an existing filter in the internal list, received via filter(int).
|
virtual |
Sends the command to change switch to listen when idle.
|
virtual |
Change how remote control settings.
|
virtual |
Sends the command to change save connection configuration.
|
virtual |
Sends the command to change save index configuration.
|
virtual |
Sends the command to change save protocol configuration.
|
virtual |
Send command to scale attributes.
|
virtual |
Set whether to swap Dead reckon algorithms when paused.
|
virtual |
Return whether Static Dead Reckon Algorithm when pause is enabled.
|
protected |
|
protected |
|
protected |
|
virtual |
Use the back channel connection for remote control?
|
virtual |
Use Legacy control PDU.
|
virtual |
Set connection settings to match those in the Logger file meta data.
|
virtual |
Use the sim channel connection for remote control?
| DtValueSignal<bool> MAKLogger::DtLgrSimInterface::activityChangedSignal |
Response signal.
| DtValueSignal<bool> MAKLogger::DtLgrSimInterface::connectedStatusChangedSignal |
Response signals.
| DtValueSignal<bool> MAKLogger::DtLgrSimInterface::crippleGuiChangedSignal |
Response signal.
| DtValueSignal<int> MAKLogger::DtLgrSimInterface::filterCountChangedSignal |
Response signals.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| DtValueSignal<bool> MAKLogger::DtLgrSimInterface::unableToConnectSignal |
Response signals.