MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
NullFederateAmbassador.h
Go to the documentation of this file.
1 /***********************************************************************
2  IEEE 1516.1 High Level Architecture Interface Specification C++ API
3  File: RTI/NullFederateAmbassador.h
4 ***********************************************************************/
5 
6 #ifndef RTI_NullFederateAmbassador_h
7 #define RTI_NullFederateAmbassador_h
8 
9 #include <RTI/Exception.h>
10 #include <RTI/FederateAmbassador.h>
11 
12 namespace rti1516
13 {
15  {
16  public:
18  throw (FederateInternalError) {}
19 
20  virtual
22  throw () {}
23 
24  // 4.7
25  virtual
26  void
27  synchronizationPointRegistrationSucceeded(std::wstring const & label)
28  throw (FederateInternalError) {}
29 
30  virtual
31  void
32  synchronizationPointRegistrationFailed(std::wstring const & label,
34  throw (FederateInternalError) {}
35 
36  // 4.8
37  virtual
38  void
39  announceSynchronizationPoint(std::wstring const & label,
40  VariableLengthData const & theUserSuppliedTag)
41  throw (FederateInternalError) {}
42 
43  // 4.10
44  virtual
45  void
46  federationSynchronized(std::wstring const & label)
47  throw (FederateInternalError) {}
48 
49  // 4.12
50  virtual
51  void
52  initiateFederateSave(std::wstring const & label)
53  throw (UnableToPerformSave,
54  FederateInternalError) {}
55 
56  virtual
57  void
58  initiateFederateSave(std::wstring const & label,
59  LogicalTime const & theTime)
60  throw (UnableToPerformSave,
61  InvalidLogicalTime,
62  FederateInternalError) {}
63 
64  // 4.15
65  virtual
66  void
68  throw (FederateInternalError) {}
69 
70  virtual
71  void
72  federationNotSaved(SaveFailureReason theSaveFailureReason)
73  throw (FederateInternalError) {}
74 
75 
76  // 4.17
77  virtual
78  void
81  theFederateStatusVector)
82  throw (FederateInternalError) {}
83 
84  // 4.19
85  virtual
86  void
87  requestFederationRestoreSucceeded(std::wstring const & label)
88  throw (FederateInternalError) {}
89 
90  virtual
91  void
92  requestFederationRestoreFailed(std::wstring const & label)
93  throw (FederateInternalError) {}
94 
95  // 4.20
96  virtual
97  void
99  throw (FederateInternalError) {}
100 
101  // 4.21
102  virtual
103  void
104  initiateFederateRestore(std::wstring const & label,
105  FederateHandle handle)
106  throw (SpecifiedSaveLabelDoesNotExist,
107  CouldNotInitiateRestore,
108  FederateInternalError) {}
109 
110  // 4.23
111  virtual
112  void
114  throw (FederateInternalError) {}
115 
116  virtual
117  void
118  federationNotRestored(RestoreFailureReason theRestoreFailureReason)
119  throw (FederateInternalError) {}
120 
121  // 4.25
122  virtual
123  void
126  theFederateStatusVector)
127  throw (FederateInternalError) {}
128 
130  // Declaration Management Services //
132 
133  // 5.10
134  virtual
135  void
136  startRegistrationForObjectClass(ObjectClassHandle theClass)
137  throw (ObjectClassNotPublished,
138  FederateInternalError) {}
139 
140  // 5.11
141  virtual
142  void
143  stopRegistrationForObjectClass(ObjectClassHandle theClass)
144  throw (ObjectClassNotPublished,
145  FederateInternalError) {}
146 
147  // 5.12
148  virtual
149  void
150  turnInteractionsOn(InteractionClassHandle theHandle)
151  throw (InteractionClassNotPublished,
152  FederateInternalError) {}
153 
154  // 5.13
155  virtual
156  void
157  turnInteractionsOff(InteractionClassHandle theHandle)
158  throw (InteractionClassNotPublished,
159  FederateInternalError) {}
160 
162  // Object Management Services //
164 
165  // 6.3
166  virtual
167  void
169  theObjectInstanceName)
170  throw (UnknownName,
171  FederateInternalError) {}
172 
173  virtual
174  void
176  theObjectInstanceName)
177  throw (UnknownName,
178  FederateInternalError) {}
179 
180 
181  // 6.5
182  virtual
183  void
184  discoverObjectInstance(ObjectInstanceHandle theObject,
185  ObjectClassHandle theObjectClass,
186  std::wstring const & theObjectInstanceName)
187  throw (CouldNotDiscover,
188  ObjectClassNotKnown,
189  FederateInternalError) {}
190 
191  // 6.7
192  virtual
193  void
195  (ObjectInstanceHandle theObject,
196  AttributeHandleValueMap const & theAttributeValues,
197  VariableLengthData const & theUserSuppliedTag,
198  OrderType sentOrder,
199  TransportationType theType)
200  throw (ObjectInstanceNotKnown,
201  AttributeNotRecognized,
202  AttributeNotSubscribed,
203  FederateInternalError) {}
204 
205  virtual
206  void
208  (ObjectInstanceHandle theObject,
209  AttributeHandleValueMap const & theAttributeValues,
210  VariableLengthData const & theUserSuppliedTag,
211  OrderType sentOrder,
212  TransportationType theType,
213  RegionHandleSet const & theSentRegionHandleSet)
214  throw (ObjectInstanceNotKnown,
215  AttributeNotRecognized,
216  AttributeNotSubscribed,
217  FederateInternalError) {}
218 
219  virtual
220  void
222  (ObjectInstanceHandle theObject,
223  AttributeHandleValueMap const & theAttributeValues,
224  VariableLengthData const & theUserSuppliedTag,
225  OrderType sentOrder,
226  TransportationType theType,
227  LogicalTime const & theTime,
228  OrderType receivedOrder)
229  throw (ObjectInstanceNotKnown,
230  AttributeNotRecognized,
231  AttributeNotSubscribed,
232  FederateInternalError) {}
233 
234  virtual
235  void
237  (ObjectInstanceHandle theObject,
238  AttributeHandleValueMap const & theAttributeValues,
239  VariableLengthData const & theUserSuppliedTag,
240  OrderType sentOrder,
241  TransportationType theType,
242  LogicalTime const & theTime,
243  OrderType receivedOrder,
244  RegionHandleSet const & theSentRegionHandleSet)
245  throw (ObjectInstanceNotKnown,
246  AttributeNotRecognized,
247  AttributeNotSubscribed,
248  FederateInternalError) {}
249 
250  virtual
251  void
253  (ObjectInstanceHandle theObject,
254  AttributeHandleValueMap const & theAttributeValues,
255  VariableLengthData const & theUserSuppliedTag,
256  OrderType sentOrder,
257  TransportationType theType,
258  LogicalTime const & theTime,
259  OrderType receivedOrder,
260  MessageRetractionHandle theHandle)
261  throw (ObjectInstanceNotKnown,
262  AttributeNotRecognized,
263  AttributeNotSubscribed,
264  InvalidLogicalTime,
265  FederateInternalError) {}
266 
267  virtual
268  void
270  (ObjectInstanceHandle theObject,
271  AttributeHandleValueMap const & theAttributeValues,
272  VariableLengthData const & theUserSuppliedTag,
273  OrderType sentOrder,
274  TransportationType theType,
275  LogicalTime const & theTime,
276  OrderType receivedOrder,
277  MessageRetractionHandle theHandle,
278  RegionHandleSet const & theSentRegionHandleSet)
279  throw (ObjectInstanceNotKnown,
280  AttributeNotRecognized,
281  AttributeNotSubscribed,
282  InvalidLogicalTime,
283  FederateInternalError) {}
284 
285  // 6.9
286  virtual
287  void
289  (InteractionClassHandle theInteraction,
290  ParameterHandleValueMap const & theParameterValues,
291  VariableLengthData const & theUserSuppliedTag,
292  OrderType sentOrder,
293  TransportationType theType)
294  throw (InteractionClassNotRecognized,
295  InteractionParameterNotRecognized,
296  InteractionClassNotSubscribed,
297  FederateInternalError) {}
298 
299  virtual
300  void
302  (InteractionClassHandle theInteraction,
303  ParameterHandleValueMap const & theParameterValues,
304  VariableLengthData const & theUserSuppliedTag,
305  OrderType sentOrder,
306  TransportationType theType,
307  RegionHandleSet const & theSentRegionHandleSet)
308  throw (InteractionClassNotRecognized,
309  InteractionParameterNotRecognized,
310  InteractionClassNotSubscribed,
311  FederateInternalError) {}
312 
313  virtual
314  void
316  (InteractionClassHandle theInteraction,
317  ParameterHandleValueMap const & theParameterValues,
318  VariableLengthData const & theUserSuppliedTag,
319  OrderType sentOrder,
320  TransportationType theType,
321  LogicalTime const & theTime,
322  OrderType receivedOrder)
323  throw (InteractionClassNotRecognized,
324  InteractionParameterNotRecognized,
325  InteractionClassNotSubscribed,
326  FederateInternalError) {}
327 
328  virtual
329  void
331  (InteractionClassHandle theInteraction,
332  ParameterHandleValueMap const & theParameterValues,
333  VariableLengthData const & theUserSuppliedTag,
334  OrderType sentOrder,
335  TransportationType theType,
336  LogicalTime const & theTime,
337  OrderType receivedOrder,
338  RegionHandleSet const & theSentRegionHandleSet)
339  throw (InteractionClassNotRecognized,
340  InteractionParameterNotRecognized,
341  InteractionClassNotSubscribed,
342  FederateInternalError) {}
343 
344  virtual
345  void
347  (InteractionClassHandle theInteraction,
348  ParameterHandleValueMap const & theParameterValues,
349  VariableLengthData const & theUserSuppliedTag,
350  OrderType sentOrder,
351  TransportationType theType,
352  LogicalTime const & theTime,
353  OrderType receivedOrder,
354  MessageRetractionHandle theHandle)
355  throw (InteractionClassNotRecognized,
356  InteractionParameterNotRecognized,
357  InteractionClassNotSubscribed,
358  InvalidLogicalTime,
359  FederateInternalError) {}
360 
361  virtual
362  void
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  RegionHandleSet const & theSentRegionHandleSet)
373  throw (InteractionClassNotRecognized,
374  InteractionParameterNotRecognized,
375  InteractionClassNotSubscribed,
376  InvalidLogicalTime,
377  FederateInternalError) {}
378 
379  // 6.11
380  virtual
381  void
382  removeObjectInstance(ObjectInstanceHandle theObject,
383  VariableLengthData const & theUserSuppliedTag,
384  OrderType sentOrder)
385  throw (ObjectInstanceNotKnown,
386  FederateInternalError) {}
387 
388  virtual
389  void
390  removeObjectInstance(ObjectInstanceHandle theObject,
391  VariableLengthData const & theUserSuppliedTag,
392  OrderType sentOrder,
393  LogicalTime const & theTime,
394  OrderType receivedOrder)
395  throw (ObjectInstanceNotKnown,
396  FederateInternalError) {}
397 
398  virtual
399  void
400  removeObjectInstance(ObjectInstanceHandle theObject,
401  VariableLengthData const & theUserSuppliedTag,
402  OrderType sentOrder,
403  LogicalTime const & theTime,
404  OrderType receivedOrder,
405  MessageRetractionHandle theHandle)
406  throw (ObjectInstanceNotKnown,
407  InvalidLogicalTime,
408  FederateInternalError) {}
409 
410  // 6.15
411  virtual
412  void
414  (ObjectInstanceHandle theObject,
415  AttributeHandleSet const & theAttributes)
416  throw (ObjectInstanceNotKnown,
417  AttributeNotRecognized,
418  AttributeNotSubscribed,
419  FederateInternalError) {}
420 
421  // 6.16
422  virtual
423  void
425  (ObjectInstanceHandle theObject,
426  AttributeHandleSet const & theAttributes)
427  throw (ObjectInstanceNotKnown,
428  AttributeNotRecognized,
429  AttributeNotSubscribed,
430  FederateInternalError) {}
431 
432  // 6.18
433  virtual
434  void
436  (ObjectInstanceHandle theObject,
437  AttributeHandleSet const & theAttributes,
438  VariableLengthData const & theUserSuppliedTag)
439  throw (ObjectInstanceNotKnown,
440  AttributeNotRecognized,
441  AttributeNotOwned,
442  FederateInternalError) {}
443 
444  // 6.19
445  virtual
446  void
448  (ObjectInstanceHandle theObject,
449  AttributeHandleSet const & theAttributes)
450  throw (ObjectInstanceNotKnown,
451  AttributeNotRecognized,
452  AttributeNotOwned,
453  FederateInternalError) {}
454 
455  // 6.20
456  virtual
457  void
459  (ObjectInstanceHandle theObject,
460  AttributeHandleSet const & theAttributes)
461  throw (ObjectInstanceNotKnown,
462  AttributeNotRecognized,
463  AttributeNotOwned,
464  FederateInternalError) {}
465 
467  // Ownership Management Services //
469 
470  // 7.4
471  virtual
472  void
474  (ObjectInstanceHandle theObject,
475  AttributeHandleSet const & offeredAttributes,
476  VariableLengthData const & theUserSuppliedTag)
477  throw (ObjectInstanceNotKnown,
478  AttributeNotRecognized,
479  AttributeAlreadyOwned,
480  AttributeNotPublished,
481  FederateInternalError) {}
482 
483  // 7.5
484  virtual
485  void
486  requestDivestitureConfirmation
487  (ObjectInstanceHandle theObject,
488  AttributeHandleSet const & releasedAttributes)
489  throw (ObjectInstanceNotKnown,
490  AttributeNotRecognized,
491  AttributeNotOwned,
492  AttributeDivestitureWasNotRequested,
493  FederateInternalError) {}
494 
495  // 7.7
496  virtual
497  void
499  (ObjectInstanceHandle theObject,
500  AttributeHandleSet const & securedAttributes,
501  VariableLengthData const & theUserSuppliedTag)
502  throw (ObjectInstanceNotKnown,
503  AttributeNotRecognized,
504  AttributeAcquisitionWasNotRequested,
505  AttributeAlreadyOwned,
506  AttributeNotPublished,
507  FederateInternalError) {}
508 
509  // 7.10
510  virtual
511  void
513  (ObjectInstanceHandle theObject,
514  AttributeHandleSet const & theAttributes)
515  throw (ObjectInstanceNotKnown,
516  AttributeNotRecognized,
517  AttributeAlreadyOwned,
518  AttributeAcquisitionWasNotRequested,
519  FederateInternalError) {}
520 
521  // 7.11
522  virtual
523  void
525  (ObjectInstanceHandle theObject,
526  AttributeHandleSet const & candidateAttributes,
527  VariableLengthData const & theUserSuppliedTag)
528  throw (ObjectInstanceNotKnown,
529  AttributeNotRecognized,
530  AttributeNotOwned,
531  FederateInternalError) {}
532 
533  // 7.15
534  virtual
535  void
537  (ObjectInstanceHandle theObject,
538  AttributeHandleSet const & theAttributes)
539  throw (ObjectInstanceNotKnown,
540  AttributeNotRecognized,
541  AttributeAlreadyOwned,
542  AttributeAcquisitionWasNotCanceled,
543  FederateInternalError) {}
544 
545  // 7.17
546  virtual
547  void
548  informAttributeOwnership(ObjectInstanceHandle theObject,
549  AttributeHandle theAttribute,
550  FederateHandle theOwner)
551  throw (ObjectInstanceNotKnown,
552  AttributeNotRecognized,
553  FederateInternalError) {}
554 
555  virtual
556  void
557  attributeIsNotOwned(ObjectInstanceHandle theObject,
558  AttributeHandle theAttribute)
559  throw (ObjectInstanceNotKnown,
560  AttributeNotRecognized,
561  FederateInternalError) {}
562 
563  virtual
564  void
565  attributeIsOwnedByRTI(ObjectInstanceHandle theObject,
566  AttributeHandle theAttribute)
567  throw (ObjectInstanceNotKnown,
568  AttributeNotRecognized,
569  FederateInternalError) {}
570 
572  // Time Management Services //
574 
575  // 8.3
576  virtual
577  void
578  timeRegulationEnabled(LogicalTime const & theFederateTime)
579  throw (InvalidLogicalTime,
580  NoRequestToEnableTimeRegulationWasPending,
581  FederateInternalError) {}
582 
583  // 8.6
584  virtual
585  void
586  timeConstrainedEnabled(LogicalTime const & theFederateTime)
587  throw (InvalidLogicalTime,
588  NoRequestToEnableTimeConstrainedWasPending,
589  FederateInternalError) {}
590 
591  // 8.13
592  virtual
593  void
594  timeAdvanceGrant(LogicalTime const & theTime)
595  throw (InvalidLogicalTime,
596  JoinedFederateIsNotInTimeAdvancingState,
597  FederateInternalError) {}
598 
599  // 8.22
600  virtual
601  void
602  requestRetraction(MessageRetractionHandle theHandle)
603  throw (FederateInternalError) {}
604  };
605 }
606 
607 #endif // RTI_NullFederateAmbassador_h
std::vector< FederateHandleSaveStatusPair > FederateHandleSaveStatusPairVector
Definition: Typedefs.h:57
#define RTI_EXPORT
Definition: SpecificConfig.h:55
virtual void requestAttributeOwnershipRelease(ObjectHandle theObject, const AttributeHandleSet &candidateAttributes, const char *theTag)=0
7.10
virtual void attributeIsNotOwned(ObjectInstanceHandle theObject, AttributeHandle theAttribute)
Definition: NullFederateAmbassador.h:557
virtual void removeObjectInstance(ObjectInstanceHandle theObject, VariableLengthData const &theUserSuppliedTag, OrderType sentOrder, LogicalTime const &theTime, OrderType receivedOrder)
Definition: NullFederateAmbassador.h:390
virtual void attributesOutOfScope(ObjectHandle theObject, const AttributeHandleSet &theAttributes)=0
6.14
virtual void removeObjectInstance(ObjectInstanceHandle theObject, VariableLengthData const &theUserSuppliedTag, OrderType sentOrder, LogicalTime const &theTime, OrderType receivedOrder, MessageRetractionHandle theHandle)
Definition: NullFederateAmbassador.h:400
virtual void discoverObjectInstance(ObjectInstanceHandle theObject, ObjectClassHandle theObjectClass, std::wstring const &theObjectInstanceName)
Definition: NullFederateAmbassador.h:184
virtual void confirmAttributeOwnershipAcquisitionCancellation(ObjectHandle theObject, const AttributeHandleSet &theAttributes)=0
7.14
virtual void startRegistrationForObjectClass(ObjectClassHandle theClass)=0
! Declaration Management Services //!
virtual void requestRetraction(EventRetractionHandle theHandle)=0
8.22
virtual void removeObjectInstance(ObjectInstanceHandle theObject, VariableLengthData const &theUserSuppliedTag, OrderType sentOrder)
Definition: NullFederateAmbassador.h:382
OrderType
Definition: Enums.h:13
std::set< RegionHandle > RegionHandleSet
Definition: Typedefs.h:31
virtual void synchronizationPointRegistrationFailed(std::wstring const &label, SynchronizationFailureReason reason)
Definition: NullFederateAmbassador.h:32
virtual void federationRestoreStatusResponse(FederateHandleRestoreStatusPairVector const &theFederateStatusVector)
Definition: NullFederateAmbassador.h:124
virtual void federationNotRestored()=0
virtual void attributesInScope(ObjectHandle theObject, const AttributeHandleSet &theAttributes)=0
6.13
virtual void attributeOwnershipUnavailable(ObjectHandle theObject, const AttributeHandleSet &theAttributes)=0
7.9
virtual void attributeIsOwnedByRTI(ObjectInstanceHandle theObject, AttributeHandle theAttribute)
Definition: NullFederateAmbassador.h:565
virtual void objectInstanceNameReservationFailed(std::wstring const &theObjectInstanceName)
Definition: NullFederateAmbassador.h:175
virtual void receiveInteraction(InteractionClassHandle theInteraction, const ParameterHandleValuePairSet &theParameters, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.7
virtual void federationSaveStatusResponse(FederateHandleSaveStatusPairVector const &theFederateStatusVector)
Definition: NullFederateAmbassador.h:79
virtual void synchronizationPointRegistrationSucceeded(const char *label)=0
RTI Parameter Passing Memory Conventions.
std::vector< FederateHandleRestoreStatusPair > FederateHandleRestoreStatusPairVector
Definition: Typedefs.h:65
virtual void initiateFederateSave(const char *label)=0
4.12
virtual void timeAdvanceGrant(const FedTime &theTime)=0
8.13
virtual void requestFederationRestoreFailed(const char *label, const char *reason)=0
supplied C4
virtual void federationNotSaved()=0
virtual void federationSynchronized(const char *label)=0
4.10
std::map< ParameterHandle, VariableLengthData > ParameterHandleValueMap
Definition: Typedefs.h:41
virtual void objectInstanceNameReservationSucceeded(std::wstring const &theObjectInstanceName)
Definition: NullFederateAmbassador.h:168
SynchronizationFailureReason
Definition: Enums.h:75
virtual void requestFederationRestoreSucceeded(const char *label)=0
4.17
RestoreFailureReason
Definition: Enums.h:29
virtual void attributeOwnershipAcquisitionNotification(ObjectHandle theObject, const AttributeHandleSet &securedAttributes)=0
7.6
virtual void reflectAttributeValues(ObjectHandle theObject, const AttributeHandleValuePairSet &theAttributes, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.5
std::map< AttributeHandle, VariableLengthData > AttributeHandleValueMap
Definition: Typedefs.h:36
Definition: NullFederateAmbassador.h:14
virtual void turnInteractionsOff(InteractionClassHandle theHandle)=0
5.13
std::set< AttributeHandle > AttributeHandleSet
Definition: Typedefs.h:27
Definition: FederateAmbassador.h:24
virtual void federationRestored()=0
4.21
virtual void provideAttributeValueUpdate(ObjectHandle theObject, const AttributeHandleSet &theAttributes)=0
6.16
virtual void initiateFederateSave(std::wstring const &label, LogicalTime const &theTime)
Definition: NullFederateAmbassador.h:58
virtual void turnUpdatesOffForObjectInstance(ObjectHandle theObject, const AttributeHandleSet &theAttributes)=0
6.18
virtual void initiateFederateRestore(std::wstring const &label, FederateHandle handle)
Definition: NullFederateAmbassador.h:104
virtual void informAttributeOwnership(ObjectInstanceHandle theObject, AttributeHandle theAttribute, FederateHandle theOwner)
Definition: NullFederateAmbassador.h:548
virtual void announceSynchronizationPoint(std::wstring const &label, VariableLengthData const &theUserSuppliedTag)
Definition: NullFederateAmbassador.h:39
virtual void requestAttributeOwnershipAssumption(ObjectHandle theObject, const AttributeHandleSet &offeredAttributes, const char *theTag)=0
! Ownership Management Services //!
virtual void turnUpdatesOnForObjectInstance(ObjectHandle theObject, const AttributeHandleSet &theAttributes)=0
6.17
Definition: VariableLengthData.h:22
virtual void stopRegistrationForObjectClass(ObjectClassHandle theClass)=0
5.11
Definition: LogicalTime.h:27
virtual void federationRestoreBegun()=0
4.18
virtual void federationSaved()=0
4.15
virtual void timeConstrainedEnabled(const FedTime &theFederateTime)=0
8.6
virtual void timeRegulationEnabled(const FedTime &theFederateTime)=0
! Time Management Services //!
virtual void turnInteractionsOn(InteractionClassHandle theHandle)=0
5.12
his file contains the rti1516e::FederateAmbassador class.
TransportationType
Definition: Enums.h:84
SaveFailureReason
Definition: Enums.h:47
virtual ~NullFederateAmbassador()
Definition: NullFederateAmbassador.h:21

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)