VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfobjcore
simCommandExecutor.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "
vrfobjcore/vrfobjcoreDefines.h
"
14
#include <vlutil/vlString.h>
15
#include "
vrftasks/radioMessageTypes.h
"
16
#include "
vrfutil/rwUUID.h
"
17
18
class
DtSimManager
;
19
class
DtSimCommand
;
20
class
DtSimCommandExecutorFactory
;
21
class
DtPlan
;
22
28
29
class
DT_DLL_vrfobjcore
DtSimCommandExecutor
30
{
31
public
:
32
DtSimCommandExecutor
(
DtSimManager
* simManager);
33
34
virtual
~
DtSimCommandExecutor
();
35
39
virtual
bool
executeAndDistribute(
const
DtSimCommand
* command,
const
DtPlan
* plan = 0);
40
44
virtual
bool
executeAndDistribute(
const
DtSimCommand
* command,
const
DtUUID
& objectName,
45
const
DtPlan
* plan = 0);
46
48
static
void
setFactory(
DtSimCommandExecutorFactory
* factory);
49
52
static
DtSimCommandExecutor
* createSimCommandExecutor(
const
DtSimCommandMessageType
& type,
DtSimManager
* simManager);
53
54
protected
:
63
virtual
bool
execute(
const
DtSimCommand
* command,
const
DtPlan
* plan = 0) = 0;
64
71
virtual
bool
execute(
const
DtSimCommand
* command,
const
DtUUID
& objectName,
72
const
DtPlan
* plan = 0);
73
76
virtual
void
distribute(
const
DtSimCommand
* command,
const
DtPlan
* plan = 0);
77
85
virtual
void
distribute(
const
DtSimCommand
* command,
const
DtUUID
& objectName,
86
const
DtPlan
* plan = 0);
87
88
private
:
90
DtSimCommandExecutor
();
92
DtSimCommandExecutor
(
const
DtSimCommandExecutor
& orig);
94
DtSimCommandExecutor
& operator=(
const
DtSimCommandExecutor
& orig);
95
96
protected
:
97
DtSimManager
*
mySimManager
;
98
99
static
DtSimCommandExecutorFactory
*
myFactory
;
100
};
101
104
class
DT_DLL_vrfobjcore
DtSimCommandDistributionExecutor
:
public
DtSimCommandExecutor
105
{
106
public
:
107
DtSimCommandDistributionExecutor
(
DtSimManager
* simManager) :
DtSimCommandExecutor
(simManager) {};
108
109
virtual
~DtSimCommandDistributionExecutor
() {};
110
111
static
DtSimCommandExecutor
* create(
DtSimManager
* simManager);
112
113
protected
:
114
115
virtual
bool
execute
(
const
DtSimCommand
* command,
const
DtPlan
* plan = 0) {
return
true
; };
116
117
private
:
119
DtSimCommandDistributionExecutor
();
121
DtSimCommandDistributionExecutor
(
const
DtSimCommandDistributionExecutor
& orig);
123
DtSimCommandDistributionExecutor
&
operator=
(
const
DtSimCommandDistributionExecutor
& orig);
124
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)