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 rti1516e;
24 bool myNameReservationReturned;
25 bool myNameReservationSucceeded;
26 bool myReceivedInitiateFederateSave;
27 bool myReceivedFederationSaved;
28 bool myReceivedFederationNotSaved;
29 bool myReceivedFederationSaveStatusResponse;
30 std::wstring mySaveLabel;
31 SaveFailureReason mySaveFailureReason;
32 FederateHandleSaveStatusPairVector myFederateHandleSaveStatus;
34 bool myReceivedRequestFederationRestoreSucceeded;
35 bool myReceivedRequestFederationRestoreFailed;
36 bool myReceivedFederationRestoreBegun;
37 bool myReceivedInitiateFederateRestore;
38 bool myReceivedFederationRestored;
39 bool myReceivedFederationNotRestored;
40 bool myReceivedFederationRestoreStatusResponse;
41 std::wstring myRestoreLabel;
43 RestoreFailureReason myRestoreFailureReason;
46 std::map<ObjectClassHandle, std::wstring> objectClassMap;
47 std::map<ObjectInstanceHandle, std::wstring> objectInstanceMap;
48 std::map<InteractionClassHandle, std::wstring> interactionClassMap;
61 virtual void reportFederationExecutions (
62 FederationExecutionInformationVector
const &
63 theFederationExecutionInformationList)
65 FederateInternalError);
69 std::wstring
const & label)
70 throw (FederateInternalError);
74 throw (FederateInternalError);
77 throw (FederateInternalError);
80 virtual void federationSaveStatusResponse(
81 FederateHandleSaveStatusPairVector
const & theFederateStatusVector)
82 throw (FederateInternalError);
86 throw (FederateInternalError);
89 throw (FederateInternalError);
93 throw (FederateInternalError);
97 std::wstring
const & label,
98 std::wstring
const & federateName,
100 throw (FederateInternalError);
104 throw (FederateInternalError);
107 throw (FederateInternalError);
110 virtual void federationRestoreStatusResponse(
111 FederateRestoreStatusVector
const &
112 theFederateRestoreStatusVector)
113 throw (FederateInternalError);
117 virtual void objectInstanceNameReservationSucceeded(
118 std::wstring
const & theObjectInstanceName)
119 throw (FederateInternalError);
121 virtual void objectInstanceNameReservationFailed(
122 std::wstring
const & theObjectInstanceName)
123 throw (FederateInternalError);
127 ObjectInstanceHandle theObject,
129 std::wstring
const & theObjectInstanceName)
130 throw (FederateInternalError);
133 ObjectInstanceHandle theObject,
135 std::wstring
const & theObjectInstanceName,
137 throw (FederateInternalError);
142 ObjectInstanceHandle theObject,
143 AttributeHandleValueMap
const & theAttributeValues,
144 VariableLengthData
const & theUserSuppliedTag,
146 TransportationType theType,
147 SupplementalReflectInfo theReflectInfo)
148 throw (FederateInternalError);
151 ObjectInstanceHandle theObject,
152 AttributeHandleValueMap
const & theAttributeValues,
153 VariableLengthData
const & theUserSuppliedTag,
155 TransportationType theType,
156 LogicalTime
const & theTime,
158 SupplementalReflectInfo theReflectInfo)
159 throw (FederateInternalError);
162 ObjectInstanceHandle theObject,
163 AttributeHandleValueMap
const & theAttributeValues,
164 VariableLengthData
const & theUserSuppliedTag,
166 TransportationType theType,
167 LogicalTime
const & theTime,
169 MessageRetractionHandle theHandle,
170 SupplementalReflectInfo theReflectInfo)
171 throw (FederateInternalError);
177 ParameterHandleValueMap
const & theParameterValues,
178 VariableLengthData
const & theUserSuppliedTag,
180 TransportationType theType,
181 SupplementalReceiveInfo theReceiveInfo)
182 throw (FederateInternalError);
186 ParameterHandleValueMap
const & theParameterValues,
187 VariableLengthData
const & theUserSuppliedTag,
189 TransportationType theType,
190 LogicalTime
const & theTime,
192 SupplementalReceiveInfo theReceiveInfo)
193 throw (FederateInternalError);
197 ParameterHandleValueMap
const & theParameterValues,
198 VariableLengthData
const & theUserSuppliedTag,
200 TransportationType theType,
201 LogicalTime
const & theTime,
203 MessageRetractionHandle theHandle,
204 SupplementalReceiveInfo theReceiveInfo)
205 throw (FederateInternalError);
210 ObjectInstanceHandle theObject,
211 VariableLengthData
const & theUserSuppliedTag,
213 SupplementalRemoveInfo theRemoveInfo)
214 throw (FederateInternalError);
217 ObjectInstanceHandle theObject,
218 VariableLengthData
const & theUserSuppliedTag,
220 LogicalTime
const & theTime,
222 SupplementalRemoveInfo theRemoveInfo)
223 throw (FederateInternalError);
226 ObjectInstanceHandle theObject,
227 VariableLengthData
const & theUserSuppliedTag,
229 LogicalTime
const & theTime,
231 MessageRetractionHandle theHandle,
232 SupplementalRemoveInfo theRemoveInfo)
233 throw (FederateInternalError);
235 virtual void reportAttributeTransportationType (
236 ObjectInstanceHandle theObject,
238 TransportationType theTransportation)
239 throw (FederateInternalError);
241 virtual void confirmAttributeTransportationTypeChange (
242 ObjectInstanceHandle theObject,
243 AttributeHandleSet theAttributes,
244 TransportationType theTransportation)
246 FederateInternalError);
248 virtual void confirmInteractionTransportationTypeChange (
250 TransportationType theTransportation)
252 FederateInternalError);
255 virtual void reportInteractionTransportationType (
258 TransportationType theTransportation)
260 FederateInternalError);
262 virtual void multipleObjectInstanceNameReservationSucceeded (
263 std::set<std::wstring>
const & theObjectInstanceNames)
265 FederateInternalError);
267 virtual void multipleObjectInstanceNameReservationFailed (
268 std::set<std::wstring>
const & theObjectInstanceNames)
270 FederateInternalError);
Definition: rtiSimpleFedAmb13.h:37
virtual void initiateFederateRestore(const char *label, FederateHandle handle)=0
4.19
bool myListFederationsReturned
Definition: rtiSimpleFedAmb1516e.h:23
ULong InteractionClassHandle
Definition: RTItypes13.h:106
virtual void federationNotRestored()=0
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
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
virtual void federationRestored()=0
4.21
ULong FederateHandle
Definition: RTItypes13.h:120
virtual void federationRestoreBegun()=0
4.18
virtual void federationSaved()=0
4.15
ULong ObjectClassHandle
Definition: RTItypes13.h:104
FederateRestoreStatusVector myFederateHandleRestoreStatus
Definition: rtiSimpleFedAmb1516e.h:44
OrderingHandle OrderType
Definition: RTItypes13.h:128
Handle AttributeHandle
Definition: RTItypes13.h:112
NullFederateAmbassador()
Definition: NullFederateAmbassador13.h:39