6 #ifndef MyFederateAmbassador_H_
7 #define MyFederateAmbassador_H_
9 #pragma warning(disable: 4251)
10 #pragma warning(disable: 4786)
11 #pragma warning(disable: 4290)
13 #include <RTI/RTI1516.h>
14 #include <RTI/NullFederateAmbassador.h>
18 using namespace rti1516;
25 bool myReceivedInitiateFederateSave;
26 bool myReceivedFederationSaved;
27 bool myReceivedFederationNotSaved;
33 bool myReceivedRequestFederationRestoreSucceeded;
34 bool myReceivedRequestFederationRestoreFailed;
35 bool myReceivedFederationRestoreBegun;
36 bool myReceivedInitiateFederateRestore;
37 bool myReceivedFederationRestored;
38 bool myReceivedFederationNotRestored;
60 std::wstring
const & label)
61 throw (UnableToPerformSave, FederateInternalError);
64 throw (FederateInternalError);
67 throw (FederateInternalError);
69 virtual void federationSaveStatusResponse(
70 FederateHandleSaveStatusPairVector
const & theFederateStatusVector)
71 throw (FederateInternalError);
76 throw (FederateInternalError);
79 throw (FederateInternalError);
83 throw (FederateInternalError);
87 std::wstring
const & label,
89 throw (SpecifiedSaveLabelDoesNotExist,
90 CouldNotInitiateRestore,
91 FederateInternalError);
95 throw (FederateInternalError);
98 throw (FederateInternalError);
101 virtual void federationRestoreStatusResponse(
102 FederateHandleRestoreStatusPairVector
const &
103 theFederateStatusVector)
104 throw (FederateInternalError);
109 objectInstanceNameReservationSucceeded(std::wstring
const &
110 theObjectInstanceName)
112 FederateInternalError);
116 objectInstanceNameReservationFailed(std::wstring
const &
117 theObjectInstanceName)
119 FederateInternalError);
123 ObjectInstanceHandle theObject,
125 std::wstring
const & theObjectInstanceName)
129 FederateInternalError);
135 (ObjectInstanceHandle theObject,
136 AttributeHandleValueMap
const & theAttributeValues,
137 VariableLengthData
const & theUserSuppliedTag,
139 TransportationType theType)
140 throw (ObjectInstanceNotKnown,
141 AttributeNotRecognized,
142 AttributeNotSubscribed,
143 FederateInternalError);
148 (ObjectInstanceHandle theObject,
149 AttributeHandleValueMap
const & theAttributeValues,
150 VariableLengthData
const & theUserSuppliedTag,
152 TransportationType theType,
153 RegionHandleSet
const & theSentRegionHandleSet)
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 throw (ObjectInstanceNotKnown,
170 AttributeNotRecognized,
171 AttributeNotSubscribed,
172 FederateInternalError);
177 (ObjectInstanceHandle theObject,
178 AttributeHandleValueMap
const & theAttributeValues,
179 VariableLengthData
const & theUserSuppliedTag,
181 TransportationType theType,
182 LogicalTime
const & theTime,
184 RegionHandleSet
const & theSentRegionHandleSet)
185 throw (ObjectInstanceNotKnown,
186 AttributeNotRecognized,
187 AttributeNotSubscribed,
188 FederateInternalError);
193 (ObjectInstanceHandle theObject,
194 AttributeHandleValueMap
const & theAttributeValues,
195 VariableLengthData
const & theUserSuppliedTag,
197 TransportationType theType,
198 LogicalTime
const & theTime,
200 MessageRetractionHandle theHandle)
201 throw (ObjectInstanceNotKnown,
202 AttributeNotRecognized,
203 AttributeNotSubscribed,
205 FederateInternalError);
210 (ObjectInstanceHandle theObject,
211 AttributeHandleValueMap
const & theAttributeValues,
212 VariableLengthData
const & theUserSuppliedTag,
214 TransportationType theType,
215 LogicalTime
const & theTime,
217 MessageRetractionHandle theHandle,
218 RegionHandleSet
const & theSentRegionHandleSet)
219 throw (ObjectInstanceNotKnown,
220 AttributeNotRecognized,
221 AttributeNotSubscribed,
223 FederateInternalError);
231 ParameterHandleValueMap
const & theParameterValues,
232 VariableLengthData
const & theUserSuppliedTag,
234 TransportationType theType)
235 throw (InteractionClassNotRecognized,
236 InteractionParameterNotRecognized,
237 InteractionClassNotSubscribed,
238 FederateInternalError);
244 ParameterHandleValueMap
const & theParameterValues,
245 VariableLengthData
const & theUserSuppliedTag,
247 TransportationType theType,
248 RegionHandleSet
const & theSentRegionHandleSet)
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 throw (InteractionClassNotRecognized,
265 InteractionParameterNotRecognized,
266 InteractionClassNotSubscribed,
267 FederateInternalError);
273 ParameterHandleValueMap
const & theParameterValues,
274 VariableLengthData
const & theUserSuppliedTag,
276 TransportationType theType,
277 LogicalTime
const & theTime,
279 RegionHandleSet
const & theSentRegionHandleSet)
280 throw (InteractionClassNotRecognized,
281 InteractionParameterNotRecognized,
282 InteractionClassNotSubscribed,
283 FederateInternalError);
289 ParameterHandleValueMap
const & theParameterValues,
290 VariableLengthData
const & theUserSuppliedTag,
292 TransportationType theType,
293 LogicalTime
const & theTime,
295 MessageRetractionHandle theHandle)
296 throw (InteractionClassNotRecognized,
297 InteractionParameterNotRecognized,
298 InteractionClassNotSubscribed,
300 FederateInternalError);
306 ParameterHandleValueMap
const & theParameterValues,
307 VariableLengthData
const & theUserSuppliedTag,
309 TransportationType theType,
310 LogicalTime
const & theTime,
312 MessageRetractionHandle theHandle,
313 RegionHandleSet
const & theSentRegionHandleSet)
314 throw (InteractionClassNotRecognized,
315 InteractionParameterNotRecognized,
316 InteractionClassNotSubscribed,
318 FederateInternalError);
325 VariableLengthData
const & theUserSuppliedTag,
327 throw (ObjectInstanceNotKnown,
328 FederateInternalError);
333 VariableLengthData
const & theUserSuppliedTag,
335 LogicalTime
const & theTime,
337 throw (ObjectInstanceNotKnown,
338 FederateInternalError);
343 VariableLengthData
const & theUserSuppliedTag,
345 LogicalTime
const & theTime,
347 MessageRetractionHandle theHandle)
348 throw (ObjectInstanceNotKnown,
350 FederateInternalError);
std::map< ObjectClassHandle, std::wstring > objectClassMap
Definition: rtiSimpleFedAmb1516.h:45
Definition: rtiSimpleFedAmb13.h:37
virtual void initiateFederateRestore(const char *label, FederateHandle handle)=0
4.19
ULong InteractionClassHandle
Definition: RTItypes13.h:106
virtual void federationNotRestored()=0
SaveFailureReason mySaveFailureReason
Definition: rtiSimpleFedAmb1516.h:30
RestoreFailureReason myRestoreFailureReason
Definition: rtiSimpleFedAmb1516.h:42
virtual void receiveInteraction(InteractionClassHandle theInteraction, const ParameterHandleValuePairSet &theParameters, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.7
virtual void removeObjectInstance(ObjectHandle theObject, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.9
std::map< InteractionClassHandle, std::wstring > interactionClassMap
Definition: rtiSimpleFedAmb1516.h:47
std::wstring mySaveLabel
Definition: rtiSimpleFedAmb1516.h:29
std::wstring myRestoreLabel
Definition: rtiSimpleFedAmb1516.h:40
virtual void initiateFederateSave(const char *label)=0
4.12
virtual void requestFederationRestoreFailed(const char *label, const char *reason)=0
supplied C4
virtual void federationNotSaved()=0
virtual void discoverObjectInstance(ObjectHandle theObject, ObjectClassHandle theObjectClass, const char *theObjectName)=0
! Object Management Services //!
virtual void requestFederationRestoreSucceeded(const char *label)=0
4.17
virtual void reflectAttributeValues(ObjectHandle theObject, const AttributeHandleValuePairSet &theAttributes, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.5
Definition: rtiSimpleFedAmb13.h:13
bool myReceivedFederationRestoreStatusResponse
Definition: rtiSimpleFedAmb1516.h:39
virtual void federationRestored()=0
4.21
ULong FederateHandle
Definition: RTItypes13.h:120
std::map< ObjectInstanceHandle, std::wstring > objectInstanceMap
Definition: rtiSimpleFedAmb1516.h:46
bool myNameReservationSucceeded
Definition: rtiSimpleFedAmb1516.h:24
FederateHandleSaveStatusPairVector myFederateHandleSaveStatus
Definition: rtiSimpleFedAmb1516.h:31
virtual void federationRestoreBegun()=0
4.18
virtual void federationSaved()=0
4.15
ULong ObjectClassHandle
Definition: RTItypes13.h:104
bool myNameReservationReturned
Definition: rtiSimpleFedAmb1516.h:23
FederateHandleRestoreStatusPairVector myFederateHandleRestoreStatus
Definition: rtiSimpleFedAmb1516.h:43
bool myReceivedFederationSaveStatusResponse
Definition: rtiSimpleFedAmb1516.h:28
OrderingHandle OrderType
Definition: RTItypes13.h:128
NullFederateAmbassador()
Definition: NullFederateAmbassador13.h:39