MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
momWrapper1516e.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: momWrapper1516e.h,v $ $Revision: 1.0 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtMomWrapper1516e_h
13 #define DtMomWrapper1516e_h
14 #ifdef DtMOM
15 #ifdef DtIFSPEC1516E
16 
17 #include "rtiMsConfig.h"
18 #include "fedAmbWrap1516e.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 
50 
51  // 4.8
52  virtual void reportFederationExecutions (
54  theFederationExecutionInformationList)
55  throw (
56  FederateInternalError);
57 
58  // 4.12
60  std::wstring const & label)
61  throw (
62  FederateInternalError);
63 
65  std::wstring const & label,
67  throw (
68  FederateInternalError);
69 
70  // 4.13
71  virtual void announceSynchronizationPoint (
72  std::wstring const & label,
73  VariableLengthData const & theUserSuppliedTag)
74  throw (
75  FederateInternalError);
76 
77  // 4.15
78  virtual void federationSynchronized (
79  std::wstring const & label,
80  FederateHandleSet const& failedToSyncSet)
81  throw (
82  FederateInternalError);
83 
84  // 4.17
85  virtual void initiateFederateSave (
86  std::wstring const & label)
87  throw (
88  FederateInternalError);
89 
90  virtual void initiateFederateSave (
91  std::wstring const & label,
92  LogicalTime const & theTime)
93  throw (
94  FederateInternalError);
95 
96  // 4.20
97  virtual void federationSaved ()
98  throw (
99  FederateInternalError);
100 
101  virtual void federationNotSaved (
102  SaveFailureReason theSaveFailureReason)
103  throw (
104  FederateInternalError);
105 
106 
107  // 4.23
108  virtual void federationSaveStatusResponse (
110  theFederateStatusVector)
111  throw (
112  FederateInternalError);
113 
114  // 4.25
115  virtual void requestFederationRestoreSucceeded (
116  std::wstring const & label)
117  throw (
118  FederateInternalError);
119 
120  virtual void requestFederationRestoreFailed (
121  std::wstring const & label)
122  throw (
123  FederateInternalError);
124 
125  // 4.26
126  virtual void federationRestoreBegun ()
127  throw (
128  FederateInternalError);
129 
130  // 4.27
131  virtual void initiateFederateRestore (
132  std::wstring const & label,
133  std::wstring const & federateName,
134  FederateHandle handle)
135  throw (
136  FederateInternalError);
137 
138  // 4.29
139  virtual void federationRestored ()
140  throw (
141  FederateInternalError);
142 
143  virtual void federationNotRestored (
144  RestoreFailureReason theRestoreFailureReason)
145  throw (
146  FederateInternalError);
147 
148  // 4.32
149  virtual void federationRestoreStatusResponse (
151  theFederateRestoreStatusVector)
152  throw (
153  FederateInternalError);
154 
156  // Declaration Management Services //
158 
159  // 5.10
160  virtual void startRegistrationForObjectClass (
161  ObjectClassHandle theClass)
162  throw (
163  FederateInternalError);
164 
165  // 5.11
166  virtual void stopRegistrationForObjectClass (
167  ObjectClassHandle theClass)
168  throw (
169  FederateInternalError);
170 
171  // 5.12
172  virtual void turnInteractionsOn (
173  InteractionClassHandle theHandle)
174  throw (
175  FederateInternalError);
176 
177  // 5.13
178  virtual void turnInteractionsOff (
179  InteractionClassHandle theHandle)
180  throw (
181  FederateInternalError);
182 
184  // Object Management Services //
186 
187  // 6.3
188  virtual void objectInstanceNameReservationSucceeded (
189  std::wstring const & theObjectInstanceName)
190  throw (
191  FederateInternalError);
192 
193  virtual void objectInstanceNameReservationFailed (
194  std::wstring const & theObjectInstanceName)
195  throw (
196  FederateInternalError);
197 
198  // 6.6
199  virtual void multipleObjectInstanceNameReservationSucceeded (
200  std::set<std::wstring> const & theObjectInstanceNames)
201  throw (
202  FederateInternalError);
203 
204  virtual void multipleObjectInstanceNameReservationFailed (
205  std::set<std::wstring> const & theObjectInstanceNames)
206  throw (
207  FederateInternalError);
208 
209  // 6.9
210  virtual void discoverObjectInstance (
211  ObjectInstanceHandle theObject,
212  ObjectClassHandle theObjectClass,
213  std::wstring const & theObjectInstanceName)
214  throw (
215  FederateInternalError);
216 
217  virtual void discoverObjectInstance (
218  ObjectInstanceHandle theObject,
219  ObjectClassHandle theObjectClass,
220  std::wstring const & theObjectInstanceName,
221  FederateHandle producingFederate)
222  throw (
223  FederateInternalError);
224 
225  // 6.11
226  virtual void reflectAttributeValues (
227  ObjectInstanceHandle theObject,
228  AttributeHandleValueMap const & theAttributeValues,
229  VariableLengthData const & theUserSuppliedTag,
230  OrderType sentOrder,
231  TransportationType theType,
232  SupplementalReflectInfo theReflectInfo)
233  throw (
234  FederateInternalError);
235 
236  virtual void reflectAttributeValues (
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  SupplementalReflectInfo theReflectInfo)
245  throw (
246  FederateInternalError);
247 
248  virtual void reflectAttributeValues (
249  ObjectInstanceHandle theObject,
250  AttributeHandleValueMap const & theAttributeValues,
251  VariableLengthData const & theUserSuppliedTag,
252  OrderType sentOrder,
253  TransportationType theType,
254  LogicalTime const & theTime,
255  OrderType receivedOrder,
256  MessageRetractionHandle theHandle,
257  SupplementalReflectInfo theReflectInfo)
258  throw (
259  FederateInternalError);
260 
261  // 6.13
262  virtual void receiveInteraction (
263  InteractionClassHandle theInteraction,
264  ParameterHandleValueMap const & theParameterValues,
265  VariableLengthData const & theUserSuppliedTag,
266  OrderType sentOrder,
267  TransportationType theType,
268  SupplementalReceiveInfo theReceiveInfo)
269  throw (
270  FederateInternalError);
271 
272  virtual void receiveInteraction (
273  InteractionClassHandle theInteraction,
274  ParameterHandleValueMap const & theParameterValues,
275  VariableLengthData const & theUserSuppliedTag,
276  OrderType sentOrder,
277  TransportationType theType,
278  LogicalTime const & theTime,
279  OrderType receivedOrder,
280  SupplementalReceiveInfo theReceiveInfo)
281  throw (
282  FederateInternalError);
283 
284  virtual void receiveInteraction (
285  InteractionClassHandle theInteraction,
286  ParameterHandleValueMap const & theParameterValues,
287  VariableLengthData const & theUserSuppliedTag,
288  OrderType sentOrder,
289  TransportationType theType,
290  LogicalTime const & theTime,
291  OrderType receivedOrder,
292  MessageRetractionHandle theHandle,
293  SupplementalReceiveInfo theReceiveInfo)
294  throw (
295  FederateInternalError);
296 
297  // 6.15
298  virtual void removeObjectInstance (
299  ObjectInstanceHandle theObject,
300  VariableLengthData const & theUserSuppliedTag,
301  OrderType sentOrder,
302  SupplementalRemoveInfo theRemoveInfo)
303  throw (
304  FederateInternalError);
305 
306  virtual void removeObjectInstance (
307  ObjectInstanceHandle theObject,
308  VariableLengthData const & theUserSuppliedTag,
309  OrderType sentOrder,
310  LogicalTime const & theTime,
311  OrderType receivedOrder,
312  SupplementalRemoveInfo theRemoveInfo)
313  throw (
314  FederateInternalError);
315 
316  virtual void removeObjectInstance (
317  ObjectInstanceHandle theObject,
318  VariableLengthData const & theUserSuppliedTag,
319  OrderType sentOrder,
320  LogicalTime const & theTime,
321  OrderType receivedOrder,
322  MessageRetractionHandle theHandle,
323  SupplementalRemoveInfo theRemoveInfo)
324  throw (
325  FederateInternalError);
326 
327  // 6.17
328  virtual void attributesInScope (
329  ObjectInstanceHandle theObject,
330  AttributeHandleSet const & theAttributes)
331  throw (
332  FederateInternalError);
333 
334  // 6.18
335  virtual void attributesOutOfScope (
336  ObjectInstanceHandle theObject,
337  AttributeHandleSet const & theAttributes)
338  throw (
339  FederateInternalError);
340 
341  // 6.20
342  virtual void provideAttributeValueUpdate (
343  ObjectInstanceHandle theObject,
344  AttributeHandleSet const & theAttributes,
345  VariableLengthData const & theUserSuppliedTag)
346  throw (
347  FederateInternalError);
348 
349  // 6.21
350  virtual void turnUpdatesOnForObjectInstance (
351  ObjectInstanceHandle theObject,
352  AttributeHandleSet const & theAttributes)
353  throw (
354  FederateInternalError);
355 
356  virtual void turnUpdatesOnForObjectInstance (
357  ObjectInstanceHandle theObject,
358  AttributeHandleSet const & theAttributes,
359  std::wstring const & updateRateDesignator)
360  throw (
361  FederateInternalError);
362 
363  // 6.22
364  virtual void turnUpdatesOffForObjectInstance (
365  ObjectInstanceHandle theObject,
366  AttributeHandleSet const & theAttributes)
367  throw (
368  FederateInternalError);
369 
370  // 6.24
371  virtual void confirmAttributeTransportationTypeChange (
372  ObjectInstanceHandle theObject,
373  AttributeHandleSet theAttributes,
374  TransportationType theTransportation)
375  throw (
376  FederateInternalError);
377 
378  // 6.26
379  virtual void reportAttributeTransportationType (
380  ObjectInstanceHandle theObject,
381  AttributeHandle theAttribute,
382  TransportationType theTransportation)
383  throw (
384  FederateInternalError);
385 
386  // 6.28
387  virtual void confirmInteractionTransportationTypeChange (
388  InteractionClassHandle theInteraction,
389  TransportationType theTransportation)
390  throw (
391  FederateInternalError);
392 
393  // 6.30
394  virtual void reportInteractionTransportationType (
395  FederateHandle federateHandle,
396  InteractionClassHandle theInteraction,
397  TransportationType theTransportation)
398  throw (
399  FederateInternalError);
400 
401 
403  // Ownership Management Services //
405 
406  // 7.4
408  ObjectInstanceHandle theObject,
409  AttributeHandleSet const & offeredAttributes,
410  VariableLengthData const & theUserSuppliedTag)
411  throw (
412  FederateInternalError);
413 
414  // 7.5
415  virtual void requestDivestitureConfirmation (
416  ObjectInstanceHandle theObject,
417  AttributeHandleSet const & releasedAttributes)
418  throw (
419  FederateInternalError);
420 
421  // 7.7
423  ObjectInstanceHandle theObject,
424  AttributeHandleSet const & securedAttributes,
425  VariableLengthData const & theUserSuppliedTag)
426  throw (
427  FederateInternalError);
428 
429  // 7.10
430  virtual void attributeOwnershipUnavailable (
431  ObjectInstanceHandle theObject,
432  AttributeHandleSet const & theAttributes)
433  throw (
434  FederateInternalError);
435 
436  // 7.11
437  virtual void requestAttributeOwnershipRelease (
438  ObjectInstanceHandle theObject,
439  AttributeHandleSet const & candidateAttributes,
440  VariableLengthData const & theUserSuppliedTag)
441  throw (
442  FederateInternalError);
443 
444  // 7.16
446  ObjectInstanceHandle theObject,
447  AttributeHandleSet const & theAttributes)
448  throw (
449  FederateInternalError);
450 
451  // 7.18
452  virtual void informAttributeOwnership (
453  ObjectInstanceHandle theObject,
454  AttributeHandle theAttribute,
455  FederateHandle theOwner)
456  throw (
457  FederateInternalError);
458 
459  virtual void attributeIsNotOwned (
460  ObjectInstanceHandle theObject,
461  AttributeHandle theAttribute)
462  throw (
463  FederateInternalError);
464 
465  virtual void attributeIsOwnedByRTI (
466  ObjectInstanceHandle theObject,
467  AttributeHandle theAttribute)
468  throw (
469  FederateInternalError);
470 
472  // Time Management Services //
474 
475  // 8.3
476  virtual void timeRegulationEnabled (
477  LogicalTime const & theFederateTime)
478  throw (
479  FederateInternalError);
480 
481  // 8.6
482  virtual void timeConstrainedEnabled (
483  LogicalTime const & theFederateTime)
484  throw (
485  FederateInternalError);
486 
487  // 8.13
488  virtual void timeAdvanceGrant (
489  LogicalTime const & theTime)
490  throw (
491  FederateInternalError);
492 
493  // 8.22
494  virtual void requestRetraction (
495  MessageRetractionHandle theHandle)
496  throw (
497  FederateInternalError);
499 
500 private:
502  DtMomWrapper( const DtMomWrapper& src );
503 
505  DtMomWrapper& operator=( const DtMomWrapper& src );
506 
507 protected:
508  DtMomMgr* myMomMgr;
509  unsigned long myDiscoverCount;
510  unsigned long myRemoveCount;
511 
512 protected:
513  static const DtMomArgument theDfltMomArgument;
514  static DtMomArgument theDfltRetVal;
515 };
516 
517 #endif
518 #endif
519 #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)