9 #ifndef MyFederateAmbassador_H_
10 #define MyFederateAmbassador_H_
13 #pragma warning(disable: 4251)
14 #pragma warning(disable: 4786)
15 #pragma warning(disable: 4290)
18 #include <RTI/RTI1516.h>
19 #include <RTI/NullFederateAmbassador.h>
25 using namespace rti1516;
39 bool myNameReservationReturned;
40 bool myNameReservationSucceeded;
41 std::map<ObjectClassHandle, std::wstring> objectClassMap;
42 std::map<ObjectInstanceHandle, std::wstring> objectInstanceMap;
43 std::map<InteractionClassHandle,std::wstring> interactionClassMap;
53 std::set<std::string> ourAttrs;
56 std::set<std::string> ourParms;
74 int otherFederatesReady;
76 bool registerSucceeded;
77 bool announceSyncReceived;
78 bool federationIsSynchronized;
94 objectInstanceNameReservationSucceeded(std::wstring
const &
95 theObjectInstanceName)
97 FederateInternalError);
101 objectInstanceNameReservationFailed(std::wstring
const &
102 theObjectInstanceName)
104 FederateInternalError);
108 ObjectInstanceHandle theObject,
110 std::wstring
const & theObjectInstanceName)
114 FederateInternalError);
120 (ObjectInstanceHandle theObject,
121 AttributeHandleValueMap
const & theAttributeValues,
122 VariableLengthData
const & theUserSuppliedTag,
124 TransportationType theType)
125 throw (ObjectInstanceNotKnown,
126 AttributeNotRecognized,
127 AttributeNotSubscribed,
128 FederateInternalError);
133 (ObjectInstanceHandle theObject,
134 AttributeHandleValueMap
const & theAttributeValues,
135 VariableLengthData
const & theUserSuppliedTag,
137 TransportationType theType,
138 RegionHandleSet
const & theSentRegionHandleSet)
139 throw (ObjectInstanceNotKnown,
140 AttributeNotRecognized,
141 AttributeNotSubscribed,
142 FederateInternalError);
147 (ObjectInstanceHandle theObject,
148 AttributeHandleValueMap
const & theAttributeValues,
149 VariableLengthData
const & theUserSuppliedTag,
151 TransportationType theType,
152 LogicalTime
const & theTime,
154 throw (ObjectInstanceNotKnown,
155 AttributeNotRecognized,
156 AttributeNotSubscribed,
157 FederateInternalError);
162 (ObjectInstanceHandle theObject,
163 AttributeHandleValueMap
const & theAttributeValues,
164 VariableLengthData
const & theUserSuppliedTag,
166 TransportationType theType,
167 LogicalTime
const & theTime,
169 RegionHandleSet
const & theSentRegionHandleSet)
170 throw (ObjectInstanceNotKnown,
171 AttributeNotRecognized,
172 AttributeNotSubscribed,
173 FederateInternalError);
178 (ObjectInstanceHandle theObject,
179 AttributeHandleValueMap
const & theAttributeValues,
180 VariableLengthData
const & theUserSuppliedTag,
182 TransportationType theType,
183 LogicalTime
const & theTime,
185 MessageRetractionHandle theHandle)
186 throw (ObjectInstanceNotKnown,
187 AttributeNotRecognized,
188 AttributeNotSubscribed,
190 FederateInternalError);
195 (ObjectInstanceHandle theObject,
196 AttributeHandleValueMap
const & theAttributeValues,
197 VariableLengthData
const & theUserSuppliedTag,
199 TransportationType theType,
200 LogicalTime
const & theTime,
202 MessageRetractionHandle theHandle,
203 RegionHandleSet
const & theSentRegionHandleSet)
204 throw (ObjectInstanceNotKnown,
205 AttributeNotRecognized,
206 AttributeNotSubscribed,
208 FederateInternalError);
216 ParameterHandleValueMap
const & theParameterValues,
217 VariableLengthData
const & theUserSuppliedTag,
219 TransportationType theType)
220 throw (InteractionClassNotRecognized,
221 InteractionParameterNotRecognized,
222 InteractionClassNotSubscribed,
223 FederateInternalError);
229 ParameterHandleValueMap
const & theParameterValues,
230 VariableLengthData
const & theUserSuppliedTag,
232 TransportationType theType,
233 RegionHandleSet
const & theSentRegionHandleSet)
234 throw (InteractionClassNotRecognized,
235 InteractionParameterNotRecognized,
236 InteractionClassNotSubscribed,
237 FederateInternalError);
243 ParameterHandleValueMap
const & theParameterValues,
244 VariableLengthData
const & theUserSuppliedTag,
246 TransportationType theType,
247 LogicalTime
const & theTime,
249 throw (InteractionClassNotRecognized,
250 InteractionParameterNotRecognized,
251 InteractionClassNotSubscribed,
252 FederateInternalError);
258 ParameterHandleValueMap
const & theParameterValues,
259 VariableLengthData
const & theUserSuppliedTag,
261 TransportationType theType,
262 LogicalTime
const & theTime,
264 RegionHandleSet
const & theSentRegionHandleSet)
265 throw (InteractionClassNotRecognized,
266 InteractionParameterNotRecognized,
267 InteractionClassNotSubscribed,
268 FederateInternalError);
274 ParameterHandleValueMap
const & theParameterValues,
275 VariableLengthData
const & theUserSuppliedTag,
277 TransportationType theType,
278 LogicalTime
const & theTime,
280 MessageRetractionHandle theHandle)
281 throw (InteractionClassNotRecognized,
282 InteractionParameterNotRecognized,
283 InteractionClassNotSubscribed,
285 FederateInternalError);
291 ParameterHandleValueMap
const & theParameterValues,
292 VariableLengthData
const & theUserSuppliedTag,
294 TransportationType theType,
295 LogicalTime
const & theTime,
297 MessageRetractionHandle theHandle,
298 RegionHandleSet
const & theSentRegionHandleSet)
299 throw (InteractionClassNotRecognized,
300 InteractionParameterNotRecognized,
301 InteractionClassNotSubscribed,
303 FederateInternalError);
308 VariableLengthData
const & theUserSuppliedTag,
310 throw (ObjectInstanceNotKnown,
311 FederateInternalError);
316 VariableLengthData
const & theUserSuppliedTag,
318 LogicalTime
const & theTime,
320 throw (ObjectInstanceNotKnown,
321 FederateInternalError);
326 VariableLengthData
const & theUserSuppliedTag,
328 LogicalTime
const & theTime,
330 MessageRetractionHandle theHandle)
331 throw (ObjectInstanceNotKnown,
333 FederateInternalError);
339 VariableLengthData
const & theUserSuppliedTag)
340 throw (ObjectInstanceNotKnown,
341 AttributeNotRecognized,
343 FederateInternalError);
348 throw (InvalidLogicalTime,
349 NoRequestToEnableTimeRegulationWasPending,
350 FederateInternalError);
356 throw (InvalidLogicalTime,
357 NoRequestToEnableTimeConstrainedWasPending,
358 FederateInternalError);
363 throw (InvalidLogicalTime,
364 JoinedFederateIsNotInTimeAdvancingState,
365 FederateInternalError);
370 throw (FederateInternalError);
376 throw (FederateInternalError);
380 SynchronizationFailureReason reason)
381 throw (FederateInternalError);
386 VariableLengthData
const & theUserSuppliedTag)
387 throw (FederateInternalError);
392 throw (FederateInternalError);