![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /********************************************************************* 00002 ** Copyright (c) 2008 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: testMgrFedAmbWrapper.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtTestMgrFedAmbWrapper_H_ 00013 #define DtTestMgrFedAmbWrapper_H_ 00014 00015 00017 #include "rtiMsConfig.h" 00018 00019 #ifdef DtIFSPEC1516 00020 #include <fedAmbWrap1516.h> 00021 #elif defined(DtIFSPEC1516E) 00022 #include <fedAmbWrap1516e.h> 00023 #else 00024 #include <fedAmbWrap.h> 00025 #endif 00026 00027 class DtFederateMgr; 00028 00035 00036 class DtFedAmbWrapper; 00037 00042 class DT_DLL_LRC DtTestMgrFedAmbWrapper : public DtFedAmbWrapper 00043 { 00044 public: 00045 00046 #ifdef DtIFSPEC1516 00047 DtTestMgrFedAmbWrapper(DtFederateMgr* parent, rti1516::FederateAmbassador* fedAmb): 00048 DtFedAmbWrapper(fedAmb), 00049 myParent(parent) {} 00050 00051 virtual ~DtTestMgrFedAmbWrapper() 00052 throw() {} 00053 #elif defined(DtIFSPEC1516E) 00054 DtTestMgrFedAmbWrapper(DtFederateMgr* parent, rti1516e::FederateAmbassador* fedAmb): 00055 DtFedAmbWrapper(fedAmb), 00056 myParent(parent) {} 00057 00058 virtual ~DtTestMgrFedAmbWrapper() 00059 throw() {} 00060 #else 00061 DtTestMgrFedAmbWrapper(DtFederateMgr* parent, RTI::FederateAmbassador* fedAmb) : 00062 DtFedAmbWrapper(fedAmb), 00063 myParent(parent){} 00064 00065 virtual ~DtTestMgrFedAmbWrapper() throw (RTI::FederateInternalError) {} 00066 #endif 00067 00068 DtFederateMgr* myParent; 00069 00070 #ifdef DtIFSPEC1516 00071 00072 virtual 00073 void 00074 turnInteractionsOn ( 00075 rti1516::InteractionClassHandle theHandle) 00076 throw ( 00077 rti1516::InteractionClassNotPublished, 00078 rti1516::FederateInternalError); 00079 00080 virtual 00081 void 00082 turnInteractionsOff ( 00083 rti1516::InteractionClassHandle theHandle) 00084 throw ( 00085 rti1516::InteractionClassNotPublished, 00086 rti1516::FederateInternalError); 00087 00088 virtual 00089 void 00090 receiveInteraction ( 00091 rti1516::InteractionClassHandle theInteraction, 00092 rti1516::ParameterHandleValueMap const & theParameterValues, 00093 rti1516::VariableLengthData const & theUserSuppliedTag, 00094 rti1516::OrderType sentOrder, 00095 rti1516::TransportationType theType) 00096 throw ( 00097 rti1516::InteractionClassNotRecognized, 00098 rti1516::InteractionParameterNotRecognized, 00099 rti1516::InteractionClassNotSubscribed, 00100 rti1516::FederateInternalError); 00101 00102 virtual 00103 void 00104 receiveInteraction ( 00105 rti1516::InteractionClassHandle theInteraction, 00106 rti1516::ParameterHandleValueMap const & theParameterValues, 00107 rti1516::VariableLengthData const & theUserSuppliedTag, 00108 rti1516::OrderType sentOrder, 00109 rti1516::TransportationType theType, 00110 rti1516::RegionHandleSet const & theSentRegionHandleSet) 00111 throw ( 00112 rti1516::InteractionClassNotRecognized, 00113 rti1516::InteractionParameterNotRecognized, 00114 rti1516::InteractionClassNotSubscribed, 00115 rti1516::FederateInternalError); 00116 00117 virtual 00118 void 00119 receiveInteraction( 00120 rti1516::InteractionClassHandle theInteraction, 00121 rti1516::ParameterHandleValueMap const & theParameterValues, 00122 rti1516::VariableLengthData const & theUserSuppliedTag, 00123 rti1516::OrderType sentOrder, 00124 rti1516::TransportationType theType, 00125 rti1516::LogicalTime const & theTime, 00126 rti1516::OrderType receivedOrder) 00127 throw ( 00128 rti1516::InteractionClassNotRecognized, 00129 rti1516::InteractionParameterNotRecognized, 00130 rti1516::InteractionClassNotSubscribed, 00131 rti1516::FederateInternalError); 00132 00133 virtual 00134 void 00135 receiveInteraction( 00136 rti1516::InteractionClassHandle theInteraction, 00137 rti1516::ParameterHandleValueMap const & theParameterValues, 00138 rti1516::VariableLengthData const & theUserSuppliedTag, 00139 rti1516::OrderType sentOrder, 00140 rti1516::TransportationType theType, 00141 rti1516::LogicalTime const & theTime, 00142 rti1516::OrderType receivedOrder, 00143 rti1516::RegionHandleSet const & theSentRegionHandleSet) 00144 throw ( 00145 rti1516::InteractionClassNotRecognized, 00146 rti1516::InteractionParameterNotRecognized, 00147 rti1516::InteractionClassNotSubscribed, 00148 rti1516::FederateInternalError); 00149 00150 virtual 00151 void 00152 receiveInteraction ( 00153 rti1516::InteractionClassHandle theInteraction, 00154 rti1516::ParameterHandleValueMap const & theParameterValues, 00155 rti1516::VariableLengthData const & theUserSuppliedTag, 00156 rti1516::OrderType sentOrder, 00157 rti1516::TransportationType theType, 00158 rti1516::LogicalTime const & theTime, 00159 rti1516::OrderType receivedOrder, 00160 rti1516::MessageRetractionHandle theHandle) 00161 throw ( 00162 rti1516::InteractionClassNotRecognized, 00163 rti1516::InteractionParameterNotRecognized, 00164 rti1516::InteractionClassNotSubscribed, 00165 rti1516::InvalidLogicalTime, 00166 rti1516::FederateInternalError); 00167 00168 virtual 00169 void 00170 receiveInteraction ( 00171 rti1516::InteractionClassHandle theInteraction, 00172 rti1516::ParameterHandleValueMap const & theParameterValues, 00173 rti1516::VariableLengthData const & theUserSuppliedTag, 00174 rti1516::OrderType sentOrder, 00175 rti1516::TransportationType theType, 00176 rti1516::LogicalTime const & theTime, 00177 rti1516::OrderType receivedOrder, 00178 rti1516::MessageRetractionHandle theHandle, 00179 rti1516::RegionHandleSet const & theSentRegionHandleSet) 00180 throw ( 00181 rti1516::InteractionClassNotRecognized, 00182 rti1516::InteractionParameterNotRecognized, 00183 rti1516::InteractionClassNotSubscribed, 00184 rti1516::InvalidLogicalTime, 00185 rti1516::FederateInternalError); 00186 00187 #elif defined(DtIFSPEC1516E) 00188 00189 00190 virtual 00191 void 00192 turnInteractionsOn ( 00193 rti1516e::InteractionClassHandle theHandle) 00194 throw ( 00195 rti1516e::FederateInternalError); 00196 00197 virtual 00198 void 00199 turnInteractionsOff ( 00200 rti1516e::InteractionClassHandle theHandle) 00201 throw ( 00202 rti1516e::FederateInternalError); 00203 00204 virtual void receiveInteraction ( 00205 rti1516e::InteractionClassHandle theInteraction, 00206 rti1516e::ParameterHandleValueMap const & theParameterValues, 00207 rti1516e::VariableLengthData const & theUserSuppliedTag, 00208 rti1516e::OrderType sentOrder, 00209 rti1516e::TransportationType theType, 00210 rti1516e::SupplementalReceiveInfo theReceiveInfo) 00211 throw ( 00212 rti1516e::FederateInternalError); 00213 00214 virtual void receiveInteraction ( 00215 rti1516e::InteractionClassHandle theInteraction, 00216 rti1516e::ParameterHandleValueMap const & theParameterValues, 00217 rti1516e::VariableLengthData const & theUserSuppliedTag, 00218 rti1516e::OrderType sentOrder, 00219 rti1516e::TransportationType theType, 00220 rti1516e::LogicalTime const & theTime, 00221 rti1516e::OrderType receivedOrder, 00222 rti1516e::SupplementalReceiveInfo theReceiveInfo) 00223 throw ( 00224 rti1516e::FederateInternalError); 00225 00226 virtual void receiveInteraction ( 00227 rti1516e::InteractionClassHandle theInteraction, 00228 rti1516e::ParameterHandleValueMap const & theParameterValues, 00229 rti1516e::VariableLengthData const & theUserSuppliedTag, 00230 rti1516e::OrderType sentOrder, 00231 rti1516e::TransportationType theType, 00232 rti1516e::LogicalTime const & theTime, 00233 rti1516e::OrderType receivedOrder, 00234 rti1516e::MessageRetractionHandle theHandle, 00235 rti1516e::SupplementalReceiveInfo theReceiveInfo) 00236 throw ( 00237 rti1516e::FederateInternalError); 00238 00239 #else //DtIFSPEC1516 00240 00241 virtual 00242 void 00243 turnInteractionsOn ( 00244 RTI::InteractionClassHandle theHandle ) 00245 throw ( 00246 RTI::InteractionClassNotPublished, 00247 RTI::FederateInternalError ); 00248 00249 virtual 00250 void 00251 turnInteractionsOff ( 00252 RTI::InteractionClassHandle theHandle ) 00253 throw ( 00254 RTI::InteractionClassNotPublished, 00255 RTI::FederateInternalError ); 00256 00257 virtual 00258 void 00259 receiveInteraction ( 00260 RTI::InteractionClassHandle theInteraction, 00261 const RTI::ParameterHandleValuePairSet& theParameters, 00262 const RTI::FedTime& theTime, 00263 const char *theTag, 00264 RTI::EventRetractionHandle theHandle) 00265 throw ( 00266 RTI::InteractionClassNotKnown, 00267 RTI::InteractionParameterNotKnown, 00268 RTI::InvalidFederationTime, 00269 RTI::FederateInternalError); 00270 00271 virtual 00272 void 00273 receiveInteraction ( 00274 RTI::InteractionClassHandle theInteraction, 00275 const RTI::ParameterHandleValuePairSet& theParameters, 00276 const char *theTag) 00277 throw ( 00278 RTI::InteractionClassNotKnown, 00279 RTI::InteractionParameterNotKnown, 00280 RTI::FederateInternalError); 00281 00282 #endif //DtIFSPEC1516 00283 00284 }; 00285 00286 #endif //! DtTestMgrFedAmbWrapper_H_ 00287