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/Enums.h>
19 #include <RTI/Typedefs.h>
20 #include <RTI/RTI1516.h>
21 #include <RTI/NullFederateAmbassador.h>
27 using namespace rti1516e;
41 bool myNameReservationReturned;
42 bool myNameReservationSucceeded;
43 std::map<ObjectClassHandle, std::wstring> objectClassMap;
44 std::map<ObjectInstanceHandle, std::wstring> objectInstanceMap;
45 std::map<InteractionClassHandle,std::wstring> interactionClassMap;
46 std::map<ObjectInstanceHandle, AttributeHandleSet*> updateRequestMap;
55 std::set<std::string> ourAttrs;
58 std::set<std::string> ourParms;
70 AttributeHandleValueMap* attrValues;
71 ParameterHandleValueMap* paramValues;
76 int otherFederatesReady;
78 bool registerSucceeded;
79 bool announceSyncReceived;
80 bool federationIsSynchronized;
95 objectInstanceNameReservationSucceeded(std::wstring const &
96 theObjectInstanceName)
97 throw (FederateInternalError);
101 objectInstanceNameReservationFailed(std::wstring const &
102 theObjectInstanceName)
103 throw (FederateInternalError);
107 ObjectInstanceHandle theObject,
109 std::wstring const & theObjectInstanceName)
110 throw (FederateInternalError);
113 ObjectInstanceHandle theObject,
115 std::wstring const & theObjectInstanceName,
118 FederateInternalError);
122 ObjectInstanceHandle theObject,
123 AttributeHandleValueMap const & theAttributeValues,
124 VariableLengthData const & theUserSuppliedTag,
126 TransportationType theType,
127 SupplementalReflectInfo theReflectInfo)
129 FederateInternalError);
132 ObjectInstanceHandle theObject,
133 AttributeHandleValueMap const & theAttributeValues,
134 VariableLengthData const & theUserSuppliedTag,
136 TransportationType theType,
137 LogicalTime const & theTime,
139 SupplementalReflectInfo theReflectInfo)
141 FederateInternalError);
144 ObjectInstanceHandle theObject,
145 AttributeHandleValueMap const & theAttributeValues,
146 VariableLengthData const & theUserSuppliedTag,
148 TransportationType theType,
149 LogicalTime const & theTime,
151 MessageRetractionHandle theHandle,
152 SupplementalReflectInfo theReflectInfo)
154 FederateInternalError);
159 ParameterHandleValueMap const & theParameterValues,
160 VariableLengthData const & theUserSuppliedTag,
162 TransportationType theType,
163 SupplementalReceiveInfo theReceiveInfo)
165 FederateInternalError);
169 ParameterHandleValueMap const & theParameterValues,
170 VariableLengthData const & theUserSuppliedTag,
172 TransportationType theType,
173 LogicalTime const & theTime,
175 SupplementalReceiveInfo theReceiveInfo)
177 FederateInternalError);
181 ParameterHandleValueMap const & theParameterValues,
182 VariableLengthData const & theUserSuppliedTag,
184 TransportationType theType,
185 LogicalTime const & theTime,
187 MessageRetractionHandle theHandle,
188 SupplementalReceiveInfo theReceiveInfo)
190 FederateInternalError);
194 ObjectInstanceHandle theObject,
195 VariableLengthData const & theUserSuppliedTag,
197 SupplementalRemoveInfo theRemoveInfo)
199 FederateInternalError);
201 ObjectInstanceHandle theObject,
202 VariableLengthData const & theUserSuppliedTag,
204 LogicalTime const & theTime,
206 SupplementalRemoveInfo theRemoveInfo)
208 FederateInternalError);
211 ObjectInstanceHandle theObject,
212 VariableLengthData const & theUserSuppliedTag,
214 LogicalTime const & theTime,
216 MessageRetractionHandle theHandle,
217 SupplementalRemoveInfo theRemoveInfo)
219 FederateInternalError);
224 AttributeHandleSet const & theAttributes,
225 VariableLengthData const & theUserSuppliedTag)
227 FederateInternalError);
233 FederateInternalError);
240 FederateInternalError);
246 FederateInternalError);
251 throw (FederateInternalError);
257 throw (FederateInternalError);
261 SynchronizationPointFailureReason reason)
262 throw (FederateInternalError);
267 VariableLengthData const & theUserSuppliedTag)
268 throw (FederateInternalError);
271 std::wstring const & label,
272 FederateHandleSet const& failedToSyncSet)
274 FederateInternalError);
std::map< std::string, RTI::AttributeHandle > DtAttrNameHandleMap
Definition: simpleDDMSimple13.h:25
Definition: rtiSimpleFedAmb13.h:37
virtual void requestRetraction(EventRetractionHandle theHandle)=0
8.22
virtual void synchronizationPointRegistrationFailed(const char *label)=0
supplied C4)
ULong InteractionClassHandle
Definition: RTItypes13.h:106
Definition: simpleTimeTimeManagedEntity.h:28
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 synchronizationPointRegistrationSucceeded(const char *label)=0
RTI Parameter Passing Memory Conventions.
virtual void timeAdvanceGrant(const FedTime &theTime)=0
8.13
virtual void announceSynchronizationPoint(const char *label, const char *tag)=0
4.8
virtual void federationSynchronized(const char *label)=0
4.10
virtual void discoverObjectInstance(ObjectHandle theObject, ObjectClassHandle theObjectClass, const char *theObjectName)=0
! Object Management Services //!
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 provideAttributeValueUpdate(ObjectHandle theObject, const AttributeHandleSet &theAttributes)=0
6.16
ULong FederateHandle
Definition: RTItypes13.h:120
std::map< std::string, RTI::ParameterHandle > DtParamNameHandleMap
Definition: simpleDDMSimple13.h:27
virtual Boolean throw(SpecifiedSaveLabelDoesNotExist, ConcurrentAccessAttempted, RTIinternalError)
ULong ObjectClassHandle
Definition: RTItypes13.h:104
virtual void timeConstrainedEnabled(const FedTime &theFederateTime)=0
8.6
OrderingHandle OrderType
Definition: RTItypes13.h:128
virtual void timeRegulationEnabled(const FedTime &theFederateTime)=0
! Time Management Services //!
NullFederateAmbassador()
Definition: NullFederateAmbassador13.h:39