10 #ifndef lgrHlaCommandFactory_H_
11 #define lgrHlaCommandFactory_H_
19 #include <vlutil/vlString.h>
25 class DtCommandDefinition;
26 class DtLgrDisEntityTypeManager;
37 #if DtHLA_1516_EVOLVED
39 SetConnectionParameters,
40 (
const DtString& federateName,
41 const DtString& federateType,
42 const DtString& federationName,
43 const DtString& fedFile,
44 const std::vector<DtString>& fomModules,
46 bool ignoreAdvisories,
double fomVersion,
int fomRevision,
47 bool useMatrexFomMapper,
const DtString& matrexFomMapperData,
48 const DtString& fomMapper,
const DtString& fomMapperData,
bool useEmptyFomMapper),
50 DtString& federateName,
51 DtString& federateType,
52 DtString& federationName,
54 std::vector<DtString>& fomModules,
56 bool& ignoreAdvisories,
double& fomVersion,
int& fomRevision,
57 bool& useMatrexFomMapper, DtString& matrexFomMapperData,
58 DtString& fomMapper, DtString& fomMapperData,
bool& useEmptyFomMapper))
60 #else // !DtHLA_1516_EVOLVED
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),
70 DtString& federateName,
71 DtString& federationName,
73 bool& ignoreAdvisories,
double& fomVersion,
int& fomRevision,
74 bool& useMatrexFomMapper, DtString& matrexFomMapperData,
75 DtString& fomMapper, DtString& fomMapperData,
bool& useEmptyFomMapper))
76 #endif // DtHLA_1516_EVOLVED
80 (
bool timeConstrainedRecording,
bool timeConstrainedPlayback,
81 bool timeRegulatingRecording,
bool timeRegulatingPlayback,
84 bool& timeConstrainedRecording,
bool& timeConstrainedPlayback,
85 bool& timeRegulatingRecording,
bool& timeRegulatingPlayback,
95 SetPassiveSubscription,
101 LoadSubscriptionListFile,
102 (
const DtString& filename),
107 SaveSubscriptionListFile,
108 (
const DtString& filename),
113 SetSubscriptionLists,
114 (
const std::vector<DtString>& objectClasses,
const std::vector<DtString>& interactionClasses),
116 std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
119 SetDisableTimeManagementTest,
120 (
bool disableTesting),
122 bool& disableTesting))
125 SetDynamicNamePrefix,
126 (
const DtString& prefix),
131 LoadPublicationListFile,
132 (
const DtString& filename),
138 (
double maxTime,
double minTime),
140 double& maxTime,
double& minTime))
144 (
bool enableDdm,
const DtString& playbackMode,
const DtString& subscribeMode,
145 bool playbackDynamicAssociation,
bool playbackDynamicExtents,
146 bool allowPlaybackWithoutRegions,
bool recordConveyedRegions,
147 bool requestUpdates,
bool subscribeUnspecifiedAttributes),
149 bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
150 bool& playbackDynamicAssociation,
bool& playbackDynamicExtents,
151 bool& allowPlaybackWithoutRegions,
bool& recordConveyedRegions,
152 bool& requestUpdates,
bool& subscribeUnspecifiedAttributes))
155 AddTrafficAnalyzerFilter,
161 RemoveTrafficAnalyzerFilter,
167 EnableTrafficAnalyzer,
173 SetEntityTypeManager,
178 SetCommonEntityTypes,
179 ( const std::vector<DtString>& types),
180 ( const
DtCommand& command,std::vector<DtString>& types))
184 ( const std::vector<DtString>& types),
185 ( const
DtCommand& command,std::vector<DtString>& types))
190 #if DtHLA_1516_EVOLVED
192 ConnectionParametersChanged,
193 (
const DtString& federateName,
194 const DtString& federateType,
195 const DtString& federationName,
196 const DtString& fedFile,
197 const std::vector<DtString>& fomModules,
199 bool ignoreAdvisories,
double fomVersion,
int fomRevision,
200 bool useMatrexFomMapper,
const DtString& matrexFomMapperData,
201 const DtString& fomMapper,
const DtString& fomMapperData,
bool useEmptyFomMapper),
203 DtString& federateName,
204 DtString& federateType,
205 DtString& federationName,
207 std::vector<DtString>& fomModules,
209 bool& ignoreAdvisories,
double& fomVersion,
int& fomRevision,
210 bool& useMatrexFomMapper, DtString& matrexFomMapperData,
211 DtString& fomMapper, DtString& fomMapperData,
bool& useEmptyFomMapper))
212 #else // !DtHLA_1516_EVOLVED
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),
222 DtString& federateType,
223 DtString& federationName,
225 bool& ignoreAdvisories,
double& fomVersion,
int& fomRevision,
226 bool& useMatrexFomMapper, DtString& matrexFomMapperData,
227 DtString& fomMapper, DtString& fomMapperData,
bool& useEmptyFomMapper))
228 #endif // DtHLA_1516_EVOLVED
232 (
const DtBaseFomDesc& fom),
237 SubscriptionListsChanged,
238 (
const std::vector<DtString>& objectClasses,
const std::vector<DtString>& interactionClasses),
240 std::vector<DtString>& objectClasses, std::vector<DtString>& interactionClasses))
243 TimeManagementSettingsChanged,
244 (
bool timeConstrainedRecording,
bool timeConstrainedPlayback,
245 bool timeRegulatingRecording,
bool timeRegulatingPlayback,
248 bool& timeConstrainedRecording,
bool& timeConstrainedPlayback,
249 bool& timeRegulatingRecording,
bool& timeRegulatingPlayback,
253 TimeManagementEnabled,
254 (
bool enabled,
bool constrained,
bool regulating),
256 bool& enabled,
bool& constrained,
bool& regulating))
259 DrainInputSettingsChanged,
260 (
double maxTime,
double minTime),
262 double& maxTime,
double& minTime))
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),
271 bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
272 bool& playbackDynamicAssociation,
bool& playbackDynamicExtents,
273 bool& allowPlaybackWithoutRegions,
bool& recordConveyedRegions,
274 bool& requestUpdates,
bool& subscribeUnspecifiedAttributes))
277 IgnoreAdvisoriesChanged,
283 TrafficAnalyzerChanged,
289 EntityTypeManagerChanged,
296 static const char* commandToString(
int commandId);
305 static DtResponse createDisconnectedResponse();
306 static DtResponse createLostConnectionResponse(
const DtString& reason);
307 static DtResponse createUnableToConnectResponse(
const DtString& reason);