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

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)