9 #ifndef MyFederateAmbassador_H_
10 #define MyFederateAmbassador_H_
13 #pragma warning(disable: 4251)
14 #pragma warning(disable: 4786)
15 #pragma warning(disable: 4290)
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;
73 int otherFederatesReady;
75 bool registerSucceeded;
76 bool announceSyncReceived;
77 bool federationIsSynchronized;
93 objectInstanceNameReservationSucceeded(std::wstring
const &
94 theObjectInstanceName)
96 FederateInternalError);
100 objectInstanceNameReservationFailed(std::wstring
const &
101 theObjectInstanceName)
103 FederateInternalError);
107 ObjectInstanceHandle theObject,
108 ObjectClassHandle theObjectClass,
109 std::wstring
const & theObjectInstanceName)
113 FederateInternalError);
119 (ObjectInstanceHandle theObject,
121 VariableLengthData
const & theUserSuppliedTag,
124 throw (ObjectInstanceNotKnown,
125 AttributeNotRecognized,
126 AttributeNotSubscribed,
127 FederateInternalError);
132 (ObjectInstanceHandle theObject,
134 VariableLengthData
const & theUserSuppliedTag,
138 throw (ObjectInstanceNotKnown,
139 AttributeNotRecognized,
140 AttributeNotSubscribed,
141 FederateInternalError);
146 (ObjectInstanceHandle theObject,
148 VariableLengthData
const & theUserSuppliedTag,
151 LogicalTime
const & theTime,
153 throw (ObjectInstanceNotKnown,
154 AttributeNotRecognized,
155 AttributeNotSubscribed,
156 FederateInternalError);
161 (ObjectInstanceHandle theObject,
163 VariableLengthData
const & theUserSuppliedTag,
166 LogicalTime
const & theTime,
169 throw (ObjectInstanceNotKnown,
170 AttributeNotRecognized,
171 AttributeNotSubscribed,
172 FederateInternalError);
177 (ObjectInstanceHandle theObject,
179 VariableLengthData
const & theUserSuppliedTag,
182 LogicalTime
const & theTime,
184 MessageRetractionHandle theHandle)
185 throw (ObjectInstanceNotKnown,
186 AttributeNotRecognized,
187 AttributeNotSubscribed,
189 FederateInternalError);
194 (ObjectInstanceHandle theObject,
196 VariableLengthData
const & theUserSuppliedTag,
199 LogicalTime
const & theTime,
201 MessageRetractionHandle theHandle,
203 throw (ObjectInstanceNotKnown,
204 AttributeNotRecognized,
205 AttributeNotSubscribed,
207 FederateInternalError);
214 (InteractionClassHandle theInteraction,
216 VariableLengthData
const & theUserSuppliedTag,
219 throw (InteractionClassNotRecognized,
220 InteractionParameterNotRecognized,
221 InteractionClassNotSubscribed,
222 FederateInternalError);
227 (InteractionClassHandle theInteraction,
229 VariableLengthData
const & theUserSuppliedTag,
233 throw (InteractionClassNotRecognized,
234 InteractionParameterNotRecognized,
235 InteractionClassNotSubscribed,
236 FederateInternalError);
241 (InteractionClassHandle theInteraction,
243 VariableLengthData
const & theUserSuppliedTag,
246 LogicalTime
const & theTime,
248 throw (InteractionClassNotRecognized,
249 InteractionParameterNotRecognized,
250 InteractionClassNotSubscribed,
251 FederateInternalError);
256 (InteractionClassHandle theInteraction,
258 VariableLengthData
const & theUserSuppliedTag,
261 LogicalTime
const & theTime,
264 throw (InteractionClassNotRecognized,
265 InteractionParameterNotRecognized,
266 InteractionClassNotSubscribed,
267 FederateInternalError);
272 (InteractionClassHandle theInteraction,
274 VariableLengthData
const & theUserSuppliedTag,
277 LogicalTime
const & theTime,
279 MessageRetractionHandle theHandle)
280 throw (InteractionClassNotRecognized,
281 InteractionParameterNotRecognized,
282 InteractionClassNotSubscribed,
284 FederateInternalError);
289 (InteractionClassHandle theInteraction,
291 VariableLengthData
const & theUserSuppliedTag,
294 LogicalTime
const & theTime,
296 MessageRetractionHandle theHandle,
298 throw (InteractionClassNotRecognized,
299 InteractionParameterNotRecognized,
300 InteractionClassNotSubscribed,
302 FederateInternalError);
307 VariableLengthData
const & theUserSuppliedTag,
309 throw (ObjectInstanceNotKnown,
310 FederateInternalError);
315 VariableLengthData
const & theUserSuppliedTag,
317 LogicalTime
const & theTime,
319 throw (ObjectInstanceNotKnown,
320 FederateInternalError);
325 VariableLengthData
const & theUserSuppliedTag,
327 LogicalTime
const & theTime,
329 MessageRetractionHandle theHandle)
330 throw (ObjectInstanceNotKnown,
332 FederateInternalError);
338 VariableLengthData
const & theUserSuppliedTag)
339 throw (ObjectInstanceNotKnown,
340 AttributeNotRecognized,
342 FederateInternalError);
347 throw (InvalidLogicalTime,
348 NoRequestToEnableTimeRegulationWasPending,
349 FederateInternalError);
355 throw (InvalidLogicalTime,
356 NoRequestToEnableTimeConstrainedWasPending,
357 FederateInternalError);
362 throw (InvalidLogicalTime,
363 JoinedFederateIsNotInTimeAdvancingState,
364 FederateInternalError);
369 throw (FederateInternalError);
375 throw (FederateInternalError);
379 SynchronizationFailureReason reason)
380 throw (FederateInternalError);
385 VariableLengthData
const & theUserSuppliedTag)
386 throw (FederateInternalError);
391 throw (FederateInternalError);