MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
serverFederateAmbassador1516e.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 
8 #pragma once
9 
10 #if DtHLA_1516_EVOLVED && !DtHLA_4
11 
14 
15 #include <vl/vrlFederateAmbassador1516e.h>
16 
17 namespace MAKTrafficClientServerExConn
18 {
19  class DT_DLL_CSEC DtServerFederateAmbassador : public DtServerFederateAmbassadorBase, public DtVrlFederateAmbassador
20  {
21 
22  public:
23 
25  DtServerFederateAmbassador()
26  throw (RTI::FederateInternalError);
27 
29  virtual ~DtServerFederateAmbassador()
30  throw();
31 
32  protected:
33 
35  DtServerFederateAmbassador(const DtServerFederateAmbassador& src);
37  DtServerFederateAmbassador& operator=(const DtServerFederateAmbassador& src);
38 
39  public:
40 
44 
46  virtual void connectionLost (
47  std::wstring const & faultDescription)
48  throw (
49  RTI::FederateInternalError);
50 
52  virtual void reportFederationExecutions (
53  RTI::FederationExecutionInformationVector const &
54  theFederationExecutionInformationList)
55  throw (
56  RTI::FederateInternalError);
57 
59  virtual void synchronizationPointRegistrationSucceeded (
60  std::wstring const & label)
61  throw (
62  RTI::FederateInternalError);
63 
64  virtual void synchronizationPointRegistrationFailed (
65  std::wstring const & label,
66  RTI::SynchronizationPointFailureReason reason)
67  throw (
68  RTI::FederateInternalError);
69 
71  virtual void announceSynchronizationPoint (
72  std::wstring const & label,
73  RTI::VariableLengthData const & theUserSuppliedTag)
74  throw (
75  RTI::FederateInternalError);
76 
78  virtual void federationSynchronized (
79  std::wstring const & label,
80  RTI::FederateHandleSet const& failedToSyncSet)
81  throw (
82  RTI::FederateInternalError);
83 
85  virtual void initiateFederateSave (
86  std::wstring const & label)
87  throw (
88  RTI::FederateInternalError);
89 
90  virtual void initiateFederateSave (
91  std::wstring const & label,
92  RTI::LogicalTime const & theTime)
93  throw (
94  RTI::FederateInternalError);
95 
97  virtual void federationSaved ()
98  throw (
99  RTI::FederateInternalError);
100 
101  virtual void federationNotSaved (
102  RTI::SaveFailureReason theSaveFailureReason)
103  throw (
104  RTI::FederateInternalError);
105 
106 
108  virtual void federationSaveStatusResponse (
109  RTI::FederateHandleSaveStatusPairVector const &
110  theFederateStatusVector)
111  throw (
112  RTI::FederateInternalError);
113 
115  virtual void requestFederationRestoreSucceeded (
116  std::wstring const & label)
117  throw (
118  RTI::FederateInternalError);
119 
120  virtual void requestFederationRestoreFailed (
121  std::wstring const & label)
122  throw (
123  RTI::FederateInternalError);
124 
126  virtual void federationRestoreBegun ()
127  throw (
128  RTI::FederateInternalError);
129 
131  virtual void initiateFederateRestore (
132  std::wstring const & label,
133  std::wstring const & federateName,
134  RTI::FederateHandle handle)
135  throw (
136  RTI::FederateInternalError);
137 
139  virtual void federationRestored ()
140  throw (
141  RTI::FederateInternalError);
142 
143  virtual void federationNotRestored (
144  RTI::RestoreFailureReason theRestoreFailureReason)
145  throw (
146  RTI::FederateInternalError);
147 
149  virtual void federationRestoreStatusResponse (
150  RTI::FederateRestoreStatusVector const &
151  theFederateRestoreStatusVector)
152  throw (
153  RTI::FederateInternalError);
154 
158 
160  virtual void startRegistrationForObjectClass (
161  RTI::ObjectClassHandle theClass)
162  throw (
163  RTI::FederateInternalError);
164 
166  virtual void stopRegistrationForObjectClass (
167  RTI::ObjectClassHandle theClass)
168  throw (
169  RTI::FederateInternalError);
170 
172  virtual void turnInteractionsOn (
173  RTI::InteractionClassHandle theHandle)
174  throw (
175  RTI::FederateInternalError);
176 
178  virtual void turnInteractionsOff (
179  RTI::InteractionClassHandle theHandle)
180  throw (
181  RTI::FederateInternalError);
182 
186 
188  virtual void objectInstanceNameReservationSucceeded (
189  std::wstring const & theObjectInstanceName)
190  throw (
191  RTI::FederateInternalError);
192 
193  virtual void objectInstanceNameReservationFailed (
194  std::wstring const & theObjectInstanceName)
195  throw (
196  RTI::FederateInternalError);
197 
199  virtual void multipleObjectInstanceNameReservationSucceeded (
200  std::set<std::wstring> const & theObjectInstanceNames)
201  throw (
202  RTI::FederateInternalError);
203 
204  virtual void multipleObjectInstanceNameReservationFailed (
205  std::set<std::wstring> const & theObjectInstanceNames)
206  throw (
207  RTI::FederateInternalError);
208 
210  virtual void discoverObjectInstance (
211  RTI::ObjectInstanceHandle theObject,
212  RTI::ObjectClassHandle theObjectClass,
213  std::wstring const & theObjectInstanceName)
214  throw (
215  RTI::FederateInternalError);
216 
217  virtual void discoverObjectInstanceSR(
218  unsigned int clientID,
219  ObjectInstanceHandle theObject,
220  ObjectClassHandle theObjectClass,
221  std::wstring const & theObjectInstanceName);
222 
223  virtual void discoverObjectInstance (
224  RTI::ObjectInstanceHandle theObject,
225  RTI::ObjectClassHandle theObjectClass,
226  std::wstring const & theObjectInstanceName,
227  RTI::FederateHandle producingFederate)
228  throw (
229  RTI::FederateInternalError);
230 
231  virtual void discoverObjectInstanceSR(
232  unsigned int clientID,
233  ObjectInstanceHandle theObject,
234  ObjectClassHandle theObjectClass,
235  std::wstring const & theObjectInstanceName,
236  FederateHandle producingFederate);
237 
239  virtual void reflectAttributeValues (
240  RTI::ObjectInstanceHandle theObject,
241  RTI::AttributeHandleValueMap const & theAttributeValues,
242  RTI::VariableLengthData const & theUserSuppliedTag,
243  RTI::OrderType sentOrder,
244  RTI::TransportationType theType,
245  RTI::SupplementalReflectInfo theReflectInfo)
246  throw (
247  RTI::FederateInternalError);
248 
249  virtual void reflectAttributeValuesSR(
250  unsigned int clientID,
251  ObjectInstanceHandle theObject,
252  AttributeHandleValueMap const & theAttributeValues,
253  VariableLengthData const & theUserSuppliedTag,
254  OrderType sentOrder,
255  TransportationType theType,
256  SupplementalReflectInfo theReflectInfo);
257 
258  virtual void reflectAttributeValues (
259  RTI::ObjectInstanceHandle theObject,
260  RTI::AttributeHandleValueMap const & theAttributeValues,
261  RTI::VariableLengthData const & theUserSuppliedTag,
262  RTI::OrderType sentOrder,
263  RTI::TransportationType theType,
264  RTI::LogicalTime const & theTime,
265  RTI::OrderType receivedOrder,
266  RTI::SupplementalReflectInfo theReflectInfo)
267  throw (
268  RTI::FederateInternalError);
269 
270  virtual void reflectAttributeValuesSR(
271  unsigned int clientID,
272  ObjectInstanceHandle theObject,
273  AttributeHandleValueMap const & theAttributeValues,
274  VariableLengthData const & theUserSuppliedTag,
275  OrderType sentOrder,
276  TransportationType theType,
277  LogicalTime const & theTime,
278  OrderType receivedOrder,
279  SupplementalReflectInfo theReflectInfo);
280 
281  virtual void reflectAttributeValues (
282  RTI::ObjectInstanceHandle theObject,
283  RTI::AttributeHandleValueMap const & theAttributeValues,
284  RTI::VariableLengthData const & theUserSuppliedTag,
285  RTI::OrderType sentOrder,
286  RTI::TransportationType theType,
287  RTI::LogicalTime const & theTime,
288  RTI::OrderType receivedOrder,
289  RTI::MessageRetractionHandle theHandle,
290  RTI::SupplementalReflectInfo theReflectInfo)
291  throw (
292  RTI::FederateInternalError);
293 
294  virtual void reflectAttributeValuesSR(
295  unsigned int clientID,
296  ObjectInstanceHandle theObject,
297  AttributeHandleValueMap const & theAttributeValues,
298  VariableLengthData const & theUserSuppliedTag,
299  OrderType sentOrder,
300  TransportationType theType,
301  LogicalTime const & theTime,
302  OrderType receivedOrder,
303  MessageRetractionHandle theHandle,
304  SupplementalReflectInfo theReflectInfo);
305 
307  virtual void receiveInteraction (
308  RTI::InteractionClassHandle theInteraction,
309  RTI::ParameterHandleValueMap const & theParameterValues,
310  RTI::VariableLengthData const & theUserSuppliedTag,
311  RTI::OrderType sentOrder,
312  RTI::TransportationType theType,
313  RTI::SupplementalReceiveInfo theReceiveInfo)
314  throw (
315  RTI::FederateInternalError);
316 
317  virtual void receiveInteractionSR(
318  unsigned int clientID,
319  InteractionClassHandle theInteraction,
320  ParameterHandleValueMap const & theParameterValues,
321  VariableLengthData const & theUserSuppliedTag,
322  OrderType sentOrder,
323  TransportationType theType,
324  SupplementalReceiveInfo theReceiveInfo);
325 
326  virtual void receiveInteraction (
327  RTI::InteractionClassHandle theInteraction,
328  RTI::ParameterHandleValueMap const & theParameterValues,
329  RTI::VariableLengthData const & theUserSuppliedTag,
330  RTI::OrderType sentOrder,
331  RTI::TransportationType theType,
332  RTI::LogicalTime const & theTime,
333  RTI::OrderType receivedOrder,
334  RTI::SupplementalReceiveInfo theReceiveInfo)
335  throw (
336  RTI::FederateInternalError);
337 
338  virtual void receiveInteractionSR(
339  unsigned int clientID,
340  InteractionClassHandle theInteraction,
341  ParameterHandleValueMap const & theParameterValues,
342  VariableLengthData const & theUserSuppliedTag,
343  OrderType sentOrder,
344  TransportationType theType,
345  LogicalTime const & theTime,
346  OrderType receivedOrder,
347  SupplementalReceiveInfo theReceiveInfo);
348 
349  virtual void receiveInteraction (
350  RTI::InteractionClassHandle theInteraction,
351  RTI::ParameterHandleValueMap const & theParameterValues,
352  RTI::VariableLengthData const & theUserSuppliedTag,
353  RTI::OrderType sentOrder,
354  RTI::TransportationType theType,
355  RTI::LogicalTime const & theTime,
356  RTI::OrderType receivedOrder,
357  RTI::MessageRetractionHandle theHandle,
358  RTI::SupplementalReceiveInfo theReceiveInfo)
359  throw (
360  RTI::FederateInternalError);
361 
362  virtual void receiveInteractionSR(
363  unsigned int clientID,
364  InteractionClassHandle theInteraction,
365  ParameterHandleValueMap const & theParameterValues,
366  VariableLengthData const & theUserSuppliedTag,
367  OrderType sentOrder,
368  TransportationType theType,
369  LogicalTime const & theTime,
370  OrderType receivedOrder,
371  MessageRetractionHandle theHandle,
372  SupplementalReceiveInfo theReceiveInfo);
373 
375  virtual void removeObjectInstance (
376  RTI::ObjectInstanceHandle theObject,
377  RTI::VariableLengthData const & theUserSuppliedTag,
378  RTI::OrderType sentOrder,
379  RTI::SupplementalRemoveInfo theRemoveInfo)
380  throw (
381  RTI::FederateInternalError);
382 
383  virtual void removeObjectInstanceSR(
384  unsigned int clientID,
385  ObjectInstanceHandle theObject,
386  VariableLengthData const & theUserSuppliedTag,
387  OrderType sentOrder,
388  SupplementalRemoveInfo theRemoveInfo);
389 
390  virtual void removeObjectInstance (
391  RTI::ObjectInstanceHandle theObject,
392  RTI::VariableLengthData const & theUserSuppliedTag,
393  RTI::OrderType sentOrder,
394  RTI::LogicalTime const & theTime,
395  RTI::OrderType receivedOrder,
396  RTI::SupplementalRemoveInfo theRemoveInfo)
397  throw (
398  RTI::FederateInternalError);
399 
400  virtual void removeObjectInstanceSR(
401  unsigned int clientID,
402  ObjectInstanceHandle theObject,
403  VariableLengthData const & theUserSuppliedTag,
404  OrderType sentOrder,
405  LogicalTime const & theTime,
406  OrderType receivedOrder,
407  SupplementalRemoveInfo theRemoveInfo);
408 
409  virtual void removeObjectInstance (
410  RTI::ObjectInstanceHandle theObject,
411  RTI::VariableLengthData const & theUserSuppliedTag,
412  RTI::OrderType sentOrder,
413  RTI::LogicalTime const & theTime,
414  RTI::OrderType receivedOrder,
415  RTI::MessageRetractionHandle theHandle,
416  RTI::SupplementalRemoveInfo theRemoveInfo)
417  throw (
418  RTI::FederateInternalError);
419 
420  virtual void removeObjectInstanceSR(
421  unsigned int clientID,
422  ObjectInstanceHandle theObject,
423  VariableLengthData const & theUserSuppliedTag,
424  OrderType sentOrder,
425  LogicalTime const & theTime,
426  OrderType receivedOrder,
427  MessageRetractionHandle theHandle,
428  SupplementalRemoveInfo theRemoveInfo);
429 
431  virtual void attributesInScope (
432  RTI::ObjectInstanceHandle theObject,
433  RTI::AttributeHandleSet const & theAttributes)
434  throw (
435  RTI::FederateInternalError);
436 
438  virtual void attributesOutOfScope (
439  RTI::ObjectInstanceHandle theObject,
440  RTI::AttributeHandleSet const & theAttributes)
441  throw (
442  RTI::FederateInternalError);
443 
445  virtual void provideAttributeValueUpdate (
446  RTI::ObjectInstanceHandle theObject,
447  RTI::AttributeHandleSet const & theAttributes,
448  RTI::VariableLengthData const & theUserSuppliedTag)
449  throw (
450  RTI::FederateInternalError);
451 
453  virtual void turnUpdatesOnForObjectInstance (
454  RTI::ObjectInstanceHandle theObject,
455  RTI::AttributeHandleSet const & theAttributes)
456  throw (
457  RTI::FederateInternalError);
458 
459  virtual void turnUpdatesOnForObjectInstance (
460  RTI::ObjectInstanceHandle theObject,
461  RTI::AttributeHandleSet const & theAttributes,
462  std::wstring const & updateRateDesignator)
463  throw (
464  RTI::FederateInternalError);
465 
467  virtual void turnUpdatesOffForObjectInstance (
468  RTI::ObjectInstanceHandle theObject,
469  RTI::AttributeHandleSet const & theAttributes)
470  throw (
471  RTI::FederateInternalError);
472 
474  virtual void confirmAttributeTransportationTypeChange (
475  RTI::ObjectInstanceHandle theObject,
476  RTI::AttributeHandleSet theAttributes,
477  RTI::TransportationType theTransportation)
478  throw (
479  RTI::FederateInternalError);
480 
482  virtual void reportAttributeTransportationType (
483  RTI::ObjectInstanceHandle theObject,
484  RTI::AttributeHandle theAttribute,
485  RTI::TransportationType theTransportation)
486  throw (
487  RTI::FederateInternalError);
488 
490  virtual void confirmInteractionTransportationTypeChange (
491  RTI::InteractionClassHandle theInteraction,
492  RTI::TransportationType theTransportation)
493  throw (
494  RTI::FederateInternalError);
495 
497  virtual void reportInteractionTransportationType (
498  RTI::FederateHandle federateHandle,
499  RTI::InteractionClassHandle theInteraction,
500  RTI::TransportationType theTransportation)
501  throw (
502  RTI::FederateInternalError);
503 
504 
508 
510  virtual void requestAttributeOwnershipAssumption (
511  RTI::ObjectInstanceHandle theObject,
512  RTI::AttributeHandleSet const & offeredAttributes,
513  RTI::VariableLengthData const & theUserSuppliedTag)
514  throw (
515  RTI::FederateInternalError);
516 
518  virtual void requestDivestitureConfirmation (
519  RTI::ObjectInstanceHandle theObject,
520  RTI::AttributeHandleSet const & releasedAttributes)
521  throw (
522  RTI::FederateInternalError);
523 
525  virtual void attributeOwnershipAcquisitionNotification (
526  RTI::ObjectInstanceHandle theObject,
527  RTI::AttributeHandleSet const & securedAttributes,
528  RTI::VariableLengthData const & theUserSuppliedTag)
529  throw (
530  RTI::FederateInternalError);
531 
533  virtual void attributeOwnershipUnavailable (
534  RTI::ObjectInstanceHandle theObject,
535  RTI::AttributeHandleSet const & theAttributes)
536  throw (
537  RTI::FederateInternalError);
538 
540  virtual void requestAttributeOwnershipRelease (
541  RTI::ObjectInstanceHandle theObject,
542  RTI::AttributeHandleSet const & candidateAttributes,
543  RTI::VariableLengthData const & theUserSuppliedTag)
544  throw (
545  RTI::FederateInternalError);
546 
548  virtual void confirmAttributeOwnershipAcquisitionCancellation (
549  RTI::ObjectInstanceHandle theObject,
550  RTI::AttributeHandleSet const & theAttributes)
551  throw (
552  RTI::FederateInternalError);
553 
555  virtual void informAttributeOwnership (
556  RTI::ObjectInstanceHandle theObject,
557  RTI::AttributeHandle theAttribute,
558  RTI::FederateHandle theOwner)
559  throw (
560  RTI::FederateInternalError);
561 
562  virtual void attributeIsNotOwned (
563  RTI::ObjectInstanceHandle theObject,
564  RTI::AttributeHandle theAttribute)
565  throw (
566  RTI::FederateInternalError);
567 
568  virtual void attributeIsOwnedByRTI (
569  RTI::ObjectInstanceHandle theObject,
570  RTI::AttributeHandle theAttribute)
571  throw (
572  RTI::FederateInternalError);
573 
577 
579  virtual void timeRegulationEnabled (
580  RTI::LogicalTime const & theFederateTime)
581  throw (
582  RTI::FederateInternalError);
583 
585  virtual void timeConstrainedEnabled (
586  RTI::LogicalTime const & theFederateTime)
587  throw (
588  RTI::FederateInternalError);
589 
591  virtual void timeAdvanceGrant (
592  RTI::LogicalTime const & theTime)
593  throw (
594  RTI::FederateInternalError);
595 
597  virtual void requestRetraction (
598  RTI::MessageRetractionHandle theHandle)
599  throw (
600  RTI::FederateInternalError);
601 
602  public:
603 
605  static DtVrlFederateAmbassador* create();
606 
607  protected:
608 
610  virtual std::auto_ptr<RTI::LogicalTime> copyTime(RTI::LogicalTime const& timeValue);
611 
612  };
613 }
614 
615 #endif
#define DT_DLL_CSEC
Definition: clientServerExConnDllDefines.h:17

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)