VR-Forces 4.7 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 "
vrfplan/simCommandStmt.h
"
17
#include "
vrfutil/rwUUID.h
"
18
19
class
DtSimManager
;
20
class
DtSimCommand
;
21
class
DtSimCommandExecutorFactory
;
22
class
DtPlan
;
23
29
30
class
DT_DLL_vrfobjcore
DtSimCommandExecutor
31
{
32
public
:
33
DtSimCommandExecutor
(
DtSimManager
* simManager);
34
35
virtual
~
DtSimCommandExecutor
();
36
40
virtual
bool
executeAndDistribute(
const
DtSimCommand
* command,
DtSimCommandContextPtr
& context,
const
DtPlan
* plan = 0);
41
45
virtual
bool
executeAndDistribute(
const
DtSimCommand
* command,
DtSimCommandContextPtr
& context,
const
DtUUID
& objectName,
46
const
DtPlan
* plan = 0);
47
51
virtual
bool
isSimCommandComplete(
const
DtSimCommand
* command,
const
DtSimCommandContextPtr
& context,
const
DtPlan
* = 0)
const
;
52
55
virtual
void
distribute(
const
DtSimCommand
* command,
const
DtPlan
* plan = 0);
56
64
virtual
void
distribute(
const
DtSimCommand
* command,
const
DtUUID
& objectName,
65
const
DtPlan
* plan = 0);
66
68
static
void
setFactory(
DtSimCommandExecutorFactory
* factory);
69
72
static
DtSimCommandExecutor
* createSimCommandExecutor(
const
DtSimCommandMessageType
& type,
DtSimManager
* simManager);
73
74
protected
:
83
virtual
bool
execute(
const
DtSimCommand
* command,
DtSimCommandContextPtr
& context,
const
DtPlan
* plan = 0) = 0;
84
91
virtual
bool
execute(
const
DtSimCommand
* command,
DtSimCommandContextPtr
& context,
const
DtUUID
& objectName,
92
const
DtPlan
* plan = 0);
93
94
private
:
96
DtSimCommandExecutor
();
98
DtSimCommandExecutor
(
const
DtSimCommandExecutor
& orig);
100
DtSimCommandExecutor
& operator=(
const
DtSimCommandExecutor
& orig);
101
102
protected
:
103
DtSimManager
*
mySimManager
;
104
105
static
DtSimCommandExecutorFactory
*
myFactory
;
106
};
107
110
class
DT_DLL_vrfobjcore
DtSimCommandDistributionExecutor
:
public
DtSimCommandExecutor
111
{
112
public
:
113
DtSimCommandDistributionExecutor
(
DtSimManager
* simManager) :
DtSimCommandExecutor
(simManager) {};
114
115
virtual
~DtSimCommandDistributionExecutor
() {};
116
117
static
DtSimCommandExecutor
* create(
DtSimManager
* simManager);
118
119
protected
:
120
121
virtual
bool
execute
(
const
DtSimCommand
* command,
DtSimCommandContextPtr
& context,
const
DtPlan
* plan = 0) {
return
true
; };
122
123
private
:
125
DtSimCommandDistributionExecutor
();
127
DtSimCommandDistributionExecutor
(
const
DtSimCommandDistributionExecutor
& orig);
129
DtSimCommandDistributionExecutor
&
operator=
(
const
DtSimCommandDistributionExecutor
& orig);
130
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)