MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fedAmbWrap.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: fedAmbWrap.h,v $ $Revision: 1.12 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtFedAmbWrapper_H_
13 #define DtFedAmbWrapper_H_
14 
15 #ifdef DtIFSPEC13
16 
17 #include "rtiMsConfig.h"
18 
19 #ifdef DtIFSPEC13DLC
20 #include "NullFederateAmbassador13.h"
21 #define RTI rti13
22 #else
23 #include "NullFederateAmbassador.hh"
24 #endif
25 
26 class DtFedAmbWrapper;
27 
28 typedef DtFedAmbWrapper* (*DtFedAmbWrapperCreator)
29  (RTI::FederateAmbassador* fedAmb);
30 
37 
38 #ifdef DtIFSPEC13DLC
39 class DT_DLL_LRC DtFedAmbWrapper : public rti13::NullFederateAmbassador
40 #else
42 #endif
43 {
44 public:
45  DtFedAmbWrapper(RTI::FederateAmbassador* fedAmb) :
46  NullFederateAmbassador(), myFedAmb(fedAmb) {}
47 
48  virtual ~DtFedAmbWrapper() throw (RTI::FederateInternalError) {}
49 
50  virtual RTI::FederateAmbassador* fedAmb();
51  virtual void setFedAmb(RTI::FederateAmbassador* f);
52 
53 protected:
54  RTI::FederateAmbassador* myFedAmb;
55 
56 public:
57 
59 
60 
62  const char *label)
63  throw (
64  RTI::FederateInternalError);
65 
67  const char *label)
68  throw (
69  RTI::FederateInternalError);
70 
71  virtual void announceSynchronizationPoint (
72  const char *label,
73  const char *tag)
74  throw (
75  RTI::FederateInternalError);
76 
77  virtual void federationSynchronized (
78  const char *label)
79  throw (
80  RTI::FederateInternalError);
81 
82  virtual void initiateFederateSave (
83  const char *label)
84  throw (
85  RTI::UnableToPerformSave,
86  RTI::FederateInternalError);
87 
88  virtual void federationSaved ()
89  throw (
90  RTI::FederateInternalError);
91 
92  virtual void federationNotSaved ()
93  throw (
94  RTI::FederateInternalError);
95 
96  virtual void requestFederationRestoreSucceeded (
97  const char *label)
98  throw (
99  RTI::FederateInternalError);
100 
101  virtual void requestFederationRestoreFailed (
102  const char *label,
103  const char *reason)
104  throw (
105  RTI::FederateInternalError);
106 
107  virtual void federationRestoreBegun ()
108  throw (
109  RTI::FederateInternalError);
110 
111  virtual void initiateFederateRestore (
112  const char *label,
113  RTI::FederateHandle handle)
114  throw (
115  RTI::SpecifiedSaveLabelDoesNotExist,
116  RTI::CouldNotRestore,
117  RTI::FederateInternalError);
118 
119  virtual void federationRestored ()
120  throw (
121  RTI::FederateInternalError);
122 
123  virtual void federationNotRestored ()
124  throw (
125  RTI::FederateInternalError);
126 
128 
130 
131 
132  virtual void startRegistrationForObjectClass (
133  RTI::ObjectClassHandle theClass)
134  throw (
135  RTI::ObjectClassNotPublished,
136  RTI::FederateInternalError);
137 
138  virtual void stopRegistrationForObjectClass (
139  RTI::ObjectClassHandle theClass)
140  throw (
141  RTI::ObjectClassNotPublished,
142  RTI::FederateInternalError);
143 
144  virtual void turnInteractionsOn (
145  RTI::InteractionClassHandle theHandle)
146  throw (
147  RTI::InteractionClassNotPublished,
148  RTI::FederateInternalError);
149 
150  virtual void turnInteractionsOff (
151  RTI::InteractionClassHandle theHandle)
152  throw (
153  RTI::InteractionClassNotPublished,
154  RTI::FederateInternalError);
155 
157 
159 
160 
161  virtual void discoverObjectInstance (
162  RTI::ObjectHandle theObject,
163  RTI::ObjectClassHandle theObjectClass,
164  const char* theObjectName)
165  throw (
166  RTI::CouldNotDiscover,
167  RTI::ObjectClassNotKnown,
168  RTI::FederateInternalError);
169 
170  virtual void reflectAttributeValues (
171  RTI::ObjectHandle theObject,
172  const RTI::AttributeHandleValuePairSet& theAttributes,
173  const RTI::FedTime& theTime,
174  const char *theTag,
175  RTI::EventRetractionHandle theHandle)
176  throw (
177  RTI::ObjectNotKnown,
178  RTI::AttributeNotKnown,
179  RTI::FederateOwnsAttributes,
180  RTI::InvalidFederationTime,
181  RTI::FederateInternalError);
182 
183  virtual void reflectAttributeValues (
184  RTI::ObjectHandle theObject,
185  const RTI::AttributeHandleValuePairSet& theAttributes,
186  const char *theTag)
187  throw (
188  RTI::ObjectNotKnown,
189  RTI::AttributeNotKnown,
190  RTI::FederateOwnsAttributes,
191  RTI::FederateInternalError);
192 
193  virtual void receiveInteraction (
194  RTI::InteractionClassHandle theInteraction,
195  const RTI::ParameterHandleValuePairSet& theParameters,
196  const RTI::FedTime& theTime,
197  const char *theTag,
198  RTI::EventRetractionHandle theHandle)
199  throw (
200  RTI::InteractionClassNotKnown,
201  RTI::InteractionParameterNotKnown,
202  RTI::InvalidFederationTime,
203  RTI::FederateInternalError);
204 
205  virtual void receiveInteraction (
206  RTI::InteractionClassHandle theInteraction,
207  const RTI::ParameterHandleValuePairSet& theParameters,
208  const char *theTag)
209  throw (
210  RTI::InteractionClassNotKnown,
211  RTI::InteractionParameterNotKnown,
212  RTI::FederateInternalError);
213 
214  virtual void removeObjectInstance (
215  RTI::ObjectHandle theObject,
216  const RTI::FedTime& theTime,
217  const char *theTag,
218  RTI::EventRetractionHandle theHandle)
219  throw (
220  RTI::ObjectNotKnown,
221  RTI::InvalidFederationTime,
222  RTI::FederateInternalError);
223 
224  virtual void removeObjectInstance (
225  RTI::ObjectHandle theObject,
226  const char *theTag)
227  throw (
228  RTI::ObjectNotKnown,
229  RTI::FederateInternalError);
230 
231  virtual void attributesInScope (
232  RTI::ObjectHandle theObject,
233  const RTI::AttributeHandleSet& theAttributes)
234  throw (
235  RTI::ObjectNotKnown,
236  RTI::AttributeNotKnown,
237  RTI::FederateInternalError);
238 
239  virtual void attributesOutOfScope (
240  RTI::ObjectHandle theObject,
241  const RTI::AttributeHandleSet& theAttributes)
242  throw (
243  RTI::ObjectNotKnown,
244  RTI::AttributeNotKnown,
245  RTI::FederateInternalError);
246 
247  virtual void provideAttributeValueUpdate (
248  RTI::ObjectHandle theObject,
249  const RTI::AttributeHandleSet& theAttributes)
250  throw (
251  RTI::ObjectNotKnown,
252  RTI::AttributeNotKnown,
253  RTI::AttributeNotOwned,
254  RTI::FederateInternalError);
255 
256  virtual void turnUpdatesOnForObjectInstance (
257  RTI::ObjectHandle theObject,
258  const RTI::AttributeHandleSet& theAttributes)
259  throw (
260  RTI::ObjectNotKnown,
261  RTI::AttributeNotOwned,
262  RTI::FederateInternalError);
263 
264  virtual void turnUpdatesOffForObjectInstance (
265  RTI::ObjectHandle theObject,
266  const RTI::AttributeHandleSet& theAttributes)
267  throw (
268  RTI::ObjectNotKnown,
269  RTI::AttributeNotOwned,
270  RTI::FederateInternalError);
271 
273 
275 
276 
278  RTI::ObjectHandle theObject,
279  const RTI::AttributeHandleSet& offeredAttributes,
280  const char *theTag)
281  throw (
282  RTI::ObjectNotKnown,
283  RTI::AttributeNotKnown,
284  RTI::AttributeAlreadyOwned,
285  RTI::AttributeNotPublished,
286  RTI::FederateInternalError);
287 
289  RTI::ObjectHandle theObject,
290  const RTI::AttributeHandleSet& releasedAttributes)
291  throw (
292  RTI::ObjectNotKnown,
293  RTI::AttributeNotKnown,
294  RTI::AttributeNotOwned,
295  RTI::AttributeDivestitureWasNotRequested,
296  RTI::FederateInternalError);
297 
299  RTI::ObjectHandle theObject,
300  const RTI::AttributeHandleSet& securedAttributes)
301  throw (
302  RTI::ObjectNotKnown,
303  RTI::AttributeNotKnown,
304  RTI::AttributeAcquisitionWasNotRequested,
305  RTI::AttributeAlreadyOwned,
306  RTI::AttributeNotPublished,
307  RTI::FederateInternalError);
308 
309  virtual void attributeOwnershipUnavailable (
310  RTI::ObjectHandle theObject,
311  const RTI::AttributeHandleSet& theAttributes)
312  throw (
313  RTI::ObjectNotKnown,
314  RTI::AttributeNotKnown,
315  RTI::AttributeAlreadyOwned,
316  RTI::AttributeAcquisitionWasNotRequested,
317  RTI::FederateInternalError);
318 
319  virtual void requestAttributeOwnershipRelease (
320  RTI::ObjectHandle theObject,
321  const RTI::AttributeHandleSet& candidateAttributes,
322  const char *theTag)
323  throw (
324  RTI::ObjectNotKnown,
325  RTI::AttributeNotKnown,
326  RTI::AttributeNotOwned,
327  RTI::FederateInternalError);
328 
330  RTI::ObjectHandle theObject,
331  const RTI::AttributeHandleSet& theAttributes)
332  throw (
333  RTI::ObjectNotKnown,
334  RTI::AttributeNotKnown,
335  RTI::AttributeAlreadyOwned,
336  RTI::AttributeAcquisitionWasNotCanceled,
337  RTI::FederateInternalError);
338 
339  virtual void informAttributeOwnership (
340  RTI::ObjectHandle theObject,
341  RTI::AttributeHandle theAttribute,
342  RTI::FederateHandle theOwner)
343  throw (
344  RTI::ObjectNotKnown,
345  RTI::AttributeNotKnown,
346  RTI::FederateInternalError);
347 
348  virtual void attributeIsNotOwned (
349  RTI::ObjectHandle theObject,
350  RTI::AttributeHandle theAttribute)
351  throw (
352  RTI::ObjectNotKnown,
353  RTI::AttributeNotKnown,
354  RTI::FederateInternalError);
355 
356  virtual void attributeOwnedByRTI (
357  RTI::ObjectHandle theObject,
358  RTI::AttributeHandle theAttribute)
359  throw (
360  RTI::ObjectNotKnown,
361  RTI::AttributeNotKnown,
362  RTI::FederateInternalError);
363 
365 
367 
368 
369  virtual void timeRegulationEnabled (
370  const RTI::FedTime& theFederateTime)
371  throw (
372  RTI::InvalidFederationTime,
373  RTI::EnableTimeRegulationWasNotPending,
374  RTI::FederateInternalError);
375 
376  virtual void timeConstrainedEnabled (
377  const RTI::FedTime& theFederateTime)
378  throw (
379  RTI::InvalidFederationTime,
380  RTI::EnableTimeConstrainedWasNotPending,
381  RTI::FederateInternalError);
382 
383  virtual void timeAdvanceGrant (
384  const RTI::FedTime& theTime)
385  throw (
386  RTI::InvalidFederationTime,
387  RTI::TimeAdvanceWasNotInProgress,
388  RTI::FederateInternalError);
389 
390  virtual void requestRetraction (
391  RTI::EventRetractionHandle theHandle)
392  throw (
393  RTI::EventNotKnown,
394  RTI::FederateInternalError);
395 
397 };
398 
399 inline RTI::FederateAmbassador* DtFedAmbWrapper::fedAmb()
400 {
401  return myFedAmb;
402 }
403 
404 inline void DtFedAmbWrapper::setFedAmb(RTI::FederateAmbassador* f)
405 {
406  myFedAmb = f;
407 }
408 
410  const char *label)
411  throw (
412  RTI::FederateInternalError)
413 {
414  if (myFedAmb)
415  {
416  myFedAmb->synchronizationPointRegistrationSucceeded(label);
417  }
418 }
419 
421  const char *label)
422  throw (
423  RTI::FederateInternalError)
424 {
425  if (myFedAmb)
426  {
427  myFedAmb-> synchronizationPointRegistrationFailed(label);
428  }
429 }
430 
432  const char *label,
433  const char *tag)
434  throw (
435  RTI::FederateInternalError)
436 {
437  if (myFedAmb)
438  {
439  myFedAmb-> announceSynchronizationPoint(label, tag);
440  }
441 }
442 
444  const char *label)
445  throw (
446  RTI::FederateInternalError)
447 {
448  if (myFedAmb)
449  {
450  myFedAmb-> federationSynchronized(label);
451  }
452 }
453 
455  const char *label)
456  throw (
457  RTI::UnableToPerformSave,
458  RTI::FederateInternalError)
459 {
460  if (myFedAmb)
461  {
462  myFedAmb-> initiateFederateSave(label);
463  }
464 }
465 
466 inline void DtFedAmbWrapper::federationSaved ()
467  throw (
468  RTI::FederateInternalError)
469 {
470  if (myFedAmb)
471  {
472  myFedAmb-> federationSaved();
473  }
474 }
475 
477  throw (
478  RTI::FederateInternalError)
479 {
480  if (myFedAmb)
481  {
482  myFedAmb-> federationNotSaved();
483  }
484 }
485 
487  const char *label)
488  throw (
489  RTI::FederateInternalError)
490 {
491  if (myFedAmb)
492  {
493  myFedAmb-> requestFederationRestoreSucceeded(label);
494  }
495 }
496 
498  const char *label, const char *reason)
499  throw (
500  RTI::FederateInternalError)
501 {
502  if (myFedAmb)
503  {
504  myFedAmb-> requestFederationRestoreFailed(label, reason);
505  }
506 }
507 
509  throw (
510  RTI::FederateInternalError)
511 {
512  if (myFedAmb)
513  {
514  myFedAmb-> federationRestoreBegun();
515  }
516 }
517 
519  const char *label, RTI::FederateHandle handle)
520  throw (
521  RTI::SpecifiedSaveLabelDoesNotExist,
522  RTI::CouldNotRestore,
523  RTI::FederateInternalError)
524 {
525  if (myFedAmb)
526  {
527  myFedAmb-> initiateFederateRestore(label, handle);
528  }
529 }
530 
531 
533  throw (
534  RTI::FederateInternalError)
535 {
536  if (myFedAmb)
537  {
538  myFedAmb-> federationRestored();
539  }
540 }
541 
543  throw (
544  RTI::FederateInternalError)
545 {
546  if (myFedAmb)
547  {
548  myFedAmb-> federationNotRestored();
549  }
550 }
551 
553  RTI::ObjectClassHandle theClass)
554  throw (
555  RTI::ObjectClassNotPublished,
556  RTI::FederateInternalError)
557 {
558  if (myFedAmb)
559  {
560  myFedAmb-> startRegistrationForObjectClass(theClass);
561  }
562 }
563 
565  RTI::ObjectClassHandle theClass)
566  throw (
567  RTI::ObjectClassNotPublished,
568  RTI::FederateInternalError)
569 {
570  if (myFedAmb)
571  {
572  myFedAmb-> stopRegistrationForObjectClass(theClass);
573  }
574 }
575 
577  RTI::InteractionClassHandle theHandle)
578  throw (
579  RTI::InteractionClassNotPublished,
580  RTI::FederateInternalError)
581 {
582  if (myFedAmb)
583  {
584  myFedAmb-> turnInteractionsOn(theHandle);
585  }
586 }
587 
588 
590  RTI::InteractionClassHandle theHandle)
591  throw (
592  RTI::InteractionClassNotPublished,
593  RTI::FederateInternalError)
594 {
595  if (myFedAmb)
596  {
597  myFedAmb-> turnInteractionsOff(theHandle);
598  }
599 }
600 
601 
603  RTI::ObjectHandle theObject,
604  RTI::ObjectClassHandle theObjectClass,
605  const char * theObjectName)
606  throw (
607  RTI::CouldNotDiscover,
608  RTI::ObjectClassNotKnown,
609  RTI::FederateInternalError)
610 {
611  if (myFedAmb)
612  {
613  myFedAmb-> discoverObjectInstance(
614  theObject, theObjectClass, theObjectName);
615  }
616 }
617 
618 
620  RTI::ObjectHandle theObject,
621  const RTI::AttributeHandleValuePairSet& theAttributes,
622  const RTI::FedTime& theTime,
623  const char *theTag,
624  RTI::EventRetractionHandle theHandle)
625  throw (
626  RTI::ObjectNotKnown,
627  RTI::AttributeNotKnown,
628  RTI::FederateOwnsAttributes,
629  RTI::InvalidFederationTime,
630  RTI::FederateInternalError)
631 {
632  if (myFedAmb)
633  {
634  myFedAmb-> reflectAttributeValues(
635  theObject, theAttributes, theTime, theTag, theHandle);
636  }
637 }
638 
640  RTI::ObjectHandle theObject,
641  const RTI::AttributeHandleValuePairSet& theAttributes,
642  const char* theTag)
643  throw (
644  RTI::ObjectNotKnown,
645  RTI::AttributeNotKnown,
646  RTI::FederateOwnsAttributes,
647  RTI::FederateInternalError)
648 {
649  if (myFedAmb)
650  {
651  myFedAmb-> reflectAttributeValues(theObject, theAttributes, theTag);
652  }
653 }
654 
655 
657  RTI::InteractionClassHandle theInteraction,
658  const RTI::ParameterHandleValuePairSet& theParameters,
659  const RTI::FedTime& theTime,
660  const char *theTag,
661  RTI::EventRetractionHandle theHandle)
662  throw (
663  RTI::InteractionClassNotKnown,
664  RTI::InteractionParameterNotKnown,
665  RTI::InvalidFederationTime,
666  RTI::FederateInternalError)
667 {
668  if (myFedAmb)
669  {
670  myFedAmb-> receiveInteraction(
671  theInteraction, theParameters, theTime, theTag, theHandle);
672  }
673 }
674 
676  RTI::InteractionClassHandle theInteraction,
677  const RTI::ParameterHandleValuePairSet& theParameters,
678  const char *theTag)
679  throw (
680  RTI::InteractionClassNotKnown,
681  RTI::InteractionParameterNotKnown,
682  RTI::FederateInternalError)
683 {
684  if (myFedAmb)
685  {
686  myFedAmb-> receiveInteraction(theInteraction, theParameters, theTag);
687  }
688 }
689 
690 
692  RTI::ObjectHandle theObject,
693  const RTI::FedTime& theTime,
694  const char *theTag,
695  RTI::EventRetractionHandle theHandle)
696  throw (
697  RTI::ObjectNotKnown,
698  RTI::InvalidFederationTime,
699  RTI::FederateInternalError)
700 {
701  if (myFedAmb)
702  {
703  myFedAmb-> removeObjectInstance(
704  theObject, theTime, theTag, theHandle);
705  }
706 }
707 
709  RTI::ObjectHandle theObject, const char *theTag)
710  throw (
711  RTI::ObjectNotKnown,
712  RTI::FederateInternalError)
713 {
714  if (myFedAmb)
715  {
716  myFedAmb-> removeObjectInstance(theObject, theTag);
717  }
718 }
719 
720 
722  RTI::ObjectHandle theObject,
723  const RTI::AttributeHandleSet& theAttributes)
724  throw (
725  RTI::ObjectNotKnown,
726  RTI::AttributeNotKnown,
727  RTI::FederateInternalError)
728 {
729  if (myFedAmb)
730  {
731  myFedAmb-> attributesInScope(
732  theObject, theAttributes);
733  }
734 }
735 
736 
738  RTI::ObjectHandle theObject,
739  const RTI::AttributeHandleSet& theAttributes)
740  throw (
741  RTI::ObjectNotKnown,
742  RTI::AttributeNotKnown,
743  RTI::FederateInternalError)
744 {
745  if (myFedAmb)
746  {
747  myFedAmb-> attributesOutOfScope(
748  theObject, theAttributes);
749  }
750 }
751 
752 
754  RTI::ObjectHandle theObject,
755  const RTI::AttributeHandleSet& theAttributes)
756  throw (
757  RTI::ObjectNotKnown,
758  RTI::AttributeNotKnown,
759  RTI::AttributeNotOwned,
760  RTI::FederateInternalError)
761 {
762  if (myFedAmb)
763  {
764  myFedAmb-> provideAttributeValueUpdate(
765  theObject, theAttributes);
766  }
767 }
768 
769 
771  RTI::ObjectHandle theObject,
772  const RTI::AttributeHandleSet& theAttributes)
773  throw (
774  RTI::ObjectNotKnown,
775  RTI::AttributeNotOwned,
776  RTI::FederateInternalError)
777 {
778  if (myFedAmb)
779  {
780  myFedAmb-> turnUpdatesOnForObjectInstance(
781  theObject, theAttributes);
782  }
783 }
784 
785 
787  RTI::ObjectHandle theObject,
788  const RTI::AttributeHandleSet& theAttributes)
789  throw (
790  RTI::ObjectNotKnown,
791  RTI::AttributeNotOwned,
792  RTI::FederateInternalError)
793 {
794  if (myFedAmb)
795  {
797  theObject, theAttributes);
798  }
799 }
800 
802  RTI::ObjectHandle theObject,
803  const RTI::AttributeHandleSet& offeredAttributes,
804  const char *theTag)
805  throw (
806  RTI::ObjectNotKnown,
807  RTI::AttributeNotKnown,
808  RTI::AttributeAlreadyOwned,
809  RTI::AttributeNotPublished,
810  RTI::FederateInternalError)
811 {
812  if (myFedAmb)
813  {
815  theObject, offeredAttributes, theTag);
816  }
817 }
818 
820  RTI::ObjectHandle theObject,
821  const RTI::AttributeHandleSet& releasedAttributes)
822  throw (
823  RTI::ObjectNotKnown,
824  RTI::AttributeNotKnown,
825  RTI::AttributeNotOwned,
826  RTI::AttributeDivestitureWasNotRequested,
827  RTI::FederateInternalError)
828 {
829  if (myFedAmb)
830  {
832  theObject, releasedAttributes);
833  }
834 }
835 
836 
838  RTI::ObjectHandle theObject,
839  const RTI::AttributeHandleSet& securedAttributes)
840  throw (
841  RTI::ObjectNotKnown,
842  RTI::AttributeNotKnown,
843  RTI::AttributeAcquisitionWasNotRequested,
844  RTI::AttributeAlreadyOwned,
845  RTI::AttributeNotPublished,
846  RTI::FederateInternalError)
847 {
848  if (myFedAmb)
849  {
851  theObject, securedAttributes);
852  }
853 }
854 
855 
857  RTI::ObjectHandle theObject,
858  const RTI::AttributeHandleSet& theAttributes)
859  throw (
860  RTI::ObjectNotKnown,
861  RTI::AttributeNotKnown,
862  RTI::AttributeAlreadyOwned,
863  RTI::AttributeAcquisitionWasNotRequested,
864  RTI::FederateInternalError)
865 {
866  if (myFedAmb)
867  {
868  myFedAmb-> attributeOwnershipUnavailable(
869  theObject, theAttributes);
870  }
871 }
872 
873 
875  RTI::ObjectHandle theObject,
876  const RTI::AttributeHandleSet& candidateAttributes,
877  const char *theTag)
878  throw (
879  RTI::ObjectNotKnown,
880  RTI::AttributeNotKnown,
881  RTI::AttributeNotOwned,
882  RTI::FederateInternalError)
883 {
884  if (myFedAmb)
885  {
887  theObject, candidateAttributes, theTag);
888  }
889 }
890 
891 
893  RTI::ObjectHandle theObject,
894  const RTI::AttributeHandleSet& theAttributes)
895  throw (
896  RTI::ObjectNotKnown,
897  RTI::AttributeNotKnown,
898  RTI::AttributeAlreadyOwned,
899  RTI::AttributeAcquisitionWasNotCanceled,
900  RTI::FederateInternalError)
901 {
902  if (myFedAmb)
903  {
905  theObject, theAttributes);
906  }
907 }
908 
909 
911  RTI::ObjectHandle theObject,
912  RTI::AttributeHandle theAttribute,
913  RTI::FederateHandle theOwner)
914  throw (
915  RTI::ObjectNotKnown,
916  RTI::AttributeNotKnown,
917  RTI::FederateInternalError)
918 {
919  if (myFedAmb)
920  {
921  myFedAmb-> informAttributeOwnership(theObject, theAttribute, theOwner);
922  }
923 }
924 
926  RTI::ObjectHandle theObject,
927  RTI::AttributeHandle theAttribute)
928  throw (
929  RTI::ObjectNotKnown,
930  RTI::AttributeNotKnown,
931  RTI::FederateInternalError)
932 {
933  if (myFedAmb)
934  {
935  myFedAmb-> attributeIsNotOwned(theObject, theAttribute);
936  }
937 }
938 
940  RTI::ObjectHandle theObject,
941  RTI::AttributeHandle theAttribute)
942  throw (
943  RTI::ObjectNotKnown,
944  RTI::AttributeNotKnown,
945  RTI::FederateInternalError)
946 {
947  if (myFedAmb)
948  {
949  myFedAmb-> attributeOwnedByRTI(theObject, theAttribute);
950  }
951 }
952 
954  const RTI::FedTime& theFederateTime)
955  throw (
956  RTI::InvalidFederationTime,
957  RTI::EnableTimeRegulationWasNotPending,
958  RTI::FederateInternalError)
959 {
960  if (myFedAmb)
961  {
962  myFedAmb-> timeRegulationEnabled(theFederateTime);
963  }
964 }
965 
967  const RTI::FedTime& theFederateTime)
968  throw (
969  RTI::InvalidFederationTime,
970  RTI::EnableTimeConstrainedWasNotPending,
971  RTI::FederateInternalError)
972 {
973  if (myFedAmb)
974  {
975  myFedAmb-> timeConstrainedEnabled(theFederateTime);
976  }
977 }
978 
980  const RTI::FedTime& theTime)
981  throw (
982  RTI::InvalidFederationTime,
983  RTI::TimeAdvanceWasNotInProgress,
984  RTI::FederateInternalError)
985 {
986  if (myFedAmb)
987  {
988  myFedAmb-> timeAdvanceGrant(theTime);
989  }
990 }
991 
993  RTI::EventRetractionHandle theHandle)
994  throw (
995  RTI::EventNotKnown,
996  RTI::FederateInternalError)
997 {
998  if (myFedAmb)
999  {
1000  myFedAmb-> requestRetraction(theHandle);
1001  }
1002 }
1003 
1004 #endif
1005 #endif
1006 

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)