MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrHlaSimCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <lgrCmds/lgrCmds.h>
13 #include <lgrCmds/lgrCommand.h>
14 #include <lgrUtil/collectors.h>
16 
17 #include <utility>
18 #include <vlutil/vlString.h>
19 
20 namespace MAKLogger
21 {
22 
23  class DtCommandDefinition;
24  class DtLgrDisEntityTypeManager;
25 
29  {
30 
31  public:
34 
36  SetConnectionParametersHLA,
37  (const DtString& federateType,
38  const DtString& federationName,
39  const DtString& fedFile,
40  bool ignoreAdvisories, double fomVersion, int fomRevision,
41  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
42  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
43  (const DtCommand& command,
44  DtString& federateName,
45  DtString& federationName,
46  DtString& fedFile,
47  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
48  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
49  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
50 
52  SetConnectionParametersHLAe,
53  (const DtString& federateName,
54  const DtString& federateType,
55  const DtString& federationName,
56  const DtString& fedFile,
57  const std::vector<DtString>& fomModules,
58  const DtString& mim,
59  bool ignoreAdvisories, double fomVersion, int fomRevision,
60  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
61  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
62  (const DtCommand& command,
63  DtString& federateName,
64  DtString& federateType,
65  DtString& federationName,
66  DtString& fedFile,
67  std::vector<DtString>& fomModules,
68  DtString& mim,
69  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
70  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
71  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
72 
74  SetTimeManagement,
75  (bool timeConstrainedRecording, bool timeConstrainedPlayback,
76  bool timeRegulatingRecording, bool timeRegulatingPlayback,
77  double lookahead),
78  (const DtCommand& command,
79  bool& timeConstrainedRecording, bool& timeConstrainedPlayback,
80  bool& timeRegulatingRecording, bool& timeRegulatingPlayback,
81  double& lookahead))
82 
84  SetIgnoreAdvisories,
85  (bool ignore),
86  (const DtCommand& command,
87  bool& ignore))
88 
90  SetPassiveSubscription,
91  (bool passive),
92  (const DtCommand& command,
93  bool& passive))
94 
96  LoadSubscriptionListFile,
97  (const DtString& filename),
98  (const DtCommand& command,
99  DtString& filename))
100 
102  SaveSubscriptionListFile,
103  (const DtString& filename),
104  (const DtCommand& command,
105  DtString& filename))
106 
108  SetSubscriptionLists,
109  (const std::vector<DtString>& objectClasses, const std::vector<DtString>& interactionClasses),
110  (const DtCommand& command,
111  std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
112 
114  SetDisableTimeManagementTest,
115  (bool disableTesting),
116  (const DtCommand& command,
117  bool& disableTesting))
118 
120  SetDynamicNamePrefix,
121  (const DtString& prefix),
122  (const DtCommand& command,
123  DtString& prefix))
124 
126  LoadPublicationListFile,
127  (const DtString& filename),
128  (const DtCommand& command,
129  DtString& filename))
130 
132  SetDrainInput,
133  (double maxTime, double minTime),
134  (const DtCommand& command,
135  double& maxTime, double& minTime))
136 
138  SetDdmParameters,
139  (bool enableDdm, const DtString& playbackMode, const DtString& subscribeMode,
140  bool playbackDynamicAssociation, bool playbackDynamicExtents,
141  bool allowPlaybackWithoutRegions, bool recordConveyedRegions,
142  bool requestUpdates, bool subscribeUnspecifiedAttributes),
143  (const DtCommand& command,
144  bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
145  bool& playbackDynamicAssociation, bool& playbackDynamicExtents,
146  bool& allowPlaybackWithoutRegions, bool& recordConveyedRegions,
147  bool& requestUpdates, bool& subscribeUnspecifiedAttributes))
148 
150  AddTrafficAnalyzerFilter,
151  (void* filter),
152  (const DtCommand& command,
153  void*& filter))
154 
156  RemoveTrafficAnalyzerFilter,
157  (void* filter),
158  (const DtCommand& command,
159  void*& filter))
160 
162  EnableTrafficAnalyzer,
163  (bool enable),
164  (const DtCommand& command,
165  bool& enable))
166 
168  SetEntityTypeManager,
169  ( const DtBase64Data&),
170  ( const DtCommand& command, DtBase64Data&))
171 
173  SetCommonEntityTypes,
174  ( const std::vector<DtString>& types),
175  ( const DtCommand& command,std::vector<DtString>& types))
176 
178  FilterEntityTypes,
179  ( const std::vector<DtString>& types),
180  ( const DtCommand& command,std::vector<DtString>& types))
181 
183  FilterObjectNames,
184  ( const std::vector<DtString>& names),
185  ( const DtCommand& command,std::vector<DtString>& names))
186 
188  SetCommonObjectNames,
189  ( const std::vector<DtString>& names),
190  ( const DtCommand& command,std::vector<DtString>& names))
191 
193  SetFilterMomSubscription,
194  (bool enable),
195  (const DtCommand& command,
196  bool& enable))
197 
199  SetRequestUpdates,
200  (bool enable),
201  (const DtCommand& command,
202  bool& enable))
203 
205  SetSaveTrafficAnalyzerConfiguration,
206  (bool enable),
207  (const DtCommand& command,
208  bool& enable))
209 
211  SetSendOnlyUpdatedValues,
212  (bool enable),
213  (const DtCommand& command,
214  bool& enable))
215 
217 
218 
220  ConnectionParametersHLAChanged,
221  (const DtString& federateType,
222  const DtString& federationName,
223  const DtString& fedFile,
224  bool ignoreAdvisories, double fomVersion, int fomRevision,
225  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
226  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
227  (DtResponse response,
228  DtString& federateType,
229  DtString& federationName,
230  DtString& fedFile,
231  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
232  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
233  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
234 
236  ConnectionParametersHLAeChanged,
237  (const DtString& federateName,
238  const DtString& federateType,
239  const DtString& federationName,
240  const DtString& fedFile,
241  const std::vector<DtString>& fomModules,
242  const DtString& mim,
243  bool ignoreAdvisories, double fomVersion, int fomRevision,
244  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
245  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
246  (DtResponse response,
247  DtString& federateName,
248  DtString& federateType,
249  DtString& federationName,
250  DtString& fedFile,
251  std::vector<DtString>& fomModules,
252  DtString& mim,
253  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
254  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
255  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
256 
258  FomChanged,
259  (const DtBase64Data& data),
260  (DtResponse response,
261  DtBase64Data& data))
262 
264  SubscriptionListsChanged,
265  (const std::vector<DtString>& objectClasses, const std::vector<DtString>& interactionClasses),
266  (DtResponse response,
267  std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
268 
270  TimeManagementSettingsChanged,
271  (bool timeConstrainedRecording, bool timeConstrainedPlayback,
272  bool timeRegulatingRecording, bool timeRegulatingPlayback,
273  double lookahead),
274  (DtResponse response,
275  bool& timeConstrainedRecording, bool& timeConstrainedPlayback,
276  bool& timeRegulatingRecording, bool& timeRegulatingPlayback,
277  double& lookahead))
278 
280  TimeManagementEnabled,
281  (bool enabled,bool constrained,bool regulating),
282  (DtResponse response,
283  bool& enabled, bool& constrained, bool& regulating))
284 
286  DrainInputSettingsChanged,
287  (double maxTime, double minTime),
288  (DtResponse response,
289  double& maxTime, double& minTime))
290 
292  DdmParameterSettingsChanged,
293  (bool enableDdm, const DtString& playbackMode, const DtString& subscribeMode,
294  bool playbackDynamicAssociation, bool playbackDynamicExtents,
295  bool allowPlaybackWithoutRegions, bool recordConveyedRegions,
296  bool requestUpdates, bool subscribeUnspecifiedAttributes),
297  (DtResponse response,
298  bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
299  bool& playbackDynamicAssociation, bool& playbackDynamicExtents,
300  bool& allowPlaybackWithoutRegions, bool& recordConveyedRegions,
301  bool& requestUpdates, bool& subscribeUnspecifiedAttributes))
302 
304  IgnoreAdvisoriesChanged,
305  (bool enabled),
306  (DtResponse response,
307  bool& enabled))
308 
310  TrafficAnalyzerChanged,
311  (bool enabled),
312  (DtResponse response,
313  bool& enabled))
314 
316  EntityTypeManagerChanged,
317  (const DtBase64Data& mgr),
318  (DtResponse command,DtBase64Data& mgr))
319 
320 
322  EntityIdFilterChanged,
323  (DtBase64Data& filter),
324  (DtResponse command, DtBase64Data& filter))
325 
327  RequestUpdatesChanged,
328  (bool enabled),
329  (DtResponse response,
330  bool& enabled))
331 
333  SaveTrafficAnalyzerConfigurationChanged,
334  (bool enabled),
335  (DtResponse response,
336  bool& enabled))
337 
339  SendOnlyUpdatedValuesChanged,
340  (bool enabled),
341  (DtResponse response,
342  bool& enabled))
343 
345  PassiveSubscriptionChanged,
346  (bool enabled),
347  (DtResponse response,
348  bool& enabled))
349 
351 
353  static const char* commandToString(int commandId);
354 
356  static const char* responseToString(int responseId);
357 
359 
360 
361  static DtResponse createConnectedResponse();
362  static DtResponse createDisconnectedResponse();
363  static DtResponse createLostConnectionResponse(const DtString& reason);
364  static DtResponse createUnableToConnectResponse(const DtString& reason);
366 
367  };
368 
369 }

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)