10 #ifndef lgrHlaCommandFactory_H_
11 #define lgrHlaCommandFactory_H_
20 #include <vlutil/vlString.h>
26 class DtCommandDefinition;
27 class DtLgrDisEntityTypeManager;
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,
47 bool ignoreAdvisories,
double fomVersion,
int fomRevision,
48 bool useMatrexFomMapper,
const DtString& matrexFomMapperData,
49 const DtString& fomMapper,
const DtString& fomMapperData,
bool useEmptyFomMapper),
51 DtString& federateName,
52 DtString& federateType,
53 DtString& federationName,
55 std::vector<DtString>& fomModules,
57 bool& ignoreAdvisories,
double& fomVersion,
int& fomRevision,
58 bool& useMatrexFomMapper, DtString& matrexFomMapperData,
59 DtString& fomMapper, DtString& fomMapperData,
bool& useEmptyFomMapper))
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),
71 DtString& federateName,
72 DtString& federationName,
74 bool& ignoreAdvisories,
double& fomVersion,
int& fomRevision,
75 bool& useMatrexFomMapper, DtString& matrexFomMapperData,
76 DtString& fomMapper, DtString& fomMapperData,
bool& useEmptyFomMapper))
77 #endif // DtHLA_1516_EVOLVED
81 (
bool timeConstrainedRecording,
bool timeConstrainedPlayback,
82 bool timeRegulatingRecording,
bool timeRegulatingPlayback,
85 bool& timeConstrainedRecording,
bool& timeConstrainedPlayback,
86 bool& timeRegulatingRecording,
bool& timeRegulatingPlayback,
96 SetPassiveSubscription,
102 LoadSubscriptionListFile,
103 (
const DtString& filename),
108 SaveSubscriptionListFile,
109 (
const DtString& filename),
114 SetSubscriptionLists,
115 (
const std::vector<DtString>& objectClasses,
const std::vector<DtString>& interactionClasses),
117 std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
120 SetDisableTimeManagementTest,
121 (
bool disableTesting),
123 bool& disableTesting))
126 SetDynamicNamePrefix,
127 (
const DtString& prefix),
132 LoadPublicationListFile,
133 (
const DtString& filename),
139 (
double maxTime,
double minTime),
141 double& maxTime,
double& minTime))
145 (
bool enableDdm,
const DtString& playbackMode,
const DtString& subscribeMode,
146 bool playbackDynamicAssociation,
bool playbackDynamicExtents,
147 bool allowPlaybackWithoutRegions,
bool recordConveyedRegions,
148 bool requestUpdates,
bool subscribeUnspecifiedAttributes),
150 bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
151 bool& playbackDynamicAssociation,
bool& playbackDynamicExtents,
152 bool& allowPlaybackWithoutRegions,
bool& recordConveyedRegions,
153 bool& requestUpdates,
bool& subscribeUnspecifiedAttributes))
156 AddTrafficAnalyzerFilter,
162 RemoveTrafficAnalyzerFilter,
168 EnableTrafficAnalyzer,
174 SetEntityTypeManager,
179 SetCommonEntityTypes,
180 ( const std::vector<DtString>& types),
181 ( const
DtCommand& command,std::vector<DtString>& types))
185 ( const std::vector<DtString>& types),
186 ( const
DtCommand& command,std::vector<DtString>& types))
190 ( const std::vector<DtString>& names),
191 ( const
DtCommand& command,std::vector<DtString>& names))
194 SetCommonObjectNames,
195 ( const std::vector<DtString>& names),
196 ( const
DtCommand& command,std::vector<DtString>& names))
201 #if DtHLA_1516_EVOLVED
203 ConnectionParametersChanged,
204 (
const DtString& federateName,
205 const DtString& federateType,
206 const DtString& federationName,
207 const DtString& fedFile,
208 const std::vector<DtString>& fomModules,
210 bool ignoreAdvisories,
double fomVersion,
int fomRevision,
211 bool useMatrexFomMapper,
const DtString& matrexFomMapperData,
212 const DtString& fomMapper,
const DtString& fomMapperData,
bool useEmptyFomMapper),
214 DtString& federateName,
215 DtString& federateType,
216 DtString& federationName,
218 std::vector<DtString>& fomModules,
220 bool& ignoreAdvisories,
double& fomVersion,
int& fomRevision,
221 bool& useMatrexFomMapper, DtString& matrexFomMapperData,
222 DtString& fomMapper, DtString& fomMapperData,
bool& useEmptyFomMapper))
223 #else // !DtHLA_1516_EVOLVED
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),
233 DtString& federateType,
234 DtString& federationName,
236 bool& ignoreAdvisories,
double& fomVersion,
int& fomRevision,
237 bool& useMatrexFomMapper, DtString& matrexFomMapperData,
238 DtString& fomMapper, DtString& fomMapperData,
bool& useEmptyFomMapper))
239 #endif // DtHLA_1516_EVOLVED
243 (
const DtBaseFomDesc& fom),
248 SubscriptionListsChanged,
249 (
const std::vector<DtString>& objectClasses,
const std::vector<DtString>& interactionClasses),
251 std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
254 TimeManagementSettingsChanged,
255 (
bool timeConstrainedRecording,
bool timeConstrainedPlayback,
256 bool timeRegulatingRecording,
bool timeRegulatingPlayback,
259 bool& timeConstrainedRecording,
bool& timeConstrainedPlayback,
260 bool& timeRegulatingRecording,
bool& timeRegulatingPlayback,
264 TimeManagementEnabled,
265 (
bool enabled,
bool constrained,
bool regulating),
267 bool& enabled,
bool& constrained,
bool& regulating))
270 DrainInputSettingsChanged,
271 (
double maxTime,
double minTime),
273 double& maxTime,
double& minTime))
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),
282 bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
283 bool& playbackDynamicAssociation,
bool& playbackDynamicExtents,
284 bool& allowPlaybackWithoutRegions,
bool& recordConveyedRegions,
285 bool& requestUpdates,
bool& subscribeUnspecifiedAttributes))
288 IgnoreAdvisoriesChanged,
294 TrafficAnalyzerChanged,
300 EntityTypeManagerChanged,
311 static const char* commandToString(
int commandId);
320 static DtResponse createDisconnectedResponse();
321 static DtResponse createLostConnectionResponse(
const DtString& reason);
322 static DtResponse createUnableToConnectResponse(
const DtString& reason);