Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtLgrSimDriver Class Reference

The abstract interface for the class responsible for controlling the simulation. More...

+ Inheritance diagram for MAKLogger::DtLgrSimDriver:
+ Collaboration diagram for MAKLogger::DtLgrSimDriver:

List of all members.

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 DtLgrPacketFilterfilter (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 DtTime connectSendInterval () const
 Connect messages are sent using this interval.
virtual DtTime heartbeatSendInterval () const
 Logger heartbeat messages are sent using this interval.
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 DtLgrEntityTrackerentityTracker ()
 Get the current entity tracker, or null if none.
virtual void addTemporaryTrackedEntity (const DtString &name)
virtual DtLgrSimManagersimManager ()=0
 Get the simulation manager.
virtual const DtLgrSimManagersimManager () const =0
 Get the simulation manager.

Static Public Member Functions

static DtLgrSimDrivergetFromLogger (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 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.

Protected Attributes

bool myProcessRemoteControls
bool myRecordRemoteControls
bool myAllowAllRemoteControls
bool myAllowRemoteDelete
bool mySendResponses
bool myCrippleGui
DtTime myConnectSendInterval
DtTime myHeartbeatSendInterval
bool myActivity
DtLgrVRFMessageFiltermyVRFMessageFilter
DtLgrEntityIdFiltermyEntityIdFilter
DtLgrSystemDrivermyDriver
DtLgrEntityTracker::TrackerUpdateId myLastEntityTrackerUpdate
DtTime myLastEntityTrackerUpdateTime
DtClock myTrackerUpdateClock

Detailed Description

The abstract interface for the class responsible for controlling the simulation.


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

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)