MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hlaBounceFedAmb1516.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: rtiSimpleFedAmb1516.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef HlaBounceFederateAmbassador_H_
10 #define HlaBounceFederateAmbassador_H_
11 
12 #pragma warning(disable: 4251)
13 #pragma warning(disable: 4786)
14 #pragma warning(disable: 4290)
15 
16 #include <RTI/RTI1516.h>
18 #include <string>
19 #include <map>
20 
21 class BallController1516;
22 
23 class HlaBounceFederateAmbassador : public rti1516::NullFederateAmbassador
24 {
25 public:
26 
28 
30  throw ();
31 
33  std::wstring const& theObjectInstanceName)
34  throw (rti1516::UnknownName,
35  rti1516::FederateInternalError);
36 
38  std::wstring const& theObjectInstanceName)
39  throw (rti1516::UnknownName,
40  rti1516::FederateInternalError);
41 
42  virtual void discoverObjectInstance(
43  rti1516::ObjectInstanceHandle theObject,
44  rti1516::ObjectClassHandle theObjectClass,
45  std::wstring const & theObjectInstanceName)
46  throw (rti1516::CouldNotDiscover,
47  rti1516::ObjectClassNotKnown,
48  rti1516::FederateInternalError);
49 
50  virtual void reflectAttributeValues(
51  rti1516::ObjectInstanceHandle theObject,
52  rti1516::AttributeHandleValueMap const & theAttributeValues,
53  rti1516::VariableLengthData const & theUserSuppliedTag,
54  rti1516::OrderType sentOrder,
55  rti1516::TransportationType theType)
56  throw (rti1516::ObjectInstanceNotKnown,
57  rti1516::AttributeNotRecognized,
58  rti1516::AttributeNotSubscribed,
59  rti1516::FederateInternalError);
60 
61  virtual void reflectAttributeValues(
62  rti1516::ObjectInstanceHandle theObject,
63  rti1516::AttributeHandleValueMap const & theAttributeValues,
64  rti1516::VariableLengthData const & theUserSuppliedTag,
65  rti1516::OrderType sentOrder,
66  rti1516::TransportationType theType,
67  rti1516::RegionHandleSet const & theSentRegionHandleSet)
68  throw (rti1516::ObjectInstanceNotKnown,
69  rti1516::AttributeNotRecognized,
70  rti1516::AttributeNotSubscribed,
71  rti1516::FederateInternalError);
72 
73  virtual void reflectAttributeValues(
74  rti1516::ObjectInstanceHandle theObject,
75  rti1516::AttributeHandleValueMap const & theAttributeValues,
76  rti1516::VariableLengthData const & theUserSuppliedTag,
77  rti1516::OrderType sentOrder,
78  rti1516::TransportationType theType,
79  rti1516::LogicalTime const & theTime,
80  rti1516::OrderType receivedOrder)
81  throw (rti1516::ObjectInstanceNotKnown,
82  rti1516::AttributeNotRecognized,
83  rti1516::AttributeNotSubscribed,
84  rti1516::FederateInternalError);
85 
86  virtual void reflectAttributeValues(
87  rti1516::ObjectInstanceHandle theObject,
88  rti1516::AttributeHandleValueMap const & theAttributeValues,
89  rti1516::VariableLengthData const & theUserSuppliedTag,
90  rti1516::OrderType sentOrder,
91  rti1516::TransportationType theType,
92  rti1516::LogicalTime const & theTime,
93  rti1516::OrderType receivedOrder,
94  rti1516::RegionHandleSet const & theSentRegionHandleSet)
95  throw (rti1516::ObjectInstanceNotKnown,
96  rti1516::AttributeNotRecognized,
97  rti1516::AttributeNotSubscribed,
98  rti1516::FederateInternalError);
99 
100  virtual void reflectAttributeValues(
101  rti1516::ObjectInstanceHandle theObject,
102  rti1516::AttributeHandleValueMap const & theAttributeValues,
103  rti1516::VariableLengthData const & theUserSuppliedTag,
104  rti1516::OrderType sentOrder,
105  rti1516::TransportationType theType,
106  rti1516::LogicalTime const & theTime,
107  rti1516::OrderType receivedOrder,
108  rti1516::MessageRetractionHandle theHandle)
109  throw (rti1516::ObjectInstanceNotKnown,
110  rti1516::AttributeNotRecognized,
111  rti1516::AttributeNotSubscribed,
112  rti1516::InvalidLogicalTime,
113  rti1516::FederateInternalError);
114 
115  virtual void reflectAttributeValues(
116  rti1516::ObjectInstanceHandle theObject,
117  rti1516::AttributeHandleValueMap const & theAttributeValues,
118  rti1516::VariableLengthData const & theUserSuppliedTag,
119  rti1516::OrderType sentOrder,
120  rti1516::TransportationType theType,
121  rti1516::LogicalTime const & theTime,
122  rti1516::OrderType receivedOrder,
123  rti1516::MessageRetractionHandle theHandle,
124  rti1516::RegionHandleSet const & theSentRegionHandleSet)
125  throw (rti1516::ObjectInstanceNotKnown,
126  rti1516::AttributeNotRecognized,
127  rti1516::AttributeNotSubscribed,
128  rti1516::InvalidLogicalTime,
129  rti1516::FederateInternalError);
130 
131  virtual void receiveInteraction(
132  rti1516::InteractionClassHandle theInteraction,
133  rti1516::ParameterHandleValueMap const & theParameterValues,
134  rti1516::VariableLengthData const & theUserSuppliedTag,
135  rti1516::OrderType sentOrder,
136  rti1516::TransportationType theType)
137  throw (rti1516::InteractionClassNotRecognized,
138  rti1516::InteractionParameterNotRecognized,
139  rti1516::InteractionClassNotSubscribed,
140  rti1516::FederateInternalError);
141 
142  virtual void receiveInteraction(
143  rti1516::InteractionClassHandle theInteraction,
144  rti1516::ParameterHandleValueMap const & theParameterValues,
145  rti1516::VariableLengthData const & theUserSuppliedTag,
146  rti1516::OrderType sentOrder,
147  rti1516::TransportationType theType,
148  rti1516::RegionHandleSet const & theSentRegionHandleSet)
149  throw (rti1516::InteractionClassNotRecognized,
150  rti1516::InteractionParameterNotRecognized,
151  rti1516::InteractionClassNotSubscribed,
152  rti1516::FederateInternalError);
153 
154  virtual void receiveInteraction(
155  rti1516::InteractionClassHandle theInteraction,
156  rti1516::ParameterHandleValueMap const & theParameterValues,
157  rti1516::VariableLengthData const & theUserSuppliedTag,
158  rti1516::OrderType sentOrder,
159  rti1516::TransportationType theType,
160  rti1516::LogicalTime const & theTime,
161  rti1516::OrderType receivedOrder)
162  throw (rti1516::InteractionClassNotRecognized,
163  rti1516::InteractionParameterNotRecognized,
164  rti1516::InteractionClassNotSubscribed,
165  rti1516::FederateInternalError);
166 
167  virtual void receiveInteraction(
168  rti1516::InteractionClassHandle theInteraction,
169  rti1516::ParameterHandleValueMap const & theParameterValues,
170  rti1516::VariableLengthData const & theUserSuppliedTag,
171  rti1516::OrderType sentOrder,
172  rti1516::TransportationType theType,
173  rti1516::LogicalTime const & theTime,
174  rti1516::OrderType receivedOrder,
175  rti1516::RegionHandleSet const & theSentRegionHandleSet)
176  throw (rti1516::InteractionClassNotRecognized,
177  rti1516::InteractionParameterNotRecognized,
178  rti1516::InteractionClassNotSubscribed,
179  rti1516::FederateInternalError);
180 
181  virtual void receiveInteraction(
182  rti1516::InteractionClassHandle theInteraction,
183  rti1516::ParameterHandleValueMap const & theParameterValues,
184  rti1516::VariableLengthData const & theUserSuppliedTag,
185  rti1516::OrderType sentOrder,
186  rti1516::TransportationType theType,
187  rti1516::LogicalTime const & theTime,
188  rti1516::OrderType receivedOrder,
189  rti1516::MessageRetractionHandle theHandle)
190  throw (rti1516::InteractionClassNotRecognized,
191  rti1516::InteractionParameterNotRecognized,
192  rti1516::InteractionClassNotSubscribed,
193  rti1516::InvalidLogicalTime,
194  rti1516::FederateInternalError);
195 
196  virtual void receiveInteraction(
197  rti1516::InteractionClassHandle theInteraction,
198  rti1516::ParameterHandleValueMap const & theParameterValues,
199  rti1516::VariableLengthData const & theUserSuppliedTag,
200  rti1516::OrderType sentOrder,
201  rti1516::TransportationType theType,
202  rti1516::LogicalTime const & theTime,
203  rti1516::OrderType receivedOrder,
204  rti1516::MessageRetractionHandle theHandle,
205  rti1516::RegionHandleSet const & theSentRegionHandleSet)
206  throw (rti1516::InteractionClassNotRecognized,
207  rti1516::InteractionParameterNotRecognized,
208  rti1516::InteractionClassNotSubscribed,
209  rti1516::InvalidLogicalTime,
210  rti1516::FederateInternalError);
211 
212  virtual void removeObjectInstance(
213  rti1516::ObjectInstanceHandle theObject,
214  rti1516::VariableLengthData const & theUserSuppliedTag,
215  rti1516::OrderType sentOrder)
216  throw (rti1516::ObjectInstanceNotKnown,
217  rti1516::FederateInternalError);
218 
219  virtual void removeObjectInstance(
220  rti1516::ObjectInstanceHandle theObject,
221  rti1516::VariableLengthData const & theUserSuppliedTag,
222  rti1516::OrderType sentOrder,
223  rti1516::LogicalTime const & theTime,
224  rti1516::OrderType receivedOrder)
225  throw (rti1516::ObjectInstanceNotKnown,
226  rti1516::FederateInternalError);
227 
228  virtual void removeObjectInstance(
229  rti1516::ObjectInstanceHandle theObject,
230  rti1516::VariableLengthData const & theUserSuppliedTag,
231  rti1516::OrderType sentOrder,
232  rti1516::LogicalTime const & theTime,
233  rti1516::OrderType receivedOrder,
234  rti1516::MessageRetractionHandle theHandle)
235  throw (rti1516::ObjectInstanceNotKnown,
236  rti1516::InvalidLogicalTime,
237  rti1516::FederateInternalError);
238 
239  virtual void attributesInScope(
240  rti1516::ObjectInstanceHandle theObject,
241  rti1516::AttributeHandleSet const & theAttributes)
242  throw (rti1516::ObjectInstanceNotKnown,
243  rti1516::AttributeNotRecognized,
244  rti1516::AttributeNotSubscribed,
245  rti1516::FederateInternalError);
246 
247  virtual void attributesOutOfScope(
248  rti1516::ObjectInstanceHandle theObject,
249  rti1516::AttributeHandleSet const & theAttributes)
250  throw (rti1516::ObjectInstanceNotKnown,
251  rti1516::AttributeNotRecognized,
252  rti1516::AttributeNotSubscribed,
253  rti1516::FederateInternalError);
254 
256  rti1516::ObjectInstanceHandle theObject,
257  rti1516::AttributeHandleSet const & candidateAttributes,
258  rti1516::VariableLengthData const & theUserSuppliedTag)
259  throw (rti1516::ObjectInstanceNotKnown,
260  rti1516::AttributeNotRecognized,
261  rti1516::AttributeNotOwned,
262  rti1516::FederateInternalError);
263 
265  rti1516::ObjectInstanceHandle theObject,
266  rti1516::AttributeHandleSet const & securedAttributes,
267  rti1516::VariableLengthData const & theUserSuppliedTag)
268  throw (rti1516::ObjectInstanceNotKnown,
269  rti1516::AttributeNotRecognized,
270  rti1516::AttributeAcquisitionWasNotRequested,
271  rti1516::AttributeAlreadyOwned,
272  rti1516::AttributeNotPublished,
273  rti1516::FederateInternalError);
274 
276  rti1516::ObjectInstanceHandle theObject,
277  rti1516::AttributeHandleSet const & offeredAttributes,
278  rti1516::VariableLengthData const & theUserSuppliedTag)
279  throw (rti1516::ObjectInstanceNotKnown,
280  rti1516::AttributeNotRecognized,
281  rti1516::AttributeAlreadyOwned,
282  rti1516::AttributeNotPublished,
283  rti1516::FederateInternalError);
284 
285  virtual void requestDivestitureConfirmation(
286  rti1516::ObjectInstanceHandle theObject,
287  rti1516::AttributeHandleSet const & releasedAttributes)
288  throw (rti1516::ObjectInstanceNotKnown,
289  rti1516::AttributeNotRecognized,
290  rti1516::AttributeNotOwned,
291  rti1516::AttributeDivestitureWasNotRequested,
292  rti1516::FederateInternalError);
293 
294 protected:
295 
297 
298 };
299 
300 #endif
A convenience header provided for developers that would like to include everything all at once...
std::set< AttributeHandle > AttributeHandleSet
Definition: Typedefs.h:35
Definition: ballController1516.h:21
virtual ~HlaBounceFederateAmbassador()
Definition: hlaBounceFedAmb13.h:23
virtual void reflectAttributeValues(RTI::ObjectHandle theObject, const RTI::AttributeHandleValuePairSet &theAttributes, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
virtual void requestDivestitureConfirmation(rti1516::ObjectInstanceHandle theObject, rti1516::AttributeHandleSet const &releasedAttributes)
virtual void objectInstanceNameReservationSucceeded(std::wstring const &theObjectInstanceName)
virtual void attributesOutOfScope(RTI::ObjectHandle theObject, const RTI::AttributeHandleSet &theAttributes)
virtual void requestAttributeOwnershipAssumption(RTI::ObjectHandle theObject, const RTI::AttributeHandleSet &offeredAttributes, const char *theTag)
virtual void receiveInteraction(RTI::InteractionClassHandle theInteraction, const RTI::ParameterHandleValuePairSet &theParameters, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
std::set< RegionHandle > RegionHandleSet
Definition: Typedefs.h:39
virtual void requestAttributeOwnershipRelease(RTI::ObjectHandle theObject, const RTI::AttributeHandleSet &candidateAttributes, const char *theTag)
OrderType
Definition: Enums.h:27
virtual void removeObjectInstance(RTI::ObjectHandle theObject, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
HlaBounceFederateAmbassador(BallController13 *ballController)
BallController13 * myBallController
Definition: hlaBounceFedAmb13.h:149
std::map< AttributeHandle, VariableLengthData > AttributeHandleValueMap
Definition: Typedefs.h:44
virtual void attributeOwnershipAcquisitionNotification(RTI::ObjectHandle theObject, RTI::AttributeHandleSet const &securedAttributes)
throw(FederateInternalError)
Definition: NullFederateAmbassador.h:29
TransportationType
Definition: Enums.h:97
This file provides an example derivation of the rti1516e::FederateAmbassador with NULL actions for ea...
virtual void objectInstanceNameReservationFailed(std::wstring const &theObjectInstanceName)
virtual void attributesInScope(RTI::ObjectHandle theObject, const RTI::AttributeHandleSet &theAttributes)
virtual void discoverObjectInstance(RTI::ObjectHandle theObject, RTI::ObjectClassHandle theObjectClass, const char *theObjectName)
std::map< ParameterHandle, VariableLengthData > ParameterHandleValueMap
Definition: Typedefs.h:49

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)