MAK Data Logger API Documentation for HLA
lgrHlaCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef lgrHlaCommandFactory_H_
11 #define lgrHlaCommandFactory_H_
12 
13 #include "lgrSim.h"
14 #include "lgrCommand.h"
15 #include "collectors.h"
16 #include "lgrSimCommandFactory.h"
17 #include "lgrEntityIdFilter.h"
18 
19 #include <utility>
20 #include <vlutil/vlString.h>
21 
22 namespace MAKLogger
23 {
24 
25  class DtBaseFomDesc;
26  class DtCommandDefinition;
27  class DtLgrDisEntityTypeManager;
28 
32  {
33 
34  public:
37 
38 #if DtHLA_1516_EVOLVED
40  SetConnectionParameters,
41  (const DtString& federateName,
42  const DtString& federateType,
43  const DtString& federationName,
44  const DtString& fedFile,
45  const std::vector<DtString>& fomModules,
46  const DtString& mim,
47  bool ignoreAdvisories, double fomVersion, int fomRevision,
48  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
49  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
50  (const DtCommand& command,
51  DtString& federateName,
52  DtString& federateType,
53  DtString& federationName,
54  DtString& fedFile,
55  std::vector<DtString>& fomModules,
56  DtString& mim,
57  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
58  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
59  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
60 
61 #else // !DtHLA_1516_EVOLVED
63  SetConnectionParameters,
64  (const DtString& federateType,
65  const DtString& federationName,
66  const DtString& fedFile,
67  bool ignoreAdvisories, double fomVersion, int fomRevision,
68  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
69  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
70  (const DtCommand& command,
71  DtString& federateName,
72  DtString& federationName,
73  DtString& fedFile,
74  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
75  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
76  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
77 #endif // DtHLA_1516_EVOLVED
78 
80  SetTimeManagement,
81  (bool timeConstrainedRecording, bool timeConstrainedPlayback,
82  bool timeRegulatingRecording, bool timeRegulatingPlayback,
83  double lookahead),
84  (const DtCommand& command,
85  bool& timeConstrainedRecording, bool& timeConstrainedPlayback,
86  bool& timeRegulatingRecording, bool& timeRegulatingPlayback,
87  double& lookahead))
88 
90  SetIgnoreAdvisories,
91  (bool ignore),
92  (const DtCommand& command,
93  bool& ignore))
94 
96  SetPassiveSubscription,
97  (bool passive),
98  (const DtCommand& command,
99  bool& passive))
100 
102  LoadSubscriptionListFile,
103  (const DtString& filename),
104  (const DtCommand& command,
105  DtString& filename))
106 
108  SaveSubscriptionListFile,
109  (const DtString& filename),
110  (const DtCommand& command,
111  DtString& filename))
112 
114  SetSubscriptionLists,
115  (const std::vector<DtString>& objectClasses, const std::vector<DtString>& interactionClasses),
116  (const DtCommand& command,
117  std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
118 
120  SetDisableTimeManagementTest,
121  (bool disableTesting),
122  (const DtCommand& command,
123  bool& disableTesting))
124 
126  SetDynamicNamePrefix,
127  (const DtString& prefix),
128  (const DtCommand& command,
129  DtString& prefix))
130 
132  LoadPublicationListFile,
133  (const DtString& filename),
134  (const DtCommand& command,
135  DtString& filename))
136 
138  SetDrainInput,
139  (double maxTime, double minTime),
140  (const DtCommand& command,
141  double& maxTime, double& minTime))
142 
144  SetDdmParameters,
145  (bool enableDdm, const DtString& playbackMode, const DtString& subscribeMode,
146  bool playbackDynamicAssociation, bool playbackDynamicExtents,
147  bool allowPlaybackWithoutRegions, bool recordConveyedRegions,
148  bool requestUpdates, bool subscribeUnspecifiedAttributes),
149  (const DtCommand& command,
150  bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
151  bool& playbackDynamicAssociation, bool& playbackDynamicExtents,
152  bool& allowPlaybackWithoutRegions, bool& recordConveyedRegions,
153  bool& requestUpdates, bool& subscribeUnspecifiedAttributes))
154 
156  AddTrafficAnalyzerFilter,
157  (void* filter),
158  (const DtCommand& command,
159  void*& filter))
160 
162  RemoveTrafficAnalyzerFilter,
163  (void* filter),
164  (const DtCommand& command,
165  void*& filter))
166 
168  EnableTrafficAnalyzer,
169  (bool enable),
170  (const DtCommand& command,
171  bool& enable))
172 
174  SetEntityTypeManager,
175  ( const DtLgrDisEntityTypeManager&),
176  ( const DtCommand& command, DtLgrDisEntityTypeManager&))
177 
179  SetCommonEntityTypes,
180  ( const std::vector<DtString>& types),
181  ( const DtCommand& command,std::vector<DtString>& types))
182 
184  FilterEntityTypes,
185  ( const std::vector<DtString>& types),
186  ( const DtCommand& command,std::vector<DtString>& types))
187 
189  FilterObjectNames,
190  ( const std::vector<DtString>& names),
191  ( const DtCommand& command,std::vector<DtString>& names))
192 
194  SetCommonObjectNames,
195  ( const std::vector<DtString>& names),
196  ( const DtCommand& command,std::vector<DtString>& names))
197 
198 
200 
201 #if DtHLA_1516_EVOLVED
202  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 1,
203  ConnectionParametersChanged,
204  (const DtString& federateName,
205  const DtString& federateType,
206  const DtString& federationName,
207  const DtString& fedFile,
208  const std::vector<DtString>& fomModules,
209  const DtString& mim,
210  bool ignoreAdvisories, double fomVersion, int fomRevision,
211  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
212  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
213  (DtResponse response,
214  DtString& federateName,
215  DtString& federateType,
216  DtString& federationName,
217  DtString& fedFile,
218  std::vector<DtString>& fomModules,
219  DtString& mim,
220  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
221  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
222  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
223 #else // !DtHLA_1516_EVOLVED
224  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 1,
225  ConnectionParametersChanged,
226  (const DtString& federateType,
227  const DtString& federationName,
228  const DtString& fedFile,
229  bool ignoreAdvisories, double fomVersion, int fomRevision,
230  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
231  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
232  (DtResponse response,
233  DtString& federateType,
234  DtString& federationName,
235  DtString& fedFile,
236  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
237  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
238  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
239 #endif // DtHLA_1516_EVOLVED
240 
241  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 2,
242  FomChanged,
243  (const DtBaseFomDesc& fom),
244  (DtResponse response,
245  DtBaseFomDesc& fom))
246 
247  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 3,
248  SubscriptionListsChanged,
249  (const std::vector<DtString>& objectClasses, const std::vector<DtString>& interactionClasses),
250  (DtResponse response,
251  std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
252 
253  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 4,
254  TimeManagementSettingsChanged,
255  (bool timeConstrainedRecording, bool timeConstrainedPlayback,
256  bool timeRegulatingRecording, bool timeRegulatingPlayback,
257  double lookahead),
258  (DtResponse response,
259  bool& timeConstrainedRecording, bool& timeConstrainedPlayback,
260  bool& timeRegulatingRecording, bool& timeRegulatingPlayback,
261  double& lookahead))
262 
263  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 5,
264  TimeManagementEnabled,
265  (bool enabled,bool constrained,bool regulating),
266  (DtResponse response,
267  bool& enabled, bool& constrained, bool& regulating))
268 
269  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 6,
270  DrainInputSettingsChanged,
271  (double maxTime, double minTime),
272  (DtResponse response,
273  double& maxTime, double& minTime))
274 
275  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 7,
276  DdmParameterSettingsChanged,
277  (bool enableDdm, const DtString& playbackMode, const DtString& subscribeMode,
278  bool playbackDynamicAssociation, bool playbackDynamicExtents,
279  bool allowPlaybackWithoutRegions, bool recordConveyedRegions,
280  bool requestUpdates, bool subscribeUnspecifiedAttributes),
281  (DtResponse response,
282  bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
283  bool& playbackDynamicAssociation, bool& playbackDynamicExtents,
284  bool& allowPlaybackWithoutRegions, bool& recordConveyedRegions,
285  bool& requestUpdates, bool& subscribeUnspecifiedAttributes))
286 
287  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 8,
288  IgnoreAdvisoriesChanged,
289  (bool enabled),
290  (DtResponse response,
291  bool& enabled))
292 
293  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 9,
294  TrafficAnalyzerChanged,
295  (bool enabled),
296  (DtResponse response,
297  bool& enabled))
298 
299  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 10,
300  EntityTypeManagerChanged,
301  (const DtLgrDisEntityTypeManager& mgr),
302  (DtResponse command,DtLgrDisEntityTypeManager& mgr))
303 
304  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 11, EntityIdFilterChanged,
305  (DtLgrEntityIdFilter& filter),
306  (DtResponse command, DtLgrEntityIdFilter& filter))
307 
308  //@}
309 
310 
311  static const char* commandToString(int commandId);
312 
314  static const char* responseToString(int responseId);
315 
317 
318 
319  static DtResponse createConnectedResponse();
320  static DtResponse createDisconnectedResponse();
321  static DtResponse createLostConnectionResponse(const DtString& reason);
322  static DtResponse createUnableToConnectResponse(const DtString& reason);
324 
325  };
326 
327 }
328 
329 #endif

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)