![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: ambObserver.h,v $ $Revision: 1.12 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtRtiAmbassadorObserver_H_ 00013 #define DtRtiAmbassadorObserver_H_ 00014 00015 #ifdef DtIFSPEC13 00016 00017 #include "rtiMsConfig.h" 00018 #include <vlutil/vlList.h> 00019 #include <vlutil/vlString.h> 00020 00021 #ifdef DtIFSPEC13DLC 00022 #include "RTI13.h" 00023 #define RTI rti13 00024 #else 00025 #include "RTI.hh" 00026 #endif 00027 00028 class DtRtiAmbassadorImplementor; 00029 00030 class DT_DLL_LRC DtRtiAmbassadorObserver : public MAKRti::DtListedObj 00031 { 00032 public: 00033 00034 DtRtiAmbassadorObserver() : MAKRti::DtListedObj() {} 00035 00036 virtual ~DtRtiAmbassadorObserver() {} 00037 00039 virtual DtRtiAmbassadorObserver* next() const; 00040 00042 virtual DtRtiAmbassadorObserver* prev() const; 00043 00046 virtual DtRtiAmbassadorObserver* wrapNext() const; 00047 00050 virtual DtRtiAmbassadorObserver* wrapPrev() const; 00051 00052 virtual void createFederationExecution ( 00053 const char *executionName, 00054 const char *FED, 00055 RTI::Exception* except = NULL) {} 00056 00057 virtual void destroyFederationExecution ( 00058 const char *executionName, 00059 RTI::Exception* except = NULL) {} 00060 00061 virtual void joinFederationExecution ( 00062 const char *yourName, 00063 const char *executionName, 00064 RTI::FederateAmbassador* federateAmbassadorReference, 00065 RTI::FederateHandle& handle, 00066 RTI::Exception* except = NULL) {} 00067 00068 virtual void resignFederationExecution ( 00069 RTI::ResignAction theAction, 00070 RTI::Exception* except = NULL) {} 00071 00072 virtual void registerFederationSynchronizationPoint ( 00073 const char *label, 00074 const char *theTag, 00075 RTI::Exception* except = NULL) {} 00076 00077 virtual void registerFederationSynchronizationPoint ( 00078 const char *label, 00079 const char *theTag, 00080 const RTI::FederateHandleSet& syncSet, 00081 RTI::Exception* except = NULL) {} 00082 00083 virtual void synchronizationPointAchieved ( 00084 const char *label, 00085 RTI::Exception* except = NULL) {} 00086 00087 virtual void requestFederationSave ( 00088 const char *label, 00089 const RTI::FedTime& theTime, 00090 RTI::Exception* except = NULL) {} 00091 00092 virtual void requestFederationSave ( 00093 const char *label, 00094 RTI::Exception* except = NULL) {} 00095 00096 virtual void federateSaveBegun ( 00097 RTI::Exception* except = NULL) {} 00098 00099 virtual void federateSaveComplete ( 00100 RTI::Exception* except = NULL) {} 00101 00102 virtual void federateSaveNotComplete ( 00103 RTI::Exception* except = NULL) {} 00104 00105 virtual void requestFederationRestore ( 00106 const char *label, 00107 RTI::Exception* except = NULL) {} 00108 00109 virtual void federateRestoreComplete ( 00110 RTI::Exception* except = NULL) {} 00111 00112 virtual void federateRestoreNotComplete ( 00113 RTI::Exception* except = NULL) {} 00114 00115 //----------------------------------- 00117 //---------------------------------- 00118 00119 virtual void publishObjectClass ( 00120 RTI::ObjectClassHandle theClass, 00121 const RTI::AttributeHandleSet& attributeList, 00122 RTI::Exception* except = NULL) {} 00123 00124 virtual void unpublishObjectClass ( 00125 RTI::ObjectClassHandle theClass, 00126 RTI::Exception* except = NULL) {} 00127 00128 virtual void publishInteractionClass ( 00129 RTI::InteractionClassHandle theInteraction, 00130 RTI::Exception* except = NULL) {} 00131 00132 virtual void unpublishInteractionClass ( 00133 RTI::InteractionClassHandle theInteraction, 00134 RTI::Exception* except = NULL) {} 00135 00136 virtual void subscribeObjectClassAttributes ( 00137 RTI::ObjectClassHandle theClass, 00138 const RTI::AttributeHandleSet& attributeList, 00139 RTI::Boolean active = RTI::RTI_TRUE, 00140 RTI::Exception* except = NULL) {} 00141 00142 virtual void unsubscribeObjectClass ( 00143 RTI::ObjectClassHandle theClass, 00144 RTI::Exception* except = NULL) {} 00145 00146 virtual void subscribeInteractionClass ( 00147 RTI::InteractionClassHandle theClass, 00148 RTI::Boolean active = RTI::RTI_TRUE, 00149 RTI::Exception* except = NULL) {} 00150 00151 virtual void unsubscribeInteractionClass ( 00152 RTI::InteractionClassHandle theClass, 00153 RTI::Exception* except = NULL) {} 00154 00155 //------------------------------- 00157 //------------------------------- 00158 00159 virtual void registerObjectInstance ( 00160 RTI::ObjectClassHandle theClass, 00161 const char *theObject, 00162 RTI::ObjectHandle& handle, 00163 RTI::Exception* except = NULL) {} 00164 00165 virtual void registerObjectInstance ( 00166 RTI::ObjectClassHandle theClass, 00167 RTI::ObjectHandle& handle, 00168 RTI::Exception* except = NULL) {} 00169 00170 virtual void updateAttributeValues ( 00171 RTI::ObjectHandle theObject, 00172 const RTI::AttributeHandleValuePairSet& theAttributes, 00173 const RTI::FedTime& theTime, 00174 const char *theTag, 00175 RTI::EventRetractionHandle& handle, 00176 RTI::Exception* except = NULL) {} 00177 00178 virtual void updateAttributeValues ( 00179 RTI::ObjectHandle theObject, 00180 const RTI::AttributeHandleValuePairSet& theAttributes, 00181 const char *theTag, 00182 RTI::Exception* except = NULL) {} 00183 00184 virtual void sendInteraction ( 00185 RTI::InteractionClassHandle theInteraction, 00186 const RTI::ParameterHandleValuePairSet& theParameters, 00187 const RTI::FedTime& theTime, 00188 const char *theTag, 00189 RTI::EventRetractionHandle& handle, 00190 RTI::Exception* except = NULL) {} 00191 00192 virtual void sendInteraction ( 00193 RTI::InteractionClassHandle theInteraction, 00194 const RTI::ParameterHandleValuePairSet& theParameters, 00195 const char *theTag, 00196 RTI::Exception* except = NULL) {} 00197 00198 virtual void deleteObjectInstance ( 00199 RTI::ObjectHandle theObject, 00200 const RTI::FedTime& theTime, 00201 const char *theTag, 00202 RTI::EventRetractionHandle& handle, 00203 RTI::Exception* except = NULL) {} 00204 00205 virtual void deleteObjectInstance ( 00206 RTI::ObjectHandle theObject, 00207 const char *theTag, 00208 RTI::Exception* except = NULL) {} 00209 00210 virtual void localDeleteObjectInstance ( 00211 RTI::ObjectHandle theObject, 00212 RTI::Exception* except = NULL) {} 00213 00214 virtual void changeAttributeTransportationType ( 00215 RTI::ObjectHandle theObject, 00216 const RTI::AttributeHandleSet& theAttributes, 00217 RTI::TransportationHandle theType, 00218 RTI::Exception* except = NULL) {} 00219 00220 virtual void changeInteractionTransportationType ( 00221 RTI::InteractionClassHandle theClass, 00222 RTI::TransportationHandle theType, 00223 RTI::Exception* except = NULL) {} 00224 00225 virtual void requestObjectAttributeValueUpdate ( 00226 RTI::ObjectHandle theObject, 00227 const RTI::AttributeHandleSet& theAttributes, 00228 RTI::Exception* except = NULL) {} 00229 00230 virtual void requestClassAttributeValueUpdate ( 00231 RTI::ObjectClassHandle theClass, 00232 const RTI::AttributeHandleSet& theAttributes, 00233 RTI::Exception* except = NULL) {} 00234 00235 //--------------------------------- 00237 //--------------------------------- 00238 00239 virtual void unconditionalAttributeOwnershipDivestiture ( 00240 RTI::ObjectHandle theObject, 00241 const RTI::AttributeHandleSet& theAttributes, 00242 RTI::Exception* except = NULL) {} 00243 00244 virtual void negotiatedAttributeOwnershipDivestiture ( 00245 RTI::ObjectHandle theObject, 00246 const RTI::AttributeHandleSet& theAttributes, 00247 const char *theTag, 00248 RTI::Exception* except = NULL) {} 00249 00250 virtual void attributeOwnershipAcquisition ( 00251 RTI::ObjectHandle theObject, 00252 const RTI::AttributeHandleSet& desiredAttributes, 00253 const char *theTag, 00254 RTI::Exception* except = NULL) {} 00255 00256 virtual void attributeOwnershipAcquisitionIfAvailable ( 00257 RTI::ObjectHandle theObject, 00258 const RTI::AttributeHandleSet& desiredAttributes, 00259 RTI::Exception* except = NULL) {} 00260 00261 virtual void attributeOwnershipReleaseResponse ( 00262 RTI::ObjectHandle theObject, 00263 const RTI::AttributeHandleSet& theAttributes, 00264 RTI::AttributeHandleSet* set, 00265 RTI::Exception* except = NULL) {} 00266 00267 virtual void cancelNegotiatedAttributeOwnershipDivestiture ( 00268 RTI::ObjectHandle theObject, 00269 const RTI::AttributeHandleSet& theAttributes, 00270 RTI::Exception* except = NULL) {} 00271 00272 virtual void cancelAttributeOwnershipAcquisition ( 00273 RTI::ObjectHandle theObject, 00274 const RTI::AttributeHandleSet& theAttributes, 00275 RTI::Exception* except = NULL) {} 00276 00277 virtual void queryAttributeOwnership ( 00278 RTI::ObjectHandle theObject, 00279 RTI::AttributeHandle theAttribute, 00280 RTI::Exception* except = NULL) {} 00281 00282 virtual void isAttributeOwnedByFederate ( 00283 RTI::ObjectHandle theObject, 00284 RTI::AttributeHandle theAttribute, 00285 RTI::Boolean boolean, 00286 RTI::Exception* except = NULL) {} 00287 00288 //---------------------------- 00290 //---------------------------- 00291 00292 virtual void enableTimeRegulation ( 00293 const RTI::FedTime& theFederateTime, 00294 const RTI::FedTime& theLookahead, 00295 RTI::Exception* except = NULL) {} 00296 00297 virtual void disableTimeRegulation ( 00298 RTI::Exception* except = NULL) {} 00299 00300 virtual void enableTimeConstrained ( 00301 RTI::Exception* except = NULL) {} 00302 00303 virtual void disableTimeConstrained ( 00304 RTI::Exception* except = NULL) {} 00305 00306 virtual void timeAdvanceRequest ( 00307 const RTI::FedTime& theTime, 00308 RTI::Exception* except = NULL) {} 00309 00310 virtual void timeAdvanceRequestAvailable ( 00311 const RTI::FedTime& theTime, 00312 RTI::Exception* except = NULL) {} 00313 00314 virtual void nextEventRequest ( 00315 const RTI::FedTime& theTime, 00316 RTI::Exception* except = NULL) {} 00317 00318 virtual void nextEventRequestAvailable ( 00319 const RTI::FedTime& theTime, 00320 RTI::Exception* except = NULL) {} 00321 00322 virtual void flushQueueRequest ( 00323 const RTI::FedTime& theTime, 00324 RTI::Exception* except = NULL) {} 00325 00326 virtual void enableAsynchronousDelivery( 00327 RTI::Exception* except = NULL) {} 00328 00329 virtual void disableAsynchronousDelivery( 00330 RTI::Exception* except = NULL) {} 00331 00332 virtual void queryLBTS ( 00333 RTI::FedTime& theTime, 00334 RTI::Exception* except = NULL) {} 00335 00336 virtual void queryFederateTime ( 00337 RTI::FedTime& theTime, 00338 RTI::Exception* except = NULL) {} 00339 00340 virtual void queryMinNextEventTime ( 00341 RTI::FedTime& theTime, 00342 RTI::Exception* except = NULL) {} 00343 00344 virtual void modifyLookahead ( 00345 const RTI::FedTime& theLookahead, 00346 RTI::Exception* except = NULL) {} 00347 00348 virtual void queryLookahead ( 00349 RTI::FedTime& theTime, 00350 RTI::Exception* except = NULL) {} 00351 00352 virtual void retract ( 00353 RTI::EventRetractionHandle theHandle, 00354 RTI::Exception* except = NULL) {} 00355 00356 virtual void changeAttributeOrderType ( 00357 RTI::ObjectHandle theObject, 00358 const RTI::AttributeHandleSet& theAttributes, 00359 RTI::OrderingHandle theType, 00360 RTI::Exception* except = NULL) {} 00361 00362 virtual void changeInteractionOrderType ( 00363 RTI::InteractionClassHandle theClass, 00364 RTI::OrderingHandle theType, 00365 RTI::Exception* except = NULL) {} 00366 00367 //-------------------------------- 00369 //-------------------------------- 00370 00371 virtual void createRegion ( 00372 RTI::SpaceHandle theSpace, 00373 RTI::ULong numberOfExtents, 00374 RTI::Region* region, 00375 RTI::Exception* except = NULL) {} 00376 00377 virtual void notifyAboutRegionModification ( 00378 RTI::Region &theRegion, 00379 RTI::Exception* except = NULL) {} 00380 00381 virtual void deleteRegion ( 00382 RTI::Region *theRegion, 00383 RTI::Exception* except = NULL) {} 00384 00385 virtual void registerObjectInstanceWithRegion ( 00386 RTI::ObjectClassHandle theClass, 00387 const char *theObject, 00388 RTI::AttributeHandle theAttributes[], 00389 RTI::Region *theRegions[], 00390 RTI::ULong theNumberOfHandles, 00391 RTI::ObjectHandle& handle, 00392 RTI::Exception* except = NULL) {} 00393 00394 virtual void registerObjectInstanceWithRegion ( 00395 RTI::ObjectClassHandle theClass, 00396 RTI::AttributeHandle theAttributes[], 00397 RTI::Region *theRegions[], 00398 RTI::ULong theNumberOfHandles, 00399 RTI::ObjectHandle& handle, 00400 RTI::Exception* except = NULL) {} 00401 00402 virtual void associateRegionForUpdates ( 00403 RTI::Region &theRegion, 00404 RTI::ObjectHandle theObject, 00405 const RTI::AttributeHandleSet &theAttributes, 00406 RTI::Exception* except = NULL) {} 00407 00408 virtual void unassociateRegionForUpdates ( 00409 RTI::Region &theRegion, 00410 RTI::ObjectHandle theObject, 00411 RTI::Exception* except = NULL) {} 00412 00413 virtual void subscribeObjectClassAttributesWithRegion ( 00414 RTI::ObjectClassHandle theClass, 00415 RTI::Region &theRegion, 00416 const RTI::AttributeHandleSet &attributeList, 00417 RTI::Boolean active = RTI::RTI_TRUE, 00418 RTI::Exception* except = NULL) {} 00419 00420 virtual void unsubscribeObjectClassWithRegion ( 00421 RTI::ObjectClassHandle theClass, 00422 RTI::Region &theRegion, 00423 RTI::Exception* except = NULL) {} 00424 00425 virtual void subscribeInteractionClassWithRegion ( 00426 RTI::InteractionClassHandle theClass, 00427 RTI::Region &theRegion, 00428 RTI::Boolean active = RTI::RTI_TRUE, 00429 RTI::Exception* except = NULL) {} 00430 00431 virtual void unsubscribeInteractionClassWithRegion ( 00432 RTI::InteractionClassHandle theClass, 00433 RTI::Region &theRegion, 00434 RTI::Exception* except = NULL) {} 00435 00436 virtual void sendInteractionWithRegion ( 00437 RTI::InteractionClassHandle theInteraction, 00438 const RTI::ParameterHandleValuePairSet &theParameters, 00439 const RTI::FedTime& theTime, 00440 const char *theTag, 00441 const RTI::Region &theRegion, 00442 RTI::EventRetractionHandle& handle, 00443 RTI::Exception* except = NULL) {} 00444 00445 virtual void sendInteractionWithRegion ( 00446 RTI::InteractionClassHandle theInteraction, 00447 const RTI::ParameterHandleValuePairSet &theParameters, 00448 const char *theTag, 00449 const RTI::Region &theRegion, 00450 RTI::Exception* except = NULL) {} 00451 00452 virtual void requestClassAttributeValueUpdateWithRegion ( 00453 RTI::ObjectClassHandle theClass, 00454 const RTI::AttributeHandleSet &theAttributes, 00455 const RTI::Region &theRegion, 00456 RTI::Exception* except = NULL) {} 00457 00458 //------------------------ 00460 //------------------------ 00461 00462 virtual void getObjectClassHandle ( 00463 const char *theName, 00464 RTI::ObjectClassHandle& handle, 00465 RTI::Exception* except = NULL) {} 00466 00467 virtual void getObjectClassName ( 00468 RTI::ObjectClassHandle theHandle, 00469 char* className, 00470 RTI::Exception* except = NULL) {} 00471 00472 virtual void getAttributeHandle ( 00473 const char *theName, 00474 RTI::ObjectClassHandle whichClass, 00475 RTI::AttributeHandle& handle, 00476 RTI::Exception* except = NULL) {} 00477 00478 virtual void getAttributeName ( 00479 RTI::AttributeHandle theHandle, 00480 RTI::ObjectClassHandle whichClass, 00481 char* attributeName, 00482 RTI::Exception* except = NULL) {} 00483 00484 virtual void getInteractionClassHandle ( 00485 const char *theName, 00486 RTI::InteractionClassHandle& handle, 00487 RTI::Exception* except = NULL) {} 00488 00489 virtual void getInteractionClassName ( 00490 RTI::InteractionClassHandle theHandle, 00491 char* className, 00492 RTI::Exception* except = NULL) {} 00493 00494 virtual void getParameterHandle ( 00495 const char *theName, 00496 RTI::InteractionClassHandle whichClass, 00497 RTI::ParameterHandle& handle, 00498 RTI::Exception* except = NULL) {} 00499 00500 virtual void getParameterName ( 00501 RTI::ParameterHandle theHandle, 00502 RTI::InteractionClassHandle whichClass, 00503 char* paramName, 00504 RTI::Exception* except = NULL) {} 00505 00506 virtual void getObjectInstanceHandle ( 00507 const char *theName, 00508 RTI::ObjectHandle& handle, 00509 RTI::Exception* except = NULL) {} 00510 00511 virtual void getObjectInstanceName ( 00512 RTI::ObjectHandle theHandle, 00513 char* objectInstanceName, 00514 RTI::Exception* except = NULL) {} 00515 00516 virtual void getRoutingSpaceHandle ( 00517 const char *theName, 00518 RTI::SpaceHandle& handle, 00519 RTI::Exception* except = NULL) {} 00520 00521 virtual void getRoutingSpaceName ( 00522 RTI::SpaceHandle theHandle, 00523 char* spaceName, 00524 RTI::Exception* except = NULL) {} 00525 00526 virtual void getDimensionHandle ( 00527 const char *theName, 00528 RTI::SpaceHandle whichSpace, 00529 RTI::DimensionHandle& handle, 00530 RTI::Exception* except = NULL) {} 00531 00532 virtual void getDimensionName ( 00533 RTI::DimensionHandle theHandle, 00534 RTI::SpaceHandle whichSpace, 00535 char* dimensionName, 00536 RTI::Exception* except = NULL) {} 00537 00538 virtual void getAttributeRoutingSpaceHandle ( 00539 RTI::AttributeHandle theHandle, 00540 RTI::ObjectClassHandle whichClass, 00541 RTI::SpaceHandle& handle, 00542 RTI::Exception* except = NULL) {} 00543 00544 virtual void getObjectClass ( 00545 RTI::ObjectHandle theObject, 00546 RTI::ObjectClassHandle& handle, 00547 RTI::Exception* except = NULL) {} 00548 00549 virtual void getInteractionRoutingSpaceHandle ( 00550 RTI::InteractionClassHandle theHandle, 00551 RTI::SpaceHandle& handle, 00552 RTI::Exception* except = NULL) {} 00553 00554 virtual void getTransportationHandle ( 00555 const char *theName, 00556 RTI::TransportationHandle& handle, 00557 RTI::Exception* except = NULL) {} 00558 00559 virtual void getTransportationName ( 00560 RTI::TransportationHandle theHandle, 00561 char* transportationName, 00562 RTI::Exception* except = NULL) {} 00563 00564 virtual void getOrderingHandle ( 00565 const char *theName, 00566 RTI::OrderingHandle& handle, 00567 RTI::Exception* except = NULL) {} 00568 00569 virtual void getOrderingName ( 00570 RTI::OrderingHandle theHandle, 00571 char* orderingName, 00572 RTI::Exception* except = NULL) {} 00573 00574 virtual void enableClassRelevanceAdvisorySwitch( 00575 RTI::Exception* except = NULL) {} 00576 00577 virtual void disableClassRelevanceAdvisorySwitch( 00578 RTI::Exception* except = NULL) {} 00579 00580 virtual void enableAttributeRelevanceAdvisorySwitch( 00581 RTI::Exception* except = NULL) {} 00582 00583 virtual void disableAttributeRelevanceAdvisorySwitch( 00584 RTI::Exception* except = NULL) {} 00585 00586 virtual void enableAttributeScopeAdvisorySwitch( 00587 RTI::Exception* except = NULL) {} 00588 00589 virtual void disableAttributeScopeAdvisorySwitch( 00590 RTI::Exception* except = NULL) {} 00591 00592 virtual void enableInteractionRelevanceAdvisorySwitch( 00593 RTI::Exception* except = NULL) {} 00594 00595 virtual void disableInteractionRelevanceAdvisorySwitch( 00596 RTI::Exception* except = NULL) {} 00597 00598 virtual void tick ( 00599 RTI::Boolean result, 00600 RTI::Exception* except = NULL) {} 00601 00602 virtual void tick ( 00603 RTI::TickTime minimum, 00604 RTI::TickTime maximum, 00605 RTI::Boolean result, 00606 RTI::Exception* except = NULL) {} 00607 00608 virtual void getRegionToken( 00609 RTI::Region *, 00610 RTI::RegionToken& token, 00611 RTI::Exception* except = NULL) {} 00612 00613 virtual void getRegion( 00614 RTI::RegionToken, 00615 RTI::Region* region, 00616 RTI::Exception* except = NULL) {} 00617 }; 00618 00619 inline DtRtiAmbassadorObserver* DtRtiAmbassadorObserver::next() const 00620 { 00621 return (DtRtiAmbassadorObserver*) MAKRti::DtListedObj::next(); 00622 } 00623 00624 inline DtRtiAmbassadorObserver* DtRtiAmbassadorObserver::prev() const 00625 { 00626 return (DtRtiAmbassadorObserver*) MAKRti::DtListedObj::prev(); 00627 } 00628 00629 inline DtRtiAmbassadorObserver* DtRtiAmbassadorObserver::wrapNext() const 00630 { 00631 return (DtRtiAmbassadorObserver*) MAKRti::DtListedObj::wrapNext(); 00632 } 00633 00634 inline DtRtiAmbassadorObserver* DtRtiAmbassadorObserver::wrapPrev() const 00635 { 00636 return (DtRtiAmbassadorObserver*) MAKRti::DtListedObj::wrapPrev(); 00637 } 00638 00639 #endif //! !DtIFSPEC1516 00640 #endif //! DtRtiAmbassadorObserver_H_