12 #include <vlutil/vlRunnable.h>
13 #include <vlutil/vlThread.h>
21 namespace tutorialDistributedSimulation2B
36 virtual const std::string&
className()
const;
virtual ~DistributedSimulationDriver()
DTOR.
virtual const std::string & className() const
Get the class name as a string.
void stopThread()
Attempt to stop the thread, blocking until the thread stops.
DtThreadStartSP myStart
Definition: DistributedSimulationDriver2B.h:75
virtual bool onStart()
Called when the driver is started by the display engine Restores state that existed the last time the...
DtExerciseConn * myConnection
Definition: DistributedSimulationDriver2B.h:69
virtual void run()
function that will be called when the thread is started.
virtual bool onTick()
Tick the driver. If this driver needs to perform actions per the sim clock.
The DtDriver is an abstract class.
Definition: DtDriver.h:34
virtual bool onStop()
Called when the driver is stopped by the display engine.
The DtAgentManager manages the distributed scene object framework.
Definition: DtAgentManager.h:38
bool myConnectionState
Definition: DistributedSimulationDriver2B.h:70
Contains makVrv:DtDriver class.
virtual const std::string & instanceName() const
Get this driver's instance name.
DtExerciseConn * connection()
Returns the connection object being used.
Definition: DistributedSimulationDriver2B.h:39
Definition: DistributedSimulationDriver2B.h:24
DistributedSimulationDriver(DtAgentManager &agentManager, const std::string &instanceName)
CTOR.
DtThread * myThread
Definition: DistributedSimulationDriver2B.h:76
void startThread()
Attempt to start the thread.
DtAgentManager & agentManager()
Get the master scene for this host.