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;
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,
109 std::wstring
const & theObjectInstanceName)
113 FederateInternalError);
119 (ObjectInstanceHandle theObject,
124 throw (ObjectInstanceNotKnown,
125 AttributeNotRecognized,
126 AttributeNotSubscribed,
127 FederateInternalError);
132 (ObjectInstanceHandle theObject,
138 throw (ObjectInstanceNotKnown,
139 AttributeNotRecognized,
140 AttributeNotSubscribed,
141 FederateInternalError);
146 (ObjectInstanceHandle theObject,
153 throw (ObjectInstanceNotKnown,
154 AttributeNotRecognized,
155 AttributeNotSubscribed,
156 FederateInternalError);
161 (ObjectInstanceHandle theObject,
169 throw (ObjectInstanceNotKnown,
170 AttributeNotRecognized,
171 AttributeNotSubscribed,
172 FederateInternalError);
177 (ObjectInstanceHandle theObject,
184 MessageRetractionHandle theHandle)
185 throw (ObjectInstanceNotKnown,
186 AttributeNotRecognized,
187 AttributeNotSubscribed,
189 FederateInternalError);
194 (ObjectInstanceHandle theObject,
201 MessageRetractionHandle theHandle,
203 throw (ObjectInstanceNotKnown,
204 AttributeNotRecognized,
205 AttributeNotSubscribed,
207 FederateInternalError);
219 throw (InteractionClassNotRecognized,
220 InteractionParameterNotRecognized,
221 InteractionClassNotSubscribed,
222 FederateInternalError);
233 throw (InteractionClassNotRecognized,
234 InteractionParameterNotRecognized,
235 InteractionClassNotSubscribed,
236 FederateInternalError);
248 throw (InteractionClassNotRecognized,
249 InteractionParameterNotRecognized,
250 InteractionClassNotSubscribed,
251 FederateInternalError);
264 throw (InteractionClassNotRecognized,
265 InteractionParameterNotRecognized,
266 InteractionClassNotSubscribed,
267 FederateInternalError);
279 MessageRetractionHandle theHandle)
280 throw (InteractionClassNotRecognized,
281 InteractionParameterNotRecognized,
282 InteractionClassNotSubscribed,
284 FederateInternalError);
296 MessageRetractionHandle theHandle,
298 throw (InteractionClassNotRecognized,
299 InteractionParameterNotRecognized,
300 InteractionClassNotSubscribed,
302 FederateInternalError);
309 throw (ObjectInstanceNotKnown,
310 FederateInternalError);
319 throw (ObjectInstanceNotKnown,
320 FederateInternalError);
329 MessageRetractionHandle theHandle)
330 throw (ObjectInstanceNotKnown,
332 FederateInternalError);
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);
380 throw (FederateInternalError);
386 throw (FederateInternalError);
391 throw (FederateInternalError);