MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rtiSimpleFedAmb1516e.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #pragma warning(disable: 4251)
9 #pragma warning(disable: 4786)
10 #pragma warning(disable: 4290)
11 
12 #include <RTI/RTI1516.h>
13 #include <RTI/NullFederateAmbassador.h>
14 #include <string>
15 #include <map>
16 
17 class DtSimpleData
18 {
19 public:
20  bool connectionLost;
24 
25  std::map<rti1516e::ObjectClassHandle, std::wstring> objectClassMap;
26  std::map<rti1516e::ObjectInstanceHandle, std::wstring> objectInstanceMap;
27 
29  {
30  clear();
31  }
32 
33  void clear()
34  {
39  objectClassMap.clear();
40  objectInstanceMap.clear();
41  }
42 };
43 
44 class MyFederateAmbassador : public rti1516e::NullFederateAmbassador
45 {
46 public:
47 
49 
50  virtual ~MyFederateAmbassador()
51  throw ();
52 
53  // 4.4
54  virtual void connectionLost(
55  std::wstring const& faultDescription)
56  throw (rti1516e::FederateInternalError);
57 
58  // 4.8
59  virtual void reportFederationExecutions(
60  rti1516e::FederationExecutionInformationVector const& theFederationExecutionInformationList)
61  throw (rti1516e::FederateInternalError);
62 
63  // 6.3
65  std::wstring const& theObjectInstanceName)
66  throw (rti1516e::FederateInternalError);
67 
69  std::wstring const& theObjectInstanceName)
70  throw (rti1516e::FederateInternalError);
71 
72  // 6.9
73  virtual void discoverObjectInstance(
74  rti1516e::ObjectInstanceHandle theObject,
75  rti1516e::ObjectClassHandle theObjectClass,
76  std::wstring const& theObjectInstanceName)
77  throw (rti1516e::FederateInternalError);
78 
79  virtual void discoverObjectInstance(
80  rti1516e::ObjectInstanceHandle theObject,
81  rti1516e::ObjectClassHandle theObjectClass,
82  std::wstring const& theObjectInstanceName,
83  rti1516e::FederateHandle producingFederate)
84  throw (rti1516e::FederateInternalError);
85 
86  // 6.11
87  virtual void reflectAttributeValues(
88  rti1516e::ObjectInstanceHandle theObject,
89  rti1516e::AttributeHandleValueMap const& theAttributeValues,
90  rti1516e::VariableLengthData const& theUserSuppliedTag,
91  rti1516e::OrderType sentOrder,
92  rti1516e::TransportationType theType,
93  rti1516e::SupplementalReflectInfo theReflectInfo)
94  throw (rti1516e::FederateInternalError);
95 
96  virtual void reflectAttributeValues(
97  rti1516e::ObjectInstanceHandle theObject,
98  rti1516e::AttributeHandleValueMap const& theAttributeValues,
99  rti1516e::VariableLengthData const& theUserSuppliedTag,
100  rti1516e::OrderType sentOrder,
101  rti1516e::TransportationType theType,
102  rti1516e::LogicalTime const& theTime,
103  rti1516e::OrderType receivedOrder,
104  rti1516e::SupplementalReflectInfo theReflectInfo)
105  throw (rti1516e::FederateInternalError);
106 
107  virtual void reflectAttributeValues(
108  rti1516e::ObjectInstanceHandle theObject,
109  rti1516e::AttributeHandleValueMap const& theAttributeValues,
110  rti1516e::VariableLengthData const& theUserSuppliedTag,
111  rti1516e::OrderType sentOrder,
112  rti1516e::TransportationType theType,
113  rti1516e::LogicalTime const& theTime,
114  rti1516e::OrderType receivedOrder,
115  rti1516e::MessageRetractionHandle theHandle,
116  rti1516e::SupplementalReflectInfo theReflectInfo)
117  throw (rti1516e::FederateInternalError);
118 
119  // 6.13
120  virtual void receiveInteraction(
121  rti1516e::InteractionClassHandle theInteraction,
122  rti1516e::ParameterHandleValueMap const& theParameterValues,
123  rti1516e::VariableLengthData const& theUserSuppliedTag,
124  rti1516e::OrderType sentOrder,
125  rti1516e::TransportationType theType,
126  rti1516e::SupplementalReceiveInfo theReceiveInfo)
127  throw (rti1516e::FederateInternalError);
128 
129  virtual void receiveInteraction(
130  rti1516e::InteractionClassHandle theInteraction,
131  rti1516e::ParameterHandleValueMap const& theParameterValues,
132  rti1516e::VariableLengthData const& theUserSuppliedTag,
133  rti1516e::OrderType sentOrder,
134  rti1516e::TransportationType theType,
135  rti1516e::LogicalTime const& theTime,
136  rti1516e::OrderType receivedOrder,
137  rti1516e::SupplementalReceiveInfo theReceiveInfo)
138  throw (rti1516e::FederateInternalError);
139 
140  virtual void receiveInteraction(
141  rti1516e::InteractionClassHandle theInteraction,
142  rti1516e::ParameterHandleValueMap const& theParameterValues,
143  rti1516e::VariableLengthData const& theUserSuppliedTag,
144  rti1516e::OrderType sentOrder,
145  rti1516e::TransportationType theType,
146  rti1516e::LogicalTime const& theTime,
147  rti1516e::OrderType receivedOrder,
148  rti1516e::MessageRetractionHandle theHandle,
149  rti1516e::SupplementalReceiveInfo theReceiveInfo)
150  throw (rti1516e::FederateInternalError);
151 
152  // 6.15
153  virtual void removeObjectInstance(
154  rti1516e::ObjectInstanceHandle theObject,
155  rti1516e::VariableLengthData const& theUserSuppliedTag,
156  rti1516e::OrderType sentOrder,
157  rti1516e::SupplementalRemoveInfo theRemoveInfo)
158  throw (rti1516e::FederateInternalError);
159 
160  virtual void removeObjectInstance(
161  rti1516e::ObjectInstanceHandle theObject,
162  rti1516e::VariableLengthData const& theUserSuppliedTag,
163  rti1516e::OrderType sentOrder,
164  rti1516e::LogicalTime const& theTime,
165  rti1516e::OrderType receivedOrder,
166  rti1516e::SupplementalRemoveInfo theRemoveInfo)
167  throw (rti1516e::FederateInternalError);
168 
169  virtual void removeObjectInstance(
170  rti1516e::ObjectInstanceHandle theObject,
171  rti1516e::VariableLengthData const& theUserSuppliedTag,
172  rti1516e::OrderType sentOrder,
173  rti1516e::LogicalTime const& theTime,
174  rti1516e::OrderType receivedOrder,
175  rti1516e::MessageRetractionHandle theHandle,
176  rti1516e::SupplementalRemoveInfo theRemoveInfo)
177  throw (rti1516e::FederateInternalError);
178 
179 public:
181 };
virtual void connectionLost(std::wstring const &faultDescription) override
virtual void objectInstanceNameReservationFailed(std::wstring const &theObjectInstanceName)
OrderType
Definition: datatypes.pb.h:472
Data for interacting with the federate ambassador.
Definition: rtiSimpleFedAmb13.h:15
Basic federate ambassador service callback implementation.
Definition: rtiSimpleFedAmb13.h:35
bool listFederationsReturned
Definition: rtiSimpleFedAmb1516_2025.h:21
bool nameReservationSucceeded
Definition: rtiSimpleFedAmb1516.h:21
virtual void receiveInteraction(RTI::InteractionClassHandle theInteraction, const RTI::ParameterHandleValuePairSet &theParameters, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
void clear()
Definition: rtiSimpleFedAmb13.h:27
virtual void objectInstanceNameReservationSucceeded(std::wstring const &theObjectInstanceName)
bool nameReservationReturned
Definition: rtiSimpleFedAmb1516.h:20
virtual void throw(rti1516::InvalidLogicalTime, rti1516::NoRequestToEnableTimeRegulationWasPending, rti1516::FederateInternalError)
ULong InteractionClassHandle
Definition: RTItypes13.h:106
TransportationType
Definition: rtiAmbassadorFedProBase.h:43
virtual void removeObjectInstance(RTI::ObjectHandle theObject, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
std::map< RTI::ObjectHandle, std::string > objectInstanceMap
Definition: rtiSimpleFedAmb13.h:19
virtual void reflectAttributeValues(RTI::ObjectHandle theObject, const RTI::AttributeHandleValuePairSet &theAttributes, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
std::map< rti1516e::ObjectClassHandle, std::wstring > objectClassMap
Definition: rtiSimpleFedAmb1516e.h:25
virtual void reportFederationExecutions(rti1516_2025::FederationExecutionInformationVector const &theFederationExecutionInformationList) override
DtSimpleData & myData
Definition: rtiSimpleFedAmb13.h:98
bool connectionLost
Definition: rtiSimpleFedAmb1516_2025.h:23
virtual void discoverObjectInstance(RTI::ObjectHandle theObject, RTI::ObjectClassHandle theObjectClass, const char *theObjectName)
DtSimpleData()
Definition: rtiSimpleFedAmb1516e.h:28
std::map< RTI::ObjectClassHandle, std::string > objectClassMap
Definition: rtiSimpleFedAmb13.h:18
std::map< rti1516e::ObjectInstanceHandle, std::wstring > objectInstanceMap
Definition: rtiSimpleFedAmb1516e.h:26
ULong FederateHandle
Definition: RTItypes13.h:120
virtual ~MyFederateAmbassador()
ULong ObjectClassHandle
Definition: RTItypes13.h:104
MyFederateAmbassador(DtSimpleData &data)

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)