VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
tutorialDistributedSimulation2B
DistributedSimulationDriver2B.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#pragma once
10
11
#include <vrvCore/DtDriver.h>
12
#include <vlutil/vlRunnable.h>
13
14
class
DtExerciseConn;
15
class
DtThread;
16
class
DtThreadStart;
17
18
namespace
makVrv
19
{
20
namespace
tutorialDistributedSimulation2B
21
{
22
23
class
DistributedSimulationDriver
:
public
DtDriver
,
24
protected
DtRunnable
25
{
26
public
:
27
29
DistributedSimulationDriver
(DtAgentManager& agentManager,
const
std::string& instanceName);
30
32
virtual
~DistributedSimulationDriver
();
33
35
virtual
const
std::string&
className
()
const
;
36
38
DtExerciseConn*
connection
()
39
{
40
return
myConnection
;
41
}
42
43
protected
:
44
47
virtual
bool
onStart
();
48
50
virtual
bool
onStop
();
51
53
virtual
bool
onTick
();
54
56
virtual
void
run
();
57
60
void
startThread
();
61
64
void
stopThread
();
65
66
protected
:
67
68
DtExerciseConn*
myConnection
;
69
bool
myConnectionState
;
70
72
//Cross thread variables. They are used between the two threads for
73
//communication.
74
DtThreadStart*
myStart
;
75
DtThread*
myThread
;
77
};
78
79
}
80
}
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)