MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
momWrapper1516.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: momWrapper1516.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtMomWrapper1516_h
13 #define DtMomWrapper1516_h
14 #ifdef DtMOM
15 #ifdef DtIFSPEC1516
16 
17 #include "rtiMsConfig.h"
18 #include "fedAmbWrap1516.h"
19 #include "momArgument.h"
20 
21 class DtMomMgr;
22 
23 class DT_DLL_LRC DtMomWrapper : public DtFedAmbWrapper
24 {
25 public:
26 
28  DtMomWrapper( DtMomMgr* momMgrPtr );
29 
31  virtual ~DtMomWrapper() throw ();
32 
34  virtual DtMomMgr* momMgr();
35 
37  virtual void reset();
38 
39  // Get the verbose level
40  virtual int verboseLevel() const;
41 
44  virtual unsigned long objectRemoveCount() const;
45 
48  virtual unsigned long objectDiscoverCount() const;
49 
51 
52 
54  virtual
55  void
56  synchronizationPointRegistrationSucceeded(std::wstring const & label)
57  throw (rti1516::FederateInternalError);
58 
59  virtual
60  void
61  synchronizationPointRegistrationFailed(std::wstring const & label,
62  rti1516::SynchronizationFailureReason reason)
63  throw (rti1516::FederateInternalError);
64 
66  virtual
67  void
68  announceSynchronizationPoint(std::wstring const & label,
69  rti1516::VariableLengthData const & theUserSuppliedTag)
70  throw (rti1516::FederateInternalError);
71 
73  virtual
74  void
75  federationSynchronized(std::wstring const & label)
76  throw (rti1516::FederateInternalError);
77 
79  virtual
80  void
81  initiateFederateSave(std::wstring const & label)
82  throw (rti1516::UnableToPerformSave,
83  rti1516::FederateInternalError);
84 
85  virtual
86  void
87  initiateFederateSave(std::wstring const & label,
88  rti1516::LogicalTime const & theTime)
89  throw (rti1516::UnableToPerformSave,
90  rti1516::InvalidLogicalTime,
91  rti1516::FederateInternalError);
92 
94  virtual
95  void
97  throw (rti1516::FederateInternalError);
98 
99  virtual
100  void
101  federationNotSaved(rti1516::SaveFailureReason theSaveFailureReason)
102  throw (rti1516::FederateInternalError);
103 
104 
106  virtual
107  void
108  federationSaveStatusResponse(
109  rti1516::FederateHandleSaveStatusPairVector const & theFederateStatusVector)
110  throw (rti1516::FederateInternalError);
111 
113  virtual
114  void
115  requestFederationRestoreSucceeded(std::wstring const & label)
116  throw (rti1516::FederateInternalError);
117 
118  virtual
119  void
120  requestFederationRestoreFailed(std::wstring const & label)
121  throw (rti1516::FederateInternalError);
122 
124  virtual
125  void
127  throw (rti1516::FederateInternalError);
128 
130  virtual
131  void
132  initiateFederateRestore(std::wstring const & label,
133  rti1516::FederateHandle handle)
134  throw (rti1516::SpecifiedSaveLabelDoesNotExist,
135  rti1516::CouldNotInitiateRestore,
136  rti1516::FederateInternalError);
137 
139  virtual
140  void
142  throw (rti1516::FederateInternalError);
143 
144  virtual
145  void
146  federationNotRestored(rti1516::RestoreFailureReason theRestoreFailureReason)
147  throw (rti1516::FederateInternalError);
148 
150  virtual
151  void
152  federationRestoreStatusResponse(
153  rti1516::FederateHandleRestoreStatusPairVector const & theFederateStatusVector)
154  throw (rti1516::FederateInternalError);
156 
158 
159 
161  virtual
162  void
164  throw (rti1516::ObjectClassNotPublished,
165  rti1516::FederateInternalError);
166 
168  virtual
169  void
171  throw (rti1516::ObjectClassNotPublished,
172  rti1516::FederateInternalError);
173 
175  virtual
176  void
177  turnInteractionsOn(rti1516::InteractionClassHandle theHandle)
178  throw (rti1516::InteractionClassNotPublished,
179  rti1516::FederateInternalError);
180 
182  virtual
183  void
184  turnInteractionsOff(rti1516::InteractionClassHandle theHandle)
185  throw (rti1516::InteractionClassNotPublished,
186  rti1516::FederateInternalError);
188 
190 
191 
193  virtual
194  void
195  objectInstanceNameReservationSucceeded(std::wstring const &
196  theObjectInstanceName)
197  throw (rti1516::UnknownName,
198  rti1516::FederateInternalError);
199 
200  virtual
201  void
202  objectInstanceNameReservationFailed(std::wstring const &
203  theObjectInstanceName)
204  throw (rti1516::UnknownName,
205  rti1516::FederateInternalError);
206 
207 
209  virtual
210  void
211  discoverObjectInstance(rti1516::ObjectInstanceHandle theObject,
212  rti1516::ObjectClassHandle theObjectClass,
213  std::wstring const & theObjectInstanceName)
214  throw (rti1516::CouldNotDiscover,
215  rti1516::ObjectClassNotKnown,
216  rti1516::FederateInternalError);
217 
219  virtual
220  void
222  (rti1516::ObjectInstanceHandle theObject,
223  rti1516::AttributeHandleValueMap const & theAttributeValues,
224  rti1516::VariableLengthData const & theUserSuppliedTag,
225  rti1516::OrderType sentOrder,
226  rti1516::TransportationType theType)
227  throw (rti1516::ObjectInstanceNotKnown,
228  rti1516::AttributeNotRecognized,
229  rti1516::AttributeNotSubscribed,
230  rti1516::FederateInternalError);
231 
232  virtual
233  void
235  (rti1516::ObjectInstanceHandle theObject,
236  rti1516::AttributeHandleValueMap const & theAttributeValues,
237  rti1516::VariableLengthData const & theUserSuppliedTag,
238  rti1516::OrderType sentOrder,
239  rti1516::TransportationType theType,
240  rti1516::RegionHandleSet const & theSentRegionHandleSet)
241  throw (rti1516::ObjectInstanceNotKnown,
242  rti1516::AttributeNotRecognized,
243  rti1516::AttributeNotSubscribed,
244  rti1516::FederateInternalError);
245 
246  virtual
247  void
249  (rti1516::ObjectInstanceHandle theObject,
250  rti1516::AttributeHandleValueMap const & theAttributeValues,
251  rti1516::VariableLengthData const & theUserSuppliedTag,
252  rti1516::OrderType sentOrder,
253  rti1516::TransportationType theType,
254  rti1516::LogicalTime const & theTime,
255  rti1516::OrderType receivedOrder)
256  throw (rti1516::ObjectInstanceNotKnown,
257  rti1516::AttributeNotRecognized,
258  rti1516::AttributeNotSubscribed,
259  rti1516::FederateInternalError);
260 
261  virtual
262  void
264  (rti1516::ObjectInstanceHandle theObject,
265  rti1516::AttributeHandleValueMap const & theAttributeValues,
266  rti1516::VariableLengthData const & theUserSuppliedTag,
267  rti1516::OrderType sentOrder,
268  rti1516::TransportationType theType,
269  rti1516::LogicalTime const & theTime,
270  rti1516::OrderType receivedOrder,
271  rti1516::RegionHandleSet const & theSentRegionHandleSet)
272  throw (rti1516::ObjectInstanceNotKnown,
273  rti1516::AttributeNotRecognized,
274  rti1516::AttributeNotSubscribed,
275  rti1516::FederateInternalError);
276 
277  virtual
278  void
280  (rti1516::ObjectInstanceHandle theObject,
281  rti1516::AttributeHandleValueMap const & theAttributeValues,
282  rti1516::VariableLengthData const & theUserSuppliedTag,
283  rti1516::OrderType sentOrder,
284  rti1516::TransportationType theType,
285  rti1516::LogicalTime const & theTime,
286  rti1516::OrderType receivedOrder,
287  rti1516::MessageRetractionHandle theHandle)
288  throw (rti1516::ObjectInstanceNotKnown,
289  rti1516::AttributeNotRecognized,
290  rti1516::AttributeNotSubscribed,
291  rti1516::InvalidLogicalTime,
292  rti1516::FederateInternalError);
293 
294  virtual
295  void
297  (rti1516::ObjectInstanceHandle theObject,
298  rti1516::AttributeHandleValueMap const & theAttributeValues,
299  rti1516::VariableLengthData const & theUserSuppliedTag,
300  rti1516::OrderType sentOrder,
301  rti1516::TransportationType theType,
302  rti1516::LogicalTime const & theTime,
303  rti1516::OrderType receivedOrder,
304  rti1516::MessageRetractionHandle theHandle,
305  rti1516::RegionHandleSet const & theSentRegionHandleSet)
306  throw (rti1516::ObjectInstanceNotKnown,
307  rti1516::AttributeNotRecognized,
308  rti1516::AttributeNotSubscribed,
309  rti1516::InvalidLogicalTime,
310  rti1516::FederateInternalError);
311 
313  virtual
314  void
316  (rti1516::InteractionClassHandle theInteraction,
317  rti1516::ParameterHandleValueMap const & theParameterValues,
318  rti1516::VariableLengthData const & theUserSuppliedTag,
319  rti1516::OrderType sentOrder,
320  rti1516::TransportationType theType)
321  throw (rti1516::InteractionClassNotRecognized,
322  rti1516::InteractionParameterNotRecognized,
323  rti1516::InteractionClassNotSubscribed,
324  rti1516::FederateInternalError);
325 
326  virtual
327  void
329  (rti1516::InteractionClassHandle theInteraction,
330  rti1516::ParameterHandleValueMap const & theParameterValues,
331  rti1516::VariableLengthData const & theUserSuppliedTag,
332  rti1516::OrderType sentOrder,
333  rti1516::TransportationType theType,
334  rti1516::RegionHandleSet const & theSentRegionHandleSet)
335  throw (rti1516::InteractionClassNotRecognized,
336  rti1516::InteractionParameterNotRecognized,
337  rti1516::InteractionClassNotSubscribed,
338  rti1516::FederateInternalError);
339 
340  virtual
341  void
343  (rti1516::InteractionClassHandle theInteraction,
344  rti1516::ParameterHandleValueMap const & theParameterValues,
345  rti1516::VariableLengthData const & theUserSuppliedTag,
346  rti1516::OrderType sentOrder,
347  rti1516::TransportationType theType,
348  rti1516::LogicalTime const & theTime,
349  rti1516::OrderType receivedOrder)
350  throw (rti1516::InteractionClassNotRecognized,
351  rti1516::InteractionParameterNotRecognized,
352  rti1516::InteractionClassNotSubscribed,
353  rti1516::FederateInternalError);
354 
355  virtual
356  void
358  (rti1516::InteractionClassHandle theInteraction,
359  rti1516::ParameterHandleValueMap const & theParameterValues,
360  rti1516::VariableLengthData const & theUserSuppliedTag,
361  rti1516::OrderType sentOrder,
362  rti1516::TransportationType theType,
363  rti1516::LogicalTime const & theTime,
364  rti1516::OrderType receivedOrder,
365  rti1516::RegionHandleSet const & theSentRegionHandleSet)
366  throw (rti1516::InteractionClassNotRecognized,
367  rti1516::InteractionParameterNotRecognized,
368  rti1516::InteractionClassNotSubscribed,
369  rti1516::FederateInternalError);
370 
371  virtual
372  void
374  (rti1516::InteractionClassHandle theInteraction,
375  rti1516::ParameterHandleValueMap const & theParameterValues,
376  rti1516::VariableLengthData const & theUserSuppliedTag,
377  rti1516::OrderType sentOrder,
378  rti1516::TransportationType theType,
379  rti1516::LogicalTime const & theTime,
380  rti1516::OrderType receivedOrder,
381  rti1516::MessageRetractionHandle theHandle)
382  throw (rti1516::InteractionClassNotRecognized,
383  rti1516::InteractionParameterNotRecognized,
384  rti1516::InteractionClassNotSubscribed,
385  rti1516::InvalidLogicalTime,
386  rti1516::FederateInternalError);
387 
388  virtual
389  void
391  (rti1516::InteractionClassHandle theInteraction,
392  rti1516::ParameterHandleValueMap const & theParameterValues,
393  rti1516::VariableLengthData const & theUserSuppliedTag,
394  rti1516::OrderType sentOrder,
395  rti1516::TransportationType theType,
396  rti1516::LogicalTime const & theTime,
397  rti1516::OrderType receivedOrder,
398  rti1516::MessageRetractionHandle theHandle,
399  rti1516::RegionHandleSet const & theSentRegionHandleSet)
400  throw (rti1516::InteractionClassNotRecognized,
401  rti1516::InteractionParameterNotRecognized,
402  rti1516::InteractionClassNotSubscribed,
403  rti1516::InvalidLogicalTime,
404  rti1516::FederateInternalError);
405 
407  virtual
408  void
409  removeObjectInstance(rti1516::ObjectInstanceHandle theObject,
410  rti1516::VariableLengthData const & theUserSuppliedTag,
411  rti1516::OrderType sentOrder)
412  throw (rti1516::ObjectInstanceNotKnown,
413  rti1516::FederateInternalError);
414 
415  virtual
416  void
417  removeObjectInstance(rti1516::ObjectInstanceHandle theObject,
418  rti1516::VariableLengthData const & theUserSuppliedTag,
419  rti1516::OrderType sentOrder,
420  rti1516::LogicalTime const & theTime,
421  rti1516::OrderType receivedOrder)
422  throw (rti1516::ObjectInstanceNotKnown,
423  rti1516::FederateInternalError);
424 
425  virtual
426  void
427  removeObjectInstance(rti1516::ObjectInstanceHandle theObject,
428  rti1516::VariableLengthData const & theUserSuppliedTag,
429  rti1516::OrderType sentOrder,
430  rti1516::LogicalTime const & theTime,
431  rti1516::OrderType receivedOrder,
432  rti1516::MessageRetractionHandle theHandle)
433  throw (rti1516::ObjectInstanceNotKnown,
434  rti1516::InvalidLogicalTime,
435  rti1516::FederateInternalError);
436 
438  virtual
439  void
441  (rti1516::ObjectInstanceHandle theObject,
442  rti1516::AttributeHandleSet const & theAttributes)
443  throw (rti1516::ObjectInstanceNotKnown,
444  rti1516::AttributeNotRecognized,
445  rti1516::AttributeNotSubscribed,
446  rti1516::FederateInternalError);
447 
449  virtual
450  void
452  (rti1516::ObjectInstanceHandle theObject,
453  rti1516::AttributeHandleSet const & theAttributes)
454  throw (rti1516::ObjectInstanceNotKnown,
455  rti1516::AttributeNotRecognized,
456  rti1516::AttributeNotSubscribed,
457  rti1516::FederateInternalError);
458 
460  virtual
461  void
463  (rti1516::ObjectInstanceHandle theObject,
464  rti1516::AttributeHandleSet const & theAttributes,
465  rti1516::VariableLengthData const & theUserSuppliedTag)
466  throw (rti1516::ObjectInstanceNotKnown,
467  rti1516::AttributeNotRecognized,
468  rti1516::AttributeNotOwned,
469  rti1516::FederateInternalError);
470 
472  virtual
473  void
475  (rti1516::ObjectInstanceHandle theObject,
476  rti1516::AttributeHandleSet const & theAttributes)
477  throw (rti1516::ObjectInstanceNotKnown,
478  rti1516::AttributeNotRecognized,
479  rti1516::AttributeNotOwned,
480  rti1516::FederateInternalError);
481 
483  virtual
484  void
486  (rti1516::ObjectInstanceHandle theObject,
487  rti1516::AttributeHandleSet const & theAttributes)
488  throw (rti1516::ObjectInstanceNotKnown,
489  rti1516::AttributeNotRecognized,
490  rti1516::AttributeNotOwned,
491  rti1516::FederateInternalError);
493 
495 
496 
498  virtual
499  void
501  (rti1516::ObjectInstanceHandle theObject,
502  rti1516::AttributeHandleSet const & offeredAttributes,
503  rti1516::VariableLengthData const & theUserSuppliedTag)
504  throw (rti1516::ObjectInstanceNotKnown,
505  rti1516::AttributeNotRecognized,
506  rti1516::AttributeAlreadyOwned,
507  rti1516::AttributeNotPublished,
508  rti1516::FederateInternalError);
509 
511  virtual
512  void
513  requestDivestitureConfirmation
514  (rti1516::ObjectInstanceHandle theObject,
515  rti1516::AttributeHandleSet const & releasedAttributes)
516  throw (rti1516::ObjectInstanceNotKnown,
517  rti1516::AttributeNotRecognized,
518  rti1516::AttributeNotOwned,
519  rti1516::AttributeDivestitureWasNotRequested,
520  rti1516::FederateInternalError);
521 
523  virtual
524  void
526  (rti1516::ObjectInstanceHandle theObject,
527  rti1516::AttributeHandleSet const & securedAttributes,
528  rti1516::VariableLengthData const & theUserSuppliedTag)
529  throw (rti1516::ObjectInstanceNotKnown,
530  rti1516::AttributeNotRecognized,
531  rti1516::AttributeAcquisitionWasNotRequested,
532  rti1516::AttributeAlreadyOwned,
533  rti1516::AttributeNotPublished,
534  rti1516::FederateInternalError);
535 
537  virtual
538  void
540  (rti1516::ObjectInstanceHandle theObject,
541  rti1516::AttributeHandleSet const & theAttributes)
542  throw (rti1516::ObjectInstanceNotKnown,
543  rti1516::AttributeNotRecognized,
544  rti1516::AttributeAlreadyOwned,
545  rti1516::AttributeAcquisitionWasNotRequested,
546  rti1516::FederateInternalError);
547 
549  virtual
550  void
552  (rti1516::ObjectInstanceHandle theObject,
553  rti1516::AttributeHandleSet const & candidateAttributes,
554  rti1516::VariableLengthData const & theUserSuppliedTag)
555  throw (rti1516::ObjectInstanceNotKnown,
556  rti1516::AttributeNotRecognized,
557  rti1516::AttributeNotOwned,
558  rti1516::FederateInternalError);
559 
561  virtual
562  void
564  (rti1516::ObjectInstanceHandle theObject,
565  rti1516::AttributeHandleSet const & theAttributes)
566  throw (rti1516::ObjectInstanceNotKnown,
567  rti1516::AttributeNotRecognized,
568  rti1516::AttributeAlreadyOwned,
569  rti1516::AttributeAcquisitionWasNotCanceled,
570  rti1516::FederateInternalError);
571 
573  virtual
574  void
575  informAttributeOwnership(rti1516::ObjectInstanceHandle theObject,
576  rti1516::AttributeHandle theAttribute,
577  rti1516::FederateHandle theOwner)
578  throw (rti1516::ObjectInstanceNotKnown,
579  rti1516::AttributeNotRecognized,
580  rti1516::FederateInternalError);
581 
582  virtual
583  void
584  attributeIsNotOwned(rti1516::ObjectInstanceHandle theObject,
585  rti1516::AttributeHandle theAttribute)
586  throw (rti1516::ObjectInstanceNotKnown,
587  rti1516::AttributeNotRecognized,
588  rti1516::FederateInternalError);
589 
590  virtual
591  void
592  attributeIsOwnedByRTI(rti1516::ObjectInstanceHandle theObject,
593  rti1516::AttributeHandle theAttribute)
594  throw (rti1516::ObjectInstanceNotKnown,
595  rti1516::AttributeNotRecognized,
596  rti1516::FederateInternalError);
597 
601 
603  virtual
604  void
605  timeRegulationEnabled(rti1516::LogicalTime const & theFederateTime)
606  throw (rti1516::InvalidLogicalTime,
607  rti1516::NoRequestToEnableTimeRegulationWasPending,
608  rti1516::FederateInternalError);
609 
611  virtual
612  void
613  timeConstrainedEnabled(rti1516::LogicalTime const & theFederateTime)
614  throw (rti1516::InvalidLogicalTime,
615  rti1516::NoRequestToEnableTimeConstrainedWasPending,
616  rti1516::FederateInternalError);
617 
619  virtual
620  void
621  timeAdvanceGrant(rti1516::LogicalTime const & theTime)
622  throw (rti1516::InvalidLogicalTime,
623  rti1516::JoinedFederateIsNotInTimeAdvancingState,
624  rti1516::FederateInternalError);
625 
627  virtual
628  void
629  requestRetraction(rti1516::MessageRetractionHandle theHandle)
630  throw (rti1516::FederateInternalError);
632 
633 private:
635  DtMomWrapper( const DtMomWrapper& src );
636 
638  DtMomWrapper& operator=( const DtMomWrapper& src );
639 
640 protected:
641  DtMomMgr* myMomMgr;
642  unsigned long myDiscoverCount;
643  unsigned long myRemoveCount;
644 
645 protected:
646  static const DtMomArgument theDfltMomArgument;
647  static DtMomArgument theDfltRetVal;
648 };
649 
650 #endif
651 #endif
652 #endif

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)