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 
41  virtual unsigned long objectRemoveCount() const;
42 
45  virtual unsigned long objectDiscoverCount() const;
46 
48 
49 
51  virtual
52  void
53  synchronizationPointRegistrationSucceeded(std::wstring const & label)
54  throw (rti1516::FederateInternalError);
55 
56  virtual
57  void
58  synchronizationPointRegistrationFailed(std::wstring const & label,
59  rti1516::SynchronizationFailureReason reason)
60  throw (rti1516::FederateInternalError);
61 
63  virtual
64  void
65  announceSynchronizationPoint(std::wstring const & label,
66  rti1516::VariableLengthData const & theUserSuppliedTag)
67  throw (rti1516::FederateInternalError);
68 
70  virtual
71  void
72  federationSynchronized(std::wstring const & label)
73  throw (rti1516::FederateInternalError);
74 
76  virtual
77  void
78  initiateFederateSave(std::wstring const & label)
79  throw (rti1516::UnableToPerformSave,
80  rti1516::FederateInternalError);
81 
82  virtual
83  void
84  initiateFederateSave(std::wstring const & label,
85  rti1516::LogicalTime const & theTime)
86  throw (rti1516::UnableToPerformSave,
87  rti1516::InvalidLogicalTime,
88  rti1516::FederateInternalError);
89 
91  virtual
92  void
94  throw (rti1516::FederateInternalError);
95 
96  virtual
97  void
98  federationNotSaved(rti1516::SaveFailureReason theSaveFailureReason)
99  throw (rti1516::FederateInternalError);
100 
101 
103  virtual
104  void
105  federationSaveStatusResponse(
106  rti1516::FederateHandleSaveStatusPairVector const & theFederateStatusVector)
107  throw (rti1516::FederateInternalError);
108 
110  virtual
111  void
112  requestFederationRestoreSucceeded(std::wstring const & label)
113  throw (rti1516::FederateInternalError);
114 
115  virtual
116  void
117  requestFederationRestoreFailed(std::wstring const & label)
118  throw (rti1516::FederateInternalError);
119 
121  virtual
122  void
124  throw (rti1516::FederateInternalError);
125 
127  virtual
128  void
129  initiateFederateRestore(std::wstring const & label,
130  rti1516::FederateHandle handle)
131  throw (rti1516::SpecifiedSaveLabelDoesNotExist,
132  rti1516::CouldNotInitiateRestore,
133  rti1516::FederateInternalError);
134 
136  virtual
137  void
139  throw (rti1516::FederateInternalError);
140 
141  virtual
142  void
143  federationNotRestored(rti1516::RestoreFailureReason theRestoreFailureReason)
144  throw (rti1516::FederateInternalError);
145 
147  virtual
148  void
149  federationRestoreStatusResponse(
150  rti1516::FederateHandleRestoreStatusPairVector const & theFederateStatusVector)
151  throw (rti1516::FederateInternalError);
153 
155 
156 
158  virtual
159  void
161  throw (rti1516::ObjectClassNotPublished,
162  rti1516::FederateInternalError);
163 
165  virtual
166  void
168  throw (rti1516::ObjectClassNotPublished,
169  rti1516::FederateInternalError);
170 
172  virtual
173  void
174  turnInteractionsOn(rti1516::InteractionClassHandle theHandle)
175  throw (rti1516::InteractionClassNotPublished,
176  rti1516::FederateInternalError);
177 
179  virtual
180  void
181  turnInteractionsOff(rti1516::InteractionClassHandle theHandle)
182  throw (rti1516::InteractionClassNotPublished,
183  rti1516::FederateInternalError);
185 
187 
188 
190  virtual
191  void
192  objectInstanceNameReservationSucceeded(std::wstring const &
193  theObjectInstanceName)
194  throw (rti1516::UnknownName,
195  rti1516::FederateInternalError);
196 
197  virtual
198  void
199  objectInstanceNameReservationFailed(std::wstring const &
200  theObjectInstanceName)
201  throw (rti1516::UnknownName,
202  rti1516::FederateInternalError);
203 
204 
206  virtual
207  void
208  discoverObjectInstance(rti1516::ObjectInstanceHandle theObject,
209  rti1516::ObjectClassHandle theObjectClass,
210  std::wstring const & theObjectInstanceName)
211  throw (rti1516::CouldNotDiscover,
212  rti1516::ObjectClassNotKnown,
213  rti1516::FederateInternalError);
214 
216  virtual
217  void
219  (rti1516::ObjectInstanceHandle theObject,
220  rti1516::AttributeHandleValueMap const & theAttributeValues,
221  rti1516::VariableLengthData const & theUserSuppliedTag,
222  rti1516::OrderType sentOrder,
223  rti1516::TransportationType theType)
224  throw (rti1516::ObjectInstanceNotKnown,
225  rti1516::AttributeNotRecognized,
226  rti1516::AttributeNotSubscribed,
227  rti1516::FederateInternalError);
228 
229  virtual
230  void
232  (rti1516::ObjectInstanceHandle theObject,
233  rti1516::AttributeHandleValueMap const & theAttributeValues,
234  rti1516::VariableLengthData const & theUserSuppliedTag,
235  rti1516::OrderType sentOrder,
236  rti1516::TransportationType theType,
237  rti1516::RegionHandleSet const & theSentRegionHandleSet)
238  throw (rti1516::ObjectInstanceNotKnown,
239  rti1516::AttributeNotRecognized,
240  rti1516::AttributeNotSubscribed,
241  rti1516::FederateInternalError);
242 
243  virtual
244  void
246  (rti1516::ObjectInstanceHandle theObject,
247  rti1516::AttributeHandleValueMap const & theAttributeValues,
248  rti1516::VariableLengthData const & theUserSuppliedTag,
249  rti1516::OrderType sentOrder,
250  rti1516::TransportationType theType,
251  rti1516::LogicalTime const & theTime,
252  rti1516::OrderType receivedOrder)
253  throw (rti1516::ObjectInstanceNotKnown,
254  rti1516::AttributeNotRecognized,
255  rti1516::AttributeNotSubscribed,
256  rti1516::FederateInternalError);
257 
258  virtual
259  void
261  (rti1516::ObjectInstanceHandle theObject,
262  rti1516::AttributeHandleValueMap const & theAttributeValues,
263  rti1516::VariableLengthData const & theUserSuppliedTag,
264  rti1516::OrderType sentOrder,
265  rti1516::TransportationType theType,
266  rti1516::LogicalTime const & theTime,
267  rti1516::OrderType receivedOrder,
268  rti1516::RegionHandleSet const & theSentRegionHandleSet)
269  throw (rti1516::ObjectInstanceNotKnown,
270  rti1516::AttributeNotRecognized,
271  rti1516::AttributeNotSubscribed,
272  rti1516::FederateInternalError);
273 
274  virtual
275  void
277  (rti1516::ObjectInstanceHandle theObject,
278  rti1516::AttributeHandleValueMap const & theAttributeValues,
279  rti1516::VariableLengthData const & theUserSuppliedTag,
280  rti1516::OrderType sentOrder,
281  rti1516::TransportationType theType,
282  rti1516::LogicalTime const & theTime,
283  rti1516::OrderType receivedOrder,
284  rti1516::MessageRetractionHandle theHandle)
285  throw (rti1516::ObjectInstanceNotKnown,
286  rti1516::AttributeNotRecognized,
287  rti1516::AttributeNotSubscribed,
288  rti1516::InvalidLogicalTime,
289  rti1516::FederateInternalError);
290 
291  virtual
292  void
294  (rti1516::ObjectInstanceHandle theObject,
295  rti1516::AttributeHandleValueMap const & theAttributeValues,
296  rti1516::VariableLengthData const & theUserSuppliedTag,
297  rti1516::OrderType sentOrder,
298  rti1516::TransportationType theType,
299  rti1516::LogicalTime const & theTime,
300  rti1516::OrderType receivedOrder,
301  rti1516::MessageRetractionHandle theHandle,
302  rti1516::RegionHandleSet const & theSentRegionHandleSet)
303  throw (rti1516::ObjectInstanceNotKnown,
304  rti1516::AttributeNotRecognized,
305  rti1516::AttributeNotSubscribed,
306  rti1516::InvalidLogicalTime,
307  rti1516::FederateInternalError);
308 
310  virtual
311  void
313  (rti1516::InteractionClassHandle theInteraction,
314  rti1516::ParameterHandleValueMap const & theParameterValues,
315  rti1516::VariableLengthData const & theUserSuppliedTag,
316  rti1516::OrderType sentOrder,
317  rti1516::TransportationType theType)
318  throw (rti1516::InteractionClassNotRecognized,
319  rti1516::InteractionParameterNotRecognized,
320  rti1516::InteractionClassNotSubscribed,
321  rti1516::FederateInternalError);
322 
323  virtual
324  void
326  (rti1516::InteractionClassHandle theInteraction,
327  rti1516::ParameterHandleValueMap const & theParameterValues,
328  rti1516::VariableLengthData const & theUserSuppliedTag,
329  rti1516::OrderType sentOrder,
330  rti1516::TransportationType theType,
331  rti1516::RegionHandleSet const & theSentRegionHandleSet)
332  throw (rti1516::InteractionClassNotRecognized,
333  rti1516::InteractionParameterNotRecognized,
334  rti1516::InteractionClassNotSubscribed,
335  rti1516::FederateInternalError);
336 
337  virtual
338  void
340  (rti1516::InteractionClassHandle theInteraction,
341  rti1516::ParameterHandleValueMap const & theParameterValues,
342  rti1516::VariableLengthData const & theUserSuppliedTag,
343  rti1516::OrderType sentOrder,
344  rti1516::TransportationType theType,
345  rti1516::LogicalTime const & theTime,
346  rti1516::OrderType receivedOrder)
347  throw (rti1516::InteractionClassNotRecognized,
348  rti1516::InteractionParameterNotRecognized,
349  rti1516::InteractionClassNotSubscribed,
350  rti1516::FederateInternalError);
351 
352  virtual
353  void
355  (rti1516::InteractionClassHandle theInteraction,
356  rti1516::ParameterHandleValueMap const & theParameterValues,
357  rti1516::VariableLengthData const & theUserSuppliedTag,
358  rti1516::OrderType sentOrder,
359  rti1516::TransportationType theType,
360  rti1516::LogicalTime const & theTime,
361  rti1516::OrderType receivedOrder,
362  rti1516::RegionHandleSet const & theSentRegionHandleSet)
363  throw (rti1516::InteractionClassNotRecognized,
364  rti1516::InteractionParameterNotRecognized,
365  rti1516::InteractionClassNotSubscribed,
366  rti1516::FederateInternalError);
367 
368  virtual
369  void
371  (rti1516::InteractionClassHandle theInteraction,
372  rti1516::ParameterHandleValueMap const & theParameterValues,
373  rti1516::VariableLengthData const & theUserSuppliedTag,
374  rti1516::OrderType sentOrder,
375  rti1516::TransportationType theType,
376  rti1516::LogicalTime const & theTime,
377  rti1516::OrderType receivedOrder,
378  rti1516::MessageRetractionHandle theHandle)
379  throw (rti1516::InteractionClassNotRecognized,
380  rti1516::InteractionParameterNotRecognized,
381  rti1516::InteractionClassNotSubscribed,
382  rti1516::InvalidLogicalTime,
383  rti1516::FederateInternalError);
384 
385  virtual
386  void
388  (rti1516::InteractionClassHandle theInteraction,
389  rti1516::ParameterHandleValueMap const & theParameterValues,
390  rti1516::VariableLengthData const & theUserSuppliedTag,
391  rti1516::OrderType sentOrder,
392  rti1516::TransportationType theType,
393  rti1516::LogicalTime const & theTime,
394  rti1516::OrderType receivedOrder,
395  rti1516::MessageRetractionHandle theHandle,
396  rti1516::RegionHandleSet const & theSentRegionHandleSet)
397  throw (rti1516::InteractionClassNotRecognized,
398  rti1516::InteractionParameterNotRecognized,
399  rti1516::InteractionClassNotSubscribed,
400  rti1516::InvalidLogicalTime,
401  rti1516::FederateInternalError);
402 
404  virtual
405  void
406  removeObjectInstance(rti1516::ObjectInstanceHandle theObject,
407  rti1516::VariableLengthData const & theUserSuppliedTag,
408  rti1516::OrderType sentOrder)
409  throw (rti1516::ObjectInstanceNotKnown,
410  rti1516::FederateInternalError);
411 
412  virtual
413  void
414  removeObjectInstance(rti1516::ObjectInstanceHandle theObject,
415  rti1516::VariableLengthData const & theUserSuppliedTag,
416  rti1516::OrderType sentOrder,
417  rti1516::LogicalTime const & theTime,
418  rti1516::OrderType receivedOrder)
419  throw (rti1516::ObjectInstanceNotKnown,
420  rti1516::FederateInternalError);
421 
422  virtual
423  void
424  removeObjectInstance(rti1516::ObjectInstanceHandle theObject,
425  rti1516::VariableLengthData const & theUserSuppliedTag,
426  rti1516::OrderType sentOrder,
427  rti1516::LogicalTime const & theTime,
428  rti1516::OrderType receivedOrder,
429  rti1516::MessageRetractionHandle theHandle)
430  throw (rti1516::ObjectInstanceNotKnown,
431  rti1516::InvalidLogicalTime,
432  rti1516::FederateInternalError);
433 
435  virtual
436  void
438  (rti1516::ObjectInstanceHandle theObject,
439  rti1516::AttributeHandleSet const & theAttributes)
440  throw (rti1516::ObjectInstanceNotKnown,
441  rti1516::AttributeNotRecognized,
442  rti1516::AttributeNotSubscribed,
443  rti1516::FederateInternalError);
444 
446  virtual
447  void
449  (rti1516::ObjectInstanceHandle theObject,
450  rti1516::AttributeHandleSet const & theAttributes)
451  throw (rti1516::ObjectInstanceNotKnown,
452  rti1516::AttributeNotRecognized,
453  rti1516::AttributeNotSubscribed,
454  rti1516::FederateInternalError);
455 
457  virtual
458  void
460  (rti1516::ObjectInstanceHandle theObject,
461  rti1516::AttributeHandleSet const & theAttributes,
462  rti1516::VariableLengthData const & theUserSuppliedTag)
463  throw (rti1516::ObjectInstanceNotKnown,
464  rti1516::AttributeNotRecognized,
465  rti1516::AttributeNotOwned,
466  rti1516::FederateInternalError);
467 
469  virtual
470  void
472  (rti1516::ObjectInstanceHandle theObject,
473  rti1516::AttributeHandleSet const & theAttributes)
474  throw (rti1516::ObjectInstanceNotKnown,
475  rti1516::AttributeNotRecognized,
476  rti1516::AttributeNotOwned,
477  rti1516::FederateInternalError);
478 
480  virtual
481  void
483  (rti1516::ObjectInstanceHandle theObject,
484  rti1516::AttributeHandleSet const & theAttributes)
485  throw (rti1516::ObjectInstanceNotKnown,
486  rti1516::AttributeNotRecognized,
487  rti1516::AttributeNotOwned,
488  rti1516::FederateInternalError);
490 
492 
493 
495  virtual
496  void
498  (rti1516::ObjectInstanceHandle theObject,
499  rti1516::AttributeHandleSet const & offeredAttributes,
500  rti1516::VariableLengthData const & theUserSuppliedTag)
501  throw (rti1516::ObjectInstanceNotKnown,
502  rti1516::AttributeNotRecognized,
503  rti1516::AttributeAlreadyOwned,
504  rti1516::AttributeNotPublished,
505  rti1516::FederateInternalError);
506 
508  virtual
509  void
510  requestDivestitureConfirmation
511  (rti1516::ObjectInstanceHandle theObject,
512  rti1516::AttributeHandleSet const & releasedAttributes)
513  throw (rti1516::ObjectInstanceNotKnown,
514  rti1516::AttributeNotRecognized,
515  rti1516::AttributeNotOwned,
516  rti1516::AttributeDivestitureWasNotRequested,
517  rti1516::FederateInternalError);
518 
520  virtual
521  void
523  (rti1516::ObjectInstanceHandle theObject,
524  rti1516::AttributeHandleSet const & securedAttributes,
525  rti1516::VariableLengthData const & theUserSuppliedTag)
526  throw (rti1516::ObjectInstanceNotKnown,
527  rti1516::AttributeNotRecognized,
528  rti1516::AttributeAcquisitionWasNotRequested,
529  rti1516::AttributeAlreadyOwned,
530  rti1516::AttributeNotPublished,
531  rti1516::FederateInternalError);
532 
534  virtual
535  void
537  (rti1516::ObjectInstanceHandle theObject,
538  rti1516::AttributeHandleSet const & theAttributes)
539  throw (rti1516::ObjectInstanceNotKnown,
540  rti1516::AttributeNotRecognized,
541  rti1516::AttributeAlreadyOwned,
542  rti1516::AttributeAcquisitionWasNotRequested,
543  rti1516::FederateInternalError);
544 
546  virtual
547  void
549  (rti1516::ObjectInstanceHandle theObject,
550  rti1516::AttributeHandleSet const & candidateAttributes,
551  rti1516::VariableLengthData const & theUserSuppliedTag)
552  throw (rti1516::ObjectInstanceNotKnown,
553  rti1516::AttributeNotRecognized,
554  rti1516::AttributeNotOwned,
555  rti1516::FederateInternalError);
556 
558  virtual
559  void
561  (rti1516::ObjectInstanceHandle theObject,
562  rti1516::AttributeHandleSet const & theAttributes)
563  throw (rti1516::ObjectInstanceNotKnown,
564  rti1516::AttributeNotRecognized,
565  rti1516::AttributeAlreadyOwned,
566  rti1516::AttributeAcquisitionWasNotCanceled,
567  rti1516::FederateInternalError);
568 
570  virtual
571  void
572  informAttributeOwnership(rti1516::ObjectInstanceHandle theObject,
573  rti1516::AttributeHandle theAttribute,
574  rti1516::FederateHandle theOwner)
575  throw (rti1516::ObjectInstanceNotKnown,
576  rti1516::AttributeNotRecognized,
577  rti1516::FederateInternalError);
578 
579  virtual
580  void
581  attributeIsNotOwned(rti1516::ObjectInstanceHandle theObject,
582  rti1516::AttributeHandle theAttribute)
583  throw (rti1516::ObjectInstanceNotKnown,
584  rti1516::AttributeNotRecognized,
585  rti1516::FederateInternalError);
586 
587  virtual
588  void
589  attributeIsOwnedByRTI(rti1516::ObjectInstanceHandle theObject,
590  rti1516::AttributeHandle theAttribute)
591  throw (rti1516::ObjectInstanceNotKnown,
592  rti1516::AttributeNotRecognized,
593  rti1516::FederateInternalError);
594 
598 
600  virtual
601  void
602  timeRegulationEnabled(rti1516::LogicalTime const & theFederateTime)
603  throw (rti1516::InvalidLogicalTime,
604  rti1516::NoRequestToEnableTimeRegulationWasPending,
605  rti1516::FederateInternalError);
606 
608  virtual
609  void
610  timeConstrainedEnabled(rti1516::LogicalTime const & theFederateTime)
611  throw (rti1516::InvalidLogicalTime,
612  rti1516::NoRequestToEnableTimeConstrainedWasPending,
613  rti1516::FederateInternalError);
614 
616  virtual
617  void
618  timeAdvanceGrant(rti1516::LogicalTime const & theTime)
619  throw (rti1516::InvalidLogicalTime,
620  rti1516::JoinedFederateIsNotInTimeAdvancingState,
621  rti1516::FederateInternalError);
622 
624  virtual
625  void
626  requestRetraction(rti1516::MessageRetractionHandle theHandle)
627  throw (rti1516::FederateInternalError);
629 
630 private:
632  DtMomWrapper( const DtMomWrapper& src );
633 
635  DtMomWrapper& operator=( const DtMomWrapper& src );
636 
637 protected:
638  DtMomMgr* myMomMgr;
639  unsigned long myDiscoverCount;
640  unsigned long myRemoveCount;
641 
642 protected:
643  static const DtMomArgument theDfltMomArgument;
644  static DtMomArgument theDfltRetVal;
645 };
646 
647 #endif
648 #endif
649 #endif

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)