![]() |
MAK Data Logger API Documentation for DIS
|
The abstract interface for the class responsible for controlling the simulation. More...
Inheritance diagram for MAKLogger::DtLgrSimDriver:
Collaboration diagram for MAKLogger::DtLgrSimDriver:Public Types | |
| typedef DtLgrSimCommandFactory | Factory |
| typedef DtLgrSimInterface | Interface |
| typedef std::pair< double, bool > | HeartbeatTimeRecord |
| Heartbeat time (seconds), inheritable flag (ignored in DIS) | |
Public Member Functions | |
| DtLgrSimDriver (DtLgrSystemDriver &systemDriver) | |
| Constructor. | |
| virtual | ~DtLgrSimDriver () |
| Destructor. | |
| virtual void | tick () |
| Tick the driver. | |
| virtual bool | isConnected () const =0 |
| Get whether the simulation is connected. | |
| virtual void | addPacketFilter (DtLgrPacketFilter *filter) |
| Add a packet filter object. | |
| virtual void | removeFilter (const DtLgrPacketFilter *filter) |
| Remove a packet filter object. | |
| virtual bool | activity () const |
| Get whether there is simulation activity (this tick). | |
| virtual int | filterCount () const |
| Get the number of filters added. | |
| virtual const DtLgrPacketFilter * | filter (int index) const |
| Get a filter based on an index from 0 to filterCount(). | |
| virtual bool | processRemoteControls () const |
| Get whether remove control messages are processed. | |
| virtual bool | recordRemoteControls () const |
| Get whether remove control messages are recorded. | |
| virtual bool | allowAllRemoteControls () const |
| Get whether remote control messages process regardless of site ID. | |
| virtual bool | allowRemoteDelete () const |
| Get whether remove delete messages are processed. | |
| virtual bool | sendResponses () const |
| Get whether to send responses. | |
| virtual bool | crippleGui () const |
| Get whether to cripple the GUI (i.e., diable mouse clicks and minimimze window) | |
| virtual bool | useLegacyPdu () const |
| Get whether to use legacy control PDU. | |
| virtual DtTime | connectSendInterval () const |
| Connect messages are sent using this interval. | |
| virtual DtTime | heartbeatSendInterval () const |
| Logger heartbeat messages are sent using this interval. | |
| virtual bool | useBackChannel () const |
| Use the back channel connection? | |
| virtual const DtString & | backChannelAddress () const |
| Back channel connection address. | |
| virtual int | backChannelPort () const |
| Back Channel port. | |
| virtual const DtString & | backChannelInterface () const |
| Back Channel interface. | |
| virtual bool | scaleAttributes () const |
| Get whether attributes are scaled. | |
| virtual const std::map < DtString, DtLgrSimDriver::HeartbeatTimeRecord > & | heartbeatIntervals () const |
| Return a const reference to the heartbeat interval table. | |
| virtual const std::map < DtString, DtLgrSimDriver::HeartbeatTimeRecord > & | timeoutIntervals () const |
| Return a const reference to the timeout interval table. | |
| virtual void | updateEntityTracker (const DtString &tracker) |
| Update the driver's entity tracker to match argument. | |
| virtual DtLgrEntityTracker * | entityTracker () |
| Get the current entity tracker, or null if none. | |
| virtual void | addTemporaryTrackedEntity (const DtString &name) |
| virtual DtLgrSimManager * | simManager ()=0 |
| Get the simulation manager. | |
| virtual const DtLgrSimManager * | simManager () const =0 |
| Get the simulation manager. | |
Public Member Functions inherited from MAKLogger::DtLgrCommandHandler | |
| DtLgrCommandHandler (const DtString &name, DtRuntimeCommandFactory *, DtCommandDispatcherSP) | |
| Constructor which provides the name, the runtime factory, and the dispatcher which receives and transmits commands. | |
| virtual | ~DtLgrCommandHandler () |
| DTOR. | |
| void | lock () |
| Locks the Command Handler. | |
| void | unlock () |
| Unlocks the Command Handler. | |
| DtCommandDispatcherSP | dispatcher () |
| Get the dispatcher the command handler is connected to. | |
| virtual const DtString & | driverName () const |
| Get the name of the driver. | |
| virtual const DtString & | driverInfo () |
| Get the name of the driver. | |
| virtual void | processCommand (const DtCommand &command) |
| Process a specific command. | |
| virtual bool | releasePipeline ()=0 |
| Attempt to release the pipeline. | |
| virtual bool | getPipeline ()=0 |
| Attempt to acquire the pipeline. | |
| virtual bool | hasPipeline () const =0 |
| Does this object own the pipeline. | |
Static Public Member Functions | |
| static DtLgrSimDriver * | getFromLogger (const DtLogger &logger) |
| Get the sim driver used by the Logger object. | |
Protected Member Functions | |
| virtual void | setActivity (bool activity) |
| Set whether there is activity this tick. | |
| virtual void | setVRFMessageFiltering (bool filter, int lowId, int hiId) |
| Set the VRF Filtering. | |
| virtual DtResponse | setRemoteControlSettings (const DtCommand &command) |
| Set the remote control settings. | |
| virtual DtResponse | setBackChannelConnection (const DtCommand &command) |
| virtual DtResponse | setRemoteControlId (const DtCommand &command) |
Connect Handlers | |
| virtual DtResponse | addFilter (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | connect (const DtCommand &command)=0 |
| Add a packet filter object. | |
| virtual DtResponse | connectShared (const DtCommand &command)=0 |
| Add a packet filter object. | |
| virtual DtResponse | disconnect (const DtCommand &command)=0 |
| Add a packet filter object. | |
| virtual DtResponse | setFilterSettings (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | setScaleAttributes (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | setVRFFiltering (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | addFilteredEntityName (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | clearFilteredEntityNames (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | setHeartbeatIntervals (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | setTimeoutIntervals (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | addTemporaryTrackedEntity (const DtCommand &command) |
| Add a packet filter object. | |
| virtual DtResponse | setPlaybackFilesUseRandomAccess (const DtCommand &command) |
| Add a packet filter object. | |
Protected Member Functions inherited from MAKLogger::DtLgrCommandHandler | |
| void | addCommandHandler (const DtCommandDefinition &commandDef, DtCommandFunctorSP commandFunctor) |
| Add a commandHandler, this should not be virtual as it is called in constructors. | |
| void | removeCommandHandler (const DtCommandDefinition &commandDef) |
| Remove a commandHandler, this is typically not called but necessary for replacing a command handler. | |
| virtual void | sendResponse (DtResponse response) |
| Send a response, for functions that have multiple responses make this call. | |
| virtual void | queueResponse (DtResponse response) |
| Queue a response for future sending. | |
| virtual void | sendQueuedResponses () |
| Sends all queued responses and clears the queue. | |
| virtual void | emptyResponseQueue () |
| Empty the response queue (deleting any unsent responses). | |
Protected Attributes | |
| bool | myProcessRemoteControls |
| bool | myUseBackChannel |
| bool | myRecordRemoteControls |
| bool | myAllowAllRemoteControls |
| bool | myAllowRemoteDelete |
| bool | mySendResponses |
| bool | myCrippleGui |
| bool | myUseLegacyPdu |
| DtString | myBackChannelAddress |
| DtString | myBackChannelInterface |
| int | myBackChannelPort |
| DtTime | myConnectSendInterval |
| DtTime | myHeartbeatSendInterval |
| bool | myActivity |
| DtLgrVRFMessageFilter * | myVRFMessageFilter |
| DtLgrEntityIdFilter * | myEntityIdFilter |
| DtLgrSystemDriver * | myDriver |
| DtLgrEntityTracker::TrackerUpdateId | myLastEntityTrackerUpdate |
| DtTime | myLastEntityTrackerUpdateTime |
| DtClock | myTrackerUpdateClock |
Protected Attributes inherited from MAKLogger::DtLgrCommandHandler | |
| DtRuntimeCommandFactory * | myRuntimeCommandFactory |
| DtLgrCommandHandlerMap | myCommandMap |
| DtCommandDispatcherSP | myDispatcher |
| DtResponseQueue | myResponseQueue |
| DtString | myName |
| DtString | myInfo |
| DtMutex | myMutex |
Additional Inherited Members | |
Protected Types inherited from MAKLogger::DtLgrCommandHandler | |
| typedef DtLgrCommandHandler *(* | DriverCreator )(DtCommandDispatcherSP) |
| typedef std::map < DtLgrCommandId, DtCommandFunctorSP > | DtLgrCommandHandlerMap |
| typedef std::map< DtString, DtLgrCommandId > | DtLgrCommandNameMap |
| typedef std::list< DtResponse > | DtResponseQueue |
The abstract interface for the class responsible for controlling the simulation.
| typedef std::pair<double, bool> MAKLogger::DtLgrSimDriver::HeartbeatTimeRecord |
Heartbeat time (seconds), inheritable flag (ignored in DIS)
| MAKLogger::DtLgrSimDriver::DtLgrSimDriver | ( | DtLgrSystemDriver & | systemDriver | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Get whether there is simulation activity (this tick).
|
protectedvirtual |
Add a packet filter object.
|
protectedvirtual |
Add a packet filter object.
Reimplemented in MAKLogger::DtLgrDisSimDriver.
|
virtual |
Add a packet filter object.
|
virtual |
|
protectedvirtual |
Add a packet filter object.
|
virtual |
Get whether remote control messages process regardless of site ID.
|
virtual |
Get whether remove delete messages are processed.
|
virtual |
Back channel connection address.
|
virtual |
Back Channel interface.
|
virtual |
Back Channel port.
|
protectedvirtual |
Add a packet filter object.
|
protectedpure virtual |
Add a packet filter object.
Implemented in MAKLogger::DtLgrDisSimDriver.
|
virtual |
Connect messages are sent using this interval.
|
protectedpure virtual |
Add a packet filter object.
Implemented in MAKLogger::DtLgrDisSimDriver.
|
virtual |
Get whether to cripple the GUI (i.e., diable mouse clicks and minimimze window)
|
protectedpure virtual |
Add a packet filter object.
Implemented in MAKLogger::DtLgrDisSimDriver.
|
virtual |
Get the current entity tracker, or null if none.
|
virtual |
Get a filter based on an index from 0 to filterCount().
|
virtual |
Get the number of filters added.
|
static |
Get the sim driver used by the Logger object.
|
virtual |
Return a const reference to the heartbeat interval table.
|
virtual |
Logger heartbeat messages are sent using this interval.
|
pure virtual |
Get whether the simulation is connected.
Implemented in MAKLogger::DtLgrDisSimDriver.
|
virtual |
Get whether remove control messages are processed.
|
virtual |
Get whether remove control messages are recorded.
|
virtual |
Remove a packet filter object.
|
virtual |
Get whether attributes are scaled.
|
virtual |
Get whether to send responses.
|
protectedvirtual |
Set whether there is activity this tick.
|
protectedvirtual |
|
protectedvirtual |
Add a packet filter object.
|
protectedvirtual |
Add a packet filter object.
|
protectedvirtual |
Add a packet filter object.
|
protectedvirtual |
|
protectedvirtual |
Set the remote control settings.
|
protectedvirtual |
Add a packet filter object.
|
protectedvirtual |
Add a packet filter object.
|
protectedvirtual |
Add a packet filter object.
|
protectedvirtual |
Set the VRF Filtering.
|
pure virtual |
Get the simulation manager.
Implemented in MAKLogger::DtLgrDisSimDriver.
|
pure virtual |
Get the simulation manager.
Implemented in MAKLogger::DtLgrDisSimDriver.
|
virtual |
Tick the driver.
Implements MAKLogger::DtLgrCommandHandler.
Reimplemented in MAKLogger::DtLgrDisSimDriver.
|
virtual |
Return a const reference to the timeout interval table.
|
virtual |
Update the driver's entity tracker to match argument.
|
virtual |
Use the back channel connection?
|
virtual |
Get whether to use legacy control PDU.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |