MAK Data Logger API Documentation for DIS
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.h"
13 #include "lgrCommand.h"
14 #include "collectors.h"
15 #include "lgrSimCommandFactory.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 
35  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 1,
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 
51  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 2,
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 
73  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 3,
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 
83  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 4,
84  SetIgnoreAdvisories,
85  (bool ignore),
86  (const DtCommand& command,
87  bool& ignore))
88 
89  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 5,
90  SetPassiveSubscription,
91  (bool passive),
92  (const DtCommand& command,
93  bool& passive))
94 
95  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 6,
96  LoadSubscriptionListFile,
97  (const DtString& filename),
98  (const DtCommand& command,
99  DtString& filename))
100 
101  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 7,
102  SaveSubscriptionListFile,
103  (const DtString& filename),
104  (const DtCommand& command,
105  DtString& filename))
106 
107  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 8,
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 
113  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 9,
114  SetDisableTimeManagementTest,
115  (bool disableTesting),
116  (const DtCommand& command,
117  bool& disableTesting))
118 
119  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 10,
120  SetDynamicNamePrefix,
121  (const DtString& prefix),
122  (const DtCommand& command,
123  DtString& prefix))
124 
125  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 11,
126  LoadPublicationListFile,
127  (const DtString& filename),
128  (const DtCommand& command,
129  DtString& filename))
130 
131  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 12,
132  SetDrainInput,
133  (double maxTime, double minTime),
134  (const DtCommand& command,
135  double& maxTime, double& minTime))
136 
137  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 13,
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 
149  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 14,
150  AddTrafficAnalyzerFilter,
151  (void* filter),
152  (const DtCommand& command,
153  void*& filter))
154 
155  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 15,
156  RemoveTrafficAnalyzerFilter,
157  (void* filter),
158  (const DtCommand& command,
159  void*& filter))
160 
161  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 16,
162  EnableTrafficAnalyzer,
163  (bool enable),
164  (const DtCommand& command,
165  bool& enable))
166 
167  DT_FACTORY_COMMAND_EXT(DtLgrSimCommandFactory::Last_Command + 17,
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 
194 
196  ConnectionParametersHLAChanged,
197  (const DtString& federateType,
198  const DtString& federationName,
199  const DtString& fedFile,
200  bool ignoreAdvisories, double fomVersion, int fomRevision,
201  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
202  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
203  (DtResponse response,
204  DtString& federateType,
205  DtString& federationName,
206  DtString& fedFile,
207  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
208  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
209  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
210 
212  ConnectionParametersHLAeChanged,
213  (const DtString& federateName,
214  const DtString& federateType,
215  const DtString& federationName,
216  const DtString& fedFile,
217  const std::vector<DtString>& fomModules,
218  const DtString& mim,
219  bool ignoreAdvisories, double fomVersion, int fomRevision,
220  bool useMatrexFomMapper, const DtString& matrexFomMapperData,
221  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper),
222  (DtResponse response,
223  DtString& federateName,
224  DtString& federateType,
225  DtString& federationName,
226  DtString& fedFile,
227  std::vector<DtString>& fomModules,
228  DtString& mim,
229  bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
230  bool& useMatrexFomMapper, DtString& matrexFomMapperData,
231  DtString& fomMapper, DtString& fomMapperData, bool& useEmptyFomMapper))
232 
234  FomChanged,
235  (const DtBase64Data& data),
236  (DtResponse response,
237  DtBase64Data& data))
238 
240  SubscriptionListsChanged,
241  (const std::vector<DtString>& objectClasses, const std::vector<DtString>& interactionClasses),
242  (DtResponse response,
243  std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
244 
246  TimeManagementSettingsChanged,
247  (bool timeConstrainedRecording, bool timeConstrainedPlayback,
248  bool timeRegulatingRecording, bool timeRegulatingPlayback,
249  double lookahead),
250  (DtResponse response,
251  bool& timeConstrainedRecording, bool& timeConstrainedPlayback,
252  bool& timeRegulatingRecording, bool& timeRegulatingPlayback,
253  double& lookahead))
254 
256  TimeManagementEnabled,
257  (bool enabled,bool constrained,bool regulating),
258  (DtResponse response,
259  bool& enabled, bool& constrained, bool& regulating))
260 
262  DrainInputSettingsChanged,
263  (double maxTime, double minTime),
264  (DtResponse response,
265  double& maxTime, double& minTime))
266 
268  DdmParameterSettingsChanged,
269  (bool enableDdm, const DtString& playbackMode, const DtString& subscribeMode,
270  bool playbackDynamicAssociation, bool playbackDynamicExtents,
271  bool allowPlaybackWithoutRegions, bool recordConveyedRegions,
272  bool requestUpdates, bool subscribeUnspecifiedAttributes),
273  (DtResponse response,
274  bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
275  bool& playbackDynamicAssociation, bool& playbackDynamicExtents,
276  bool& allowPlaybackWithoutRegions, bool& recordConveyedRegions,
277  bool& requestUpdates, bool& subscribeUnspecifiedAttributes))
278 
280  IgnoreAdvisoriesChanged,
281  (bool enabled),
282  (DtResponse response,
283  bool& enabled))
284 
286  TrafficAnalyzerChanged,
287  (bool enabled),
288  (DtResponse response,
289  bool& enabled))
290 
292  EntityTypeManagerChanged,
293  (const DtBase64Data& mgr),
294  (DtResponse command,DtBase64Data& mgr))
295 
296 
297  DT_FACTORY_RESPONSE_EXT(DtLgrSimCommandFactory::Last_Response - 12, EntityIdFilterChanged,
298  (DtBase64Data& filter),
299  (DtResponse command, DtBase64Data& filter))
300 
302 
304  static const char* commandToString(int commandId);
305 
307  static const char* responseToString(int responseId);
308 
310 
311 
312  static DtResponse createConnectedResponse();
313  static DtResponse createDisconnectedResponse();
314  static DtResponse createLostConnectionResponse(const DtString& reason);
315  static DtResponse createUnableToConnectResponse(const DtString& reason);
317 
318  };
319 
320 }

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)