MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rtiSimpleFedAmb1516e.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #ifndef MyFederateAmbassador_H_
7 #define MyFederateAmbassador_H_
8 
9 #pragma warning(disable: 4251)
10 #pragma warning(disable: 4786)
11 #pragma warning(disable: 4290)
12 
13 #include <RTI/RTI1516.h>
15 #include <string>
16 #include <map>
17 
18 using namespace rti1516e;
19 
20 class DtTalkAmbData
21 {
22 public:
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;
33 
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;
42  FederateHandle myRestoreFederateHandle;
43  RestoreFailureReason myRestoreFailureReason;
45 
46  std::map<ObjectClassHandle, std::wstring> objectClassMap;
47  std::map<ObjectInstanceHandle, std::wstring> objectInstanceMap;
48  std::map<InteractionClassHandle, std::wstring> interactionClassMap;
49 };
50 
52 {
53 public:
54 
56 
57  virtual ~MyFederateAmbassador()
58  throw ();
59 
60  // 4.8
61  virtual void reportFederationExecutions (
63  theFederationExecutionInformationList)
64  throw (
65  FederateInternalError);
66 
67  // 4.17
68  virtual void initiateFederateSave(
69  std::wstring const & label)
70  throw (FederateInternalError);
71 
72  // 4.20
73  virtual void federationSaved()
74  throw (FederateInternalError);
75 
76  virtual void federationNotSaved(SaveFailureReason theSaveFailureReason)
77  throw (FederateInternalError);
78 
79  // 4.23
80  virtual void federationSaveStatusResponse(
81  FederateHandleSaveStatusPairVector const & theFederateStatusVector)
82  throw (FederateInternalError);
83 
84  // 4.25
85  virtual void requestFederationRestoreSucceeded(std::wstring const & label)
86  throw (FederateInternalError);
87 
88  virtual void requestFederationRestoreFailed(std::wstring const & label)
89  throw (FederateInternalError);
90 
91  // 4.26
92  virtual void federationRestoreBegun()
93  throw (FederateInternalError);
94 
95  // 4.27
96  virtual void initiateFederateRestore(
97  std::wstring const & label,
98  std::wstring const & federateName,
99  FederateHandle handle)
100  throw (FederateInternalError);
101 
102  // 4.29
103  virtual void federationRestored()
104  throw (FederateInternalError);
105 
106  virtual void federationNotRestored(RestoreFailureReason theRestoreFailureReason)
107  throw (FederateInternalError);
108 
109  // 4.32
110  virtual void federationRestoreStatusResponse(
112  theFederateRestoreStatusVector)
113  throw (FederateInternalError);
114 
115 
116  // 6.3
117  virtual void objectInstanceNameReservationSucceeded(
118  std::wstring const & theObjectInstanceName)
119  throw (FederateInternalError);
120 
121  virtual void objectInstanceNameReservationFailed(
122  std::wstring const & theObjectInstanceName)
123  throw (FederateInternalError);
124 
125  // 6.9
126  virtual void discoverObjectInstance (
127  ObjectInstanceHandle theObject,
128  ObjectClassHandle theObjectClass,
129  std::wstring const & theObjectInstanceName)
130  throw (FederateInternalError);
131 
132  virtual void discoverObjectInstance (
133  ObjectInstanceHandle theObject,
134  ObjectClassHandle theObjectClass,
135  std::wstring const & theObjectInstanceName,
136  FederateHandle producingFederate)
137  throw (FederateInternalError);
138 
139 
140  // 6.11
141  virtual void reflectAttributeValues(
142  ObjectInstanceHandle theObject,
143  AttributeHandleValueMap const & theAttributeValues,
144  VariableLengthData const & theUserSuppliedTag,
145  OrderType sentOrder,
146  TransportationType theType,
147  SupplementalReflectInfo theReflectInfo)
148  throw (FederateInternalError);
149 
150  virtual void reflectAttributeValues(
151  ObjectInstanceHandle theObject,
152  AttributeHandleValueMap const & theAttributeValues,
153  VariableLengthData const & theUserSuppliedTag,
154  OrderType sentOrder,
155  TransportationType theType,
156  LogicalTime const & theTime,
157  OrderType receivedOrder,
158  SupplementalReflectInfo theReflectInfo)
159  throw (FederateInternalError);
160 
161  virtual void reflectAttributeValues(
162  ObjectInstanceHandle theObject,
163  AttributeHandleValueMap const & theAttributeValues,
164  VariableLengthData const & theUserSuppliedTag,
165  OrderType sentOrder,
166  TransportationType theType,
167  LogicalTime const & theTime,
168  OrderType receivedOrder,
169  MessageRetractionHandle theHandle,
170  SupplementalReflectInfo theReflectInfo)
171  throw (FederateInternalError);
172 
173 
174  // 6.13
175  virtual void receiveInteraction (
176  InteractionClassHandle theInteraction,
177  ParameterHandleValueMap const & theParameterValues,
178  VariableLengthData const & theUserSuppliedTag,
179  OrderType sentOrder,
180  TransportationType theType,
181  SupplementalReceiveInfo theReceiveInfo)
182  throw (FederateInternalError);
183 
184  virtual void receiveInteraction (
185  InteractionClassHandle theInteraction,
186  ParameterHandleValueMap const & theParameterValues,
187  VariableLengthData const & theUserSuppliedTag,
188  OrderType sentOrder,
189  TransportationType theType,
190  LogicalTime const & theTime,
191  OrderType receivedOrder,
192  SupplementalReceiveInfo theReceiveInfo)
193  throw (FederateInternalError);
194 
195  virtual void receiveInteraction (
196  InteractionClassHandle theInteraction,
197  ParameterHandleValueMap const & theParameterValues,
198  VariableLengthData const & theUserSuppliedTag,
199  OrderType sentOrder,
200  TransportationType theType,
201  LogicalTime const & theTime,
202  OrderType receivedOrder,
203  MessageRetractionHandle theHandle,
204  SupplementalReceiveInfo theReceiveInfo)
205  throw (FederateInternalError);
206 
207 
208  // 6.15
209  virtual void removeObjectInstance (
210  ObjectInstanceHandle theObject,
211  VariableLengthData const & theUserSuppliedTag,
212  OrderType sentOrder,
213  SupplementalRemoveInfo theRemoveInfo)
214  throw (FederateInternalError);
215 
216  virtual void removeObjectInstance (
217  ObjectInstanceHandle theObject,
218  VariableLengthData const & theUserSuppliedTag,
219  OrderType sentOrder,
220  LogicalTime const & theTime,
221  OrderType receivedOrder,
222  SupplementalRemoveInfo theRemoveInfo)
223  throw (FederateInternalError);
224 
225  virtual void removeObjectInstance (
226  ObjectInstanceHandle theObject,
227  VariableLengthData const & theUserSuppliedTag,
228  OrderType sentOrder,
229  LogicalTime const & theTime,
230  OrderType receivedOrder,
231  MessageRetractionHandle theHandle,
232  SupplementalRemoveInfo theRemoveInfo)
233  throw (FederateInternalError);
234 
235  virtual void reportAttributeTransportationType (
236  ObjectInstanceHandle theObject,
237  AttributeHandle theAttribute,
238  TransportationType theTransportation)
239  throw (FederateInternalError);
240 
241  virtual void confirmAttributeTransportationTypeChange (
242  ObjectInstanceHandle theObject,
243  AttributeHandleSet theAttributes,
244  TransportationType theTransportation)
245  throw (
246  FederateInternalError);
247 
248  virtual void confirmInteractionTransportationTypeChange (
249  InteractionClassHandle theInteraction,
250  TransportationType theTransportation)
251  throw (
252  FederateInternalError);
253 
254  // 6.30
255  virtual void reportInteractionTransportationType (
256  FederateHandle federateHandle,
257  InteractionClassHandle theInteraction,
258  TransportationType theTransportation)
259  throw (
260  FederateInternalError);
261 
262  virtual void multipleObjectInstanceNameReservationSucceeded (
263  std::set<std::wstring> const & theObjectInstanceNames)
264  throw (
265  FederateInternalError);
266 
267  virtual void multipleObjectInstanceNameReservationFailed (
268  std::set<std::wstring> const & theObjectInstanceNames)
269  throw (
270  FederateInternalError);
271 
272 public:
273  DtTalkAmbData & myData;
274 };
275 
276 #endif

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)