MAK RTIspy API Documentation for HLA Evolved
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
libsrc
RTI
testInteraction.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2008 VT MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: testInteraction.h,v $ $Revision: 1.4 $ $State: Exp $
7
*******************************************************************************/
8
12
13
#ifndef DtTestInteraction_H_
14
#define DtTestInteraction_H_
15
16
17
#include "
rtiMsConfig.h
"
18
#include <vlutil/vlString.h>
19
#include <vlutil/vlFedTarget.h>
20
#include "
internalTypes.h
"
21
#include "
pHandValSet.h
"
22
#include "
attrHandSet.h
"
23
24
class
DtFomClassMgr
;
25
26
33
class
DT_DLL_LRC
DtTestInteraction
34
{
35
public
:
36
38
DtTestInteraction
(
DtFomClassMgr
* fomMgr, MAKRti::DtString className);
39
41
virtual
~
DtTestInteraction
();
42
44
virtual
const
MAKRti::DtString& className()
const
;
45
47
virtual
DtInteractionClassHandle
classHandle()
const
;
48
52
virtual
const
DtPhvps& parameters() = 0;
53
56
virtual
bool
setFromParameters(
const
DtPhvps& phvps) = 0;
57
59
virtual
DtFederateHandle
targetFederate()
const
;
60
62
virtual
void
setTargetFederate(
DtFederateHandle
handle);
63
65
virtual
void
setTransportType(MAKRti::DtTransportType transport);
66
68
virtual
void
setPayloadSize(
unsigned
int
payload);
69
71
virtual
unsigned
int
payloadSize()
const
;
72
74
virtual
MAKRti::DtU32 testId()
const
;
75
77
virtual
void
setTestId(
unsigned
int
id
);
78
79
protected
:
80
82
virtual
void
encodeTargetFederate();
83
85
virtual
void
encodeTestId();
86
88
virtual
void
encodePayload();
89
92
static
bool
decodeU32(
93
const
DtPhvps& parameters,
94
int
index,
95
MAKRti::DtU32& value);
96
99
static
bool
decodeU64(
100
const
DtPhvps& parameters,
101
int
index,
102
MAKRti::DtU64& value);
103
106
virtual
bool
decodeTargetFederate(
107
const
DtPhvps& parameters,
108
int
index);
109
112
virtual
bool
decodeTestId(
113
const
DtPhvps& parameters,
114
int
index);
115
118
virtual
bool
decodePayload(
119
const
DtPhvps& parameters,
120
int
index );
121
122
private
:
124
DtTestInteraction
(
DtTestInteraction
const
& orig);
125
127
DtTestInteraction
& operator= (
DtTestInteraction
const
& orig);
128
129
public
:
130
132
133
static
const
MAKRti::DtString
theNameTargetFederate
;
134
static
const
MAKRti::DtString
theNameTestId
;
135
static
const
MAKRti::DtString
theNamePayload
;
137
138
protected
:
139
140
DtFomClassMgr
*
myFomMgr
;
141
MAKRti::DtString
myClassName
;
142
DtInteractionClassHandle
myClassHandle
;
143
DtPhvps *
myParameters
;
144
#ifdef DtIFSPEC1516
145
rti1516::ParameterHandleValueMap
myValueMap;
146
#elif defined(DtIFSPEC1516E)
147
rti1516e::ParameterHandleValueMap
myValueMap;
148
#endif
149
151
152
DtParameterHandle
myHandleTargetFederate
;
153
DtParameterHandle
myHandleTestId
;
154
DtParameterHandle
myHandlePayload
;
156
158
159
DtFederateHandle
myTargetFederate
;
160
MAKRti::DtU32
myTestId
;
161
MAKRti::DtU32
myPayloadSize
;
163
};
165
class
DT_DLL_LRC
DtLatencyTestInteraction
:
public
DtTestInteraction
166
{
167
public
:
168
170
DtLatencyTestInteraction
(
DtFomClassMgr
* fomMgr);
171
173
virtual
~
DtLatencyTestInteraction
();
174
176
virtual
const
DtPhvps&
parameters
();
177
180
virtual
bool
setFromParameters
(
const
DtPhvps& phvps);
181
182
183
private
:
185
DtLatencyTestInteraction
(
DtLatencyTestInteraction
const
& orig);
186
188
DtLatencyTestInteraction
&
operator=
(
DtLatencyTestInteraction
const
& orig);
189
190
public
:
191
static
const
MAKRti::DtString
theInteractionName
;
192
193
protected
:
194
195
DtParameterHandle
myDataHandle
;
196
197
};
198
200
void
DT_DLL_LRC
addTestToFom
(
DtFomClassMgr
& fom);
201
202
203
#endif
204
Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)