MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
testMgrFedAmbWrapper.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: testMgrFedAmbWrapper.h,v $ $Revision: 1.3 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtTestMgrFedAmbWrapper_H_
13 #define DtTestMgrFedAmbWrapper_H_
14 
15 
17 #include <rtiMsConfig.h>
18 #include <rtiApiTypes.h>
19 
20 #if defined(DtIFSPEC1516)
21 #include <fedAmbWrap1516.h>
22 #elif defined(DtIFSPEC1516E)
23 #include <fedAmbWrap1516e.h>
24 #elif defined(DtIFSPEC1516_2025)
25 #include <fedAmbWrap1516_2025.h>
26 #else
27 #include <fedAmbWrap.h>
28 #endif
29 
30 class DtFederateMgr;
31 
38 
39 class DtFedAmbWrapper;
40 
46 {
47 public:
48 
49  DtTestMgrFedAmbWrapper(DtFederateMgr* parent, RTI_API::FederateAmbassador* fedAmb)
50  : DtFedAmbWrapper(fedAmb)
51  , myParent(parent) {}
52 
54  throw() {}
55 
57 
58 #if defined(DtIFSPEC13)
59 
60  virtual void turnInteractionsOn(
61  RTI::InteractionClassHandle theHandle)
62  throw (
63  RTI::InteractionClassNotPublished,
64  RTI::FederateInternalError);
65 
66  virtual void turnInteractionsOff(
67  RTI::InteractionClassHandle theHandle)
68  throw (
69  RTI::InteractionClassNotPublished,
70  RTI::FederateInternalError);
71 
72  virtual void receiveInteraction(
73  RTI::InteractionClassHandle theInteraction,
74  const RTI::ParameterHandleValuePairSet& theParameters,
75  const RTI::FedTime& theTime,
76  const char *theTag,
77  RTI::EventRetractionHandle theHandle)
78  throw (
79  RTI::InteractionClassNotKnown,
80  RTI::InteractionParameterNotKnown,
81  RTI::InvalidFederationTime,
82  RTI::FederateInternalError);
83 
84  virtual void receiveInteraction(
85  RTI::InteractionClassHandle theInteraction,
86  const RTI::ParameterHandleValuePairSet& theParameters,
87  const char *theTag)
88  throw (
89  RTI::InteractionClassNotKnown,
90  RTI::InteractionParameterNotKnown,
91  RTI::FederateInternalError);
92 
93 #elif defined(DtIFSPEC1516)
94 
95  virtual void turnInteractionsOn (
96  rti1516::InteractionClassHandle theHandle)
97  throw (
98  rti1516::InteractionClassNotPublished,
99  rti1516::FederateInternalError);
100 
101  virtual void turnInteractionsOff (
102  rti1516::InteractionClassHandle theHandle)
103  throw (
104  rti1516::InteractionClassNotPublished,
105  rti1516::FederateInternalError);
106 
107  virtual void receiveInteraction (
108  rti1516::InteractionClassHandle theInteraction,
109  rti1516::ParameterHandleValueMap const & theParameterValues,
110  rti1516::VariableLengthData const & theUserSuppliedTag,
111  rti1516::OrderType sentOrder,
113  throw (
114  rti1516::InteractionClassNotRecognized,
115  rti1516::InteractionParameterNotRecognized,
116  rti1516::InteractionClassNotSubscribed,
117  rti1516::FederateInternalError);
118 
119  virtual void receiveInteraction (
120  rti1516::InteractionClassHandle theInteraction,
121  rti1516::ParameterHandleValueMap const & theParameterValues,
122  rti1516::VariableLengthData const & theUserSuppliedTag,
123  rti1516::OrderType sentOrder,
125  rti1516::RegionHandleSet const & theSentRegionHandleSet)
126  throw (
127  rti1516::InteractionClassNotRecognized,
128  rti1516::InteractionParameterNotRecognized,
129  rti1516::InteractionClassNotSubscribed,
130  rti1516::FederateInternalError);
131 
132  virtual void receiveInteraction(
133  rti1516::InteractionClassHandle theInteraction,
134  rti1516::ParameterHandleValueMap const & theParameterValues,
135  rti1516::VariableLengthData const & theUserSuppliedTag,
136  rti1516::OrderType sentOrder,
138  rti1516::LogicalTime const & theTime,
139  rti1516::OrderType receivedOrder)
140  throw (
141  rti1516::InteractionClassNotRecognized,
142  rti1516::InteractionParameterNotRecognized,
143  rti1516::InteractionClassNotSubscribed,
144  rti1516::FederateInternalError);
145 
146  virtual void receiveInteraction(
147  rti1516::InteractionClassHandle theInteraction,
148  rti1516::ParameterHandleValueMap const & theParameterValues,
149  rti1516::VariableLengthData const & theUserSuppliedTag,
150  rti1516::OrderType sentOrder,
152  rti1516::LogicalTime const & theTime,
153  rti1516::OrderType receivedOrder,
154  rti1516::RegionHandleSet const & theSentRegionHandleSet)
155  throw (
156  rti1516::InteractionClassNotRecognized,
157  rti1516::InteractionParameterNotRecognized,
158  rti1516::InteractionClassNotSubscribed,
159  rti1516::FederateInternalError);
160 
161  virtual void receiveInteraction (
162  rti1516::InteractionClassHandle theInteraction,
163  rti1516::ParameterHandleValueMap const & theParameterValues,
164  rti1516::VariableLengthData const & theUserSuppliedTag,
165  rti1516::OrderType sentOrder,
167  rti1516::LogicalTime const & theTime,
168  rti1516::OrderType receivedOrder,
169  rti1516::MessageRetractionHandle theHandle)
170  throw (
171  rti1516::InteractionClassNotRecognized,
172  rti1516::InteractionParameterNotRecognized,
173  rti1516::InteractionClassNotSubscribed,
174  rti1516::InvalidLogicalTime,
175  rti1516::FederateInternalError);
176 
177  virtual void receiveInteraction (
178  rti1516::InteractionClassHandle theInteraction,
179  rti1516::ParameterHandleValueMap const & theParameterValues,
180  rti1516::VariableLengthData const & theUserSuppliedTag,
181  rti1516::OrderType sentOrder,
183  rti1516::LogicalTime const & theTime,
184  rti1516::OrderType receivedOrder,
185  rti1516::MessageRetractionHandle theHandle,
186  rti1516::RegionHandleSet const & theSentRegionHandleSet)
187  throw (
188  rti1516::InteractionClassNotRecognized,
189  rti1516::InteractionParameterNotRecognized,
190  rti1516::InteractionClassNotSubscribed,
191  rti1516::InvalidLogicalTime,
192  rti1516::FederateInternalError);
193 
194 #elif defined(DtIFSPEC1516E)
195 
196  virtual void turnInteractionsOn (RTI_API::InteractionClassHandle theHandle)
197  throw (RTI_API::FederateInternalError);
198 
199  virtual void turnInteractionsOff (RTI_API::InteractionClassHandle theHandle)
200  throw (RTI_API::FederateInternalError);
201 
202  virtual void receiveInteraction (
203  RTI_API::InteractionClassHandle theInteraction,
204  RTI_API::ParameterHandleValueMap const & theParameterValues,
205  RTI_API::VariableLengthData const & theUserSuppliedTag,
206  RTI_API::OrderType sentOrder,
208  RTI_API::SupplementalReceiveInfo theReceiveInfo)
209  throw (RTI_API::FederateInternalError);
210 
211  virtual void receiveInteraction (
212  RTI_API::InteractionClassHandle theInteraction,
213  RTI_API::ParameterHandleValueMap const & theParameterValues,
214  RTI_API::VariableLengthData const & theUserSuppliedTag,
215  RTI_API::OrderType sentOrder,
217  RTI_API::LogicalTime const & theTime,
218  RTI_API::OrderType receivedOrder,
219  RTI_API::SupplementalReceiveInfo theReceiveInfo)
220  throw (RTI_API::FederateInternalError);
221 
222  virtual void receiveInteraction (
223  RTI_API::InteractionClassHandle theInteraction,
224  RTI_API::ParameterHandleValueMap const & theParameterValues,
225  RTI_API::VariableLengthData const & theUserSuppliedTag,
226  RTI_API::OrderType sentOrder,
228  RTI_API::LogicalTime const & theTime,
229  RTI_API::OrderType receivedOrder,
230  RTI_API::MessageRetractionHandle theHandle,
231  RTI_API::SupplementalReceiveInfo theReceiveInfo)
232  throw (RTI_API::FederateInternalError);
233 
234 #else
235 
236 virtual void turnInteractionsOn(RTI_API::InteractionClassHandle const& theHandle) override;
237 
238 virtual void turnInteractionsOff(RTI_API::InteractionClassHandle const& theHandle) override;
239 
240 virtual void receiveInteraction(
241  rti1516_2025::InteractionClassHandle const& theInteraction,
242  rti1516_2025::ParameterHandleValueMap const& theParameterValues,
243  rti1516_2025::VariableLengthData const& theUserSuppliedTag,
244  rti1516_2025::TransportationTypeHandle const& theType,
245  rti1516_2025::FederateHandle const& theProducingFederate,
246  const rti1516_2025::RegionHandleSet* theOptionalSentRegions) override;
247 
248 virtual void receiveInteraction(
249  rti1516_2025::InteractionClassHandle const& theInteraction,
250  rti1516_2025::ParameterHandleValueMap const& theParameterValues,
251  rti1516_2025::VariableLengthData const& theUserSuppliedTag,
252  rti1516_2025::TransportationTypeHandle const& theType,
253  rti1516_2025::FederateHandle const& theProducingFederate,
254  rti1516_2025::RegionHandleSet const* theOptionalSentRegions,
255  rti1516_2025::LogicalTime const& theTime,
256  rti1516_2025::OrderType theSentOrder,
257  rti1516_2025::OrderType theReceivedOrder,
258  rti1516_2025::MessageRetractionHandle const* theOptionalRetraction) override;
259 
260 
261 #endif //DtIFSPEC13
262 
263 };
264 
265 #endif
266 
virtual ~DtTestMgrFedAmbWrapper()
Definition: testMgrFedAmbWrapper.h:53
OrderType
Definition: datatypes.pb.h:472
TransportationType
Definition: rtiAmbassadorFedProBase.h:43
virtual void receiveInteraction(InteractionClassHandle theInteraction, const ParameterHandleValuePairSet &theParameters, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.7
DtTestMgrFedAmbWrapper is installed by the testManager and serves to catch testInteraction messages f...
Definition: testMgrFedAmbWrapper.h:45
Instances of DtFederateMgr process federation-level messages (such as create, destroy, join, resign, and sync points) and manages the objects responsible for handling general communication, objects, interactions, the FOM, MOM, and data distribution mmg.
Definition: fedMgr.h:93
std::set< RegionHandle > RegionHandleSet
Definition: Typedefs.h:39
DtTestMgrFedAmbWrapper(DtFederateMgr *parent, RTI_API::FederateAmbassador *fedAmb)
Definition: testMgrFedAmbWrapper.h:49
virtual void turnInteractionsOff(InteractionClassHandle theHandle)=0
5.13
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
DtFederateMgr * myParent
Definition: testMgrFedAmbWrapper.h:56
virtual void turnInteractionsOn(InteractionClassHandle theHandle)=0
5.12
std::map< ParameterHandle, VariableLengthData > ParameterHandleValueMap
Definition: Typedefs.h:49

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)