VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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
#include <vlutil/vlThread.h>
14
15
class
DtExerciseConn;
16
class
DtThread;
17
class
DtThreadStart;
18
19
namespace
makVrv
20
{
21
namespace
tutorialDistributedSimulation2B
22
{
23
24
class
DistributedSimulationDriver
:
public
DtDriver
,
25
protected
DtRunnable
26
{
27
public
:
28
30
DistributedSimulationDriver
(
DtAgentManager
&
agentManager
,
const
std::string&
instanceName
);
31
33
virtual
~DistributedSimulationDriver
();
34
36
virtual
const
std::string&
className
()
const
;
37
39
DtExerciseConn*
connection
()
40
{
41
return
myConnection
;
42
}
43
44
protected
:
45
48
virtual
bool
onStart
();
49
51
virtual
bool
onStop
();
52
54
virtual
bool
onTick
();
55
57
virtual
void
run
();
58
61
void
startThread
();
62
65
void
stopThread
();
66
67
protected
:
68
69
DtExerciseConn*
myConnection
;
70
bool
myConnectionState
;
71
73
//Cross thread variables. They are used between the two threads for
74
//communication.
75
DtThreadStartSP
myStart
;
76
DtThread*
myThread
;
78
};
79
80
}
81
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)