MAK RTIspy API Documentation for HLA 1516
hlaBounceFedAmb1516.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2004 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: rtiSimpleFedAmb1516.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef HlaBounceFederateAmbassador_H_
00010 #define HlaBounceFederateAmbassador_H_
00011 
00012 #pragma warning(disable: 4251)
00013 #pragma warning(disable: 4786)
00014 #pragma warning(disable: 4290)
00015 
00016 #include <RTI/RTI1516.h>
00017 #include <RTI/NullFederateAmbassador.h>
00018 #include <string>
00019 #include <map>
00020 
00021 class BallController1516;
00022 
00023 class HlaBounceFederateAmbassador : public rti1516::NullFederateAmbassador
00024 {
00025 public:
00026 
00027    HlaBounceFederateAmbassador(BallController1516* ballController);
00028 
00029    virtual ~HlaBounceFederateAmbassador() 
00030      throw ();
00031 
00032    virtual void objectInstanceNameReservationSucceeded(
00033       std::wstring const& theObjectInstanceName)
00034       throw (rti1516::UnknownName,
00035              rti1516::FederateInternalError);
00036 
00037    virtual void objectInstanceNameReservationFailed(
00038       std::wstring const& theObjectInstanceName)
00039       throw (rti1516::UnknownName,
00040              rti1516::FederateInternalError);
00041 
00042    virtual void discoverObjectInstance(
00043       rti1516::ObjectInstanceHandle theObject,
00044       rti1516::ObjectClassHandle theObjectClass,
00045       std::wstring const & theObjectInstanceName)
00046       throw (rti1516::CouldNotDiscover,
00047              rti1516::ObjectClassNotKnown,
00048              rti1516::FederateInternalError);
00049 
00050    virtual void reflectAttributeValues(
00051       rti1516::ObjectInstanceHandle theObject,
00052       rti1516::AttributeHandleValueMap const & theAttributeValues,
00053       rti1516::VariableLengthData const & theUserSuppliedTag,
00054       rti1516::OrderType sentOrder,
00055       rti1516::TransportationType theType)
00056       throw (rti1516::ObjectInstanceNotKnown,
00057              rti1516::AttributeNotRecognized,
00058              rti1516::AttributeNotSubscribed,
00059              rti1516::FederateInternalError);
00060 
00061    virtual void reflectAttributeValues(
00062       rti1516::ObjectInstanceHandle theObject,
00063       rti1516::AttributeHandleValueMap const & theAttributeValues,
00064       rti1516::VariableLengthData const & theUserSuppliedTag,
00065       rti1516::OrderType sentOrder,
00066       rti1516::TransportationType theType,
00067       rti1516::RegionHandleSet const & theSentRegionHandleSet)
00068       throw (rti1516::ObjectInstanceNotKnown,
00069              rti1516::AttributeNotRecognized,
00070              rti1516::AttributeNotSubscribed,
00071              rti1516::FederateInternalError);
00072 
00073    virtual void reflectAttributeValues(
00074       rti1516::ObjectInstanceHandle theObject,
00075       rti1516::AttributeHandleValueMap const & theAttributeValues,
00076       rti1516::VariableLengthData const & theUserSuppliedTag,
00077       rti1516::OrderType sentOrder,
00078       rti1516::TransportationType theType,
00079       rti1516::LogicalTime const & theTime,
00080       rti1516::OrderType receivedOrder)
00081       throw (rti1516::ObjectInstanceNotKnown,
00082              rti1516::AttributeNotRecognized,
00083              rti1516::AttributeNotSubscribed,
00084              rti1516::FederateInternalError);
00085   
00086    virtual void reflectAttributeValues(
00087       rti1516::ObjectInstanceHandle theObject,
00088       rti1516::AttributeHandleValueMap const & theAttributeValues,
00089       rti1516::VariableLengthData const & theUserSuppliedTag,
00090       rti1516::OrderType sentOrder,
00091       rti1516::TransportationType theType,
00092       rti1516::LogicalTime const & theTime,
00093       rti1516::OrderType receivedOrder,
00094       rti1516::RegionHandleSet const & theSentRegionHandleSet)
00095       throw (rti1516::ObjectInstanceNotKnown,
00096              rti1516::AttributeNotRecognized,
00097              rti1516::AttributeNotSubscribed,
00098              rti1516::FederateInternalError);
00099 
00100    virtual void reflectAttributeValues(
00101       rti1516::ObjectInstanceHandle theObject,
00102       rti1516::AttributeHandleValueMap const & theAttributeValues,
00103       rti1516::VariableLengthData const & theUserSuppliedTag,
00104       rti1516::OrderType sentOrder,
00105       rti1516::TransportationType theType,
00106       rti1516::LogicalTime const & theTime,
00107       rti1516::OrderType receivedOrder,
00108       rti1516::MessageRetractionHandle theHandle)
00109       throw (rti1516::ObjectInstanceNotKnown,
00110              rti1516::AttributeNotRecognized,
00111              rti1516::AttributeNotSubscribed,
00112              rti1516::InvalidLogicalTime,
00113              rti1516::FederateInternalError);
00114 
00115    virtual void reflectAttributeValues(
00116       rti1516::ObjectInstanceHandle theObject,
00117       rti1516::AttributeHandleValueMap const & theAttributeValues,
00118       rti1516::VariableLengthData const & theUserSuppliedTag,
00119       rti1516::OrderType sentOrder,
00120       rti1516::TransportationType theType,
00121       rti1516::LogicalTime const & theTime,
00122       rti1516::OrderType receivedOrder,
00123       rti1516::MessageRetractionHandle theHandle,
00124       rti1516::RegionHandleSet const & theSentRegionHandleSet)
00125       throw (rti1516::ObjectInstanceNotKnown,
00126              rti1516::AttributeNotRecognized,
00127              rti1516::AttributeNotSubscribed,
00128              rti1516::InvalidLogicalTime,
00129              rti1516::FederateInternalError);
00130 
00131    virtual void receiveInteraction(
00132       rti1516::InteractionClassHandle theInteraction,
00133       rti1516::ParameterHandleValueMap const & theParameterValues,
00134       rti1516::VariableLengthData const & theUserSuppliedTag,
00135       rti1516::OrderType sentOrder,
00136       rti1516::TransportationType theType)
00137       throw (rti1516::InteractionClassNotRecognized,
00138              rti1516::InteractionParameterNotRecognized,
00139              rti1516::InteractionClassNotSubscribed,
00140              rti1516::FederateInternalError);
00141 
00142    virtual void receiveInteraction(
00143       rti1516::InteractionClassHandle theInteraction,
00144       rti1516::ParameterHandleValueMap const & theParameterValues,
00145       rti1516::VariableLengthData const & theUserSuppliedTag,
00146       rti1516::OrderType sentOrder,
00147       rti1516::TransportationType theType,
00148       rti1516::RegionHandleSet const & theSentRegionHandleSet)
00149       throw (rti1516::InteractionClassNotRecognized,
00150              rti1516::InteractionParameterNotRecognized,
00151              rti1516::InteractionClassNotSubscribed,
00152              rti1516::FederateInternalError);
00153 
00154    virtual void receiveInteraction(
00155       rti1516::InteractionClassHandle theInteraction,
00156       rti1516::ParameterHandleValueMap const & theParameterValues,
00157       rti1516::VariableLengthData const & theUserSuppliedTag,
00158       rti1516::OrderType sentOrder,
00159       rti1516::TransportationType theType,
00160       rti1516::LogicalTime const & theTime,
00161       rti1516::OrderType receivedOrder)
00162       throw (rti1516::InteractionClassNotRecognized,
00163              rti1516::InteractionParameterNotRecognized,
00164              rti1516::InteractionClassNotSubscribed,
00165              rti1516::FederateInternalError);
00166 
00167    virtual void receiveInteraction(
00168       rti1516::InteractionClassHandle theInteraction,
00169       rti1516::ParameterHandleValueMap const & theParameterValues,
00170       rti1516::VariableLengthData const & theUserSuppliedTag,
00171       rti1516::OrderType sentOrder,
00172       rti1516::TransportationType theType,
00173       rti1516::LogicalTime const & theTime,
00174       rti1516::OrderType receivedOrder,
00175       rti1516::RegionHandleSet const & theSentRegionHandleSet)
00176       throw (rti1516::InteractionClassNotRecognized,
00177              rti1516::InteractionParameterNotRecognized,
00178              rti1516::InteractionClassNotSubscribed,
00179              rti1516::FederateInternalError);
00180 
00181    virtual void receiveInteraction(
00182       rti1516::InteractionClassHandle theInteraction,
00183       rti1516::ParameterHandleValueMap const & theParameterValues,
00184       rti1516::VariableLengthData const & theUserSuppliedTag,
00185       rti1516::OrderType sentOrder,
00186       rti1516::TransportationType theType,
00187       rti1516::LogicalTime const & theTime,
00188       rti1516::OrderType receivedOrder,
00189       rti1516::MessageRetractionHandle theHandle)
00190       throw (rti1516::InteractionClassNotRecognized,
00191              rti1516::InteractionParameterNotRecognized,
00192              rti1516::InteractionClassNotSubscribed,
00193              rti1516::InvalidLogicalTime,
00194              rti1516::FederateInternalError);
00195 
00196    virtual void receiveInteraction(
00197       rti1516::InteractionClassHandle theInteraction,
00198       rti1516::ParameterHandleValueMap const & theParameterValues,
00199       rti1516::VariableLengthData const & theUserSuppliedTag,
00200       rti1516::OrderType sentOrder,
00201       rti1516::TransportationType theType,
00202       rti1516::LogicalTime const & theTime,
00203       rti1516::OrderType receivedOrder,
00204       rti1516::MessageRetractionHandle theHandle,
00205       rti1516::RegionHandleSet const & theSentRegionHandleSet)
00206       throw (rti1516::InteractionClassNotRecognized,
00207              rti1516::InteractionParameterNotRecognized,
00208              rti1516::InteractionClassNotSubscribed,
00209              rti1516::InvalidLogicalTime,
00210              rti1516::FederateInternalError);
00211 
00212    virtual void removeObjectInstance(
00213       rti1516::ObjectInstanceHandle theObject,
00214       rti1516::VariableLengthData const & theUserSuppliedTag,
00215       rti1516::OrderType sentOrder)
00216       throw (rti1516::ObjectInstanceNotKnown,
00217              rti1516::FederateInternalError);
00218 
00219    virtual void removeObjectInstance(
00220       rti1516::ObjectInstanceHandle theObject,
00221       rti1516::VariableLengthData const & theUserSuppliedTag,
00222       rti1516::OrderType sentOrder,
00223       rti1516::LogicalTime const & theTime,
00224       rti1516::OrderType receivedOrder)
00225       throw (rti1516::ObjectInstanceNotKnown,
00226              rti1516::FederateInternalError);
00227 
00228    virtual void removeObjectInstance(
00229       rti1516::ObjectInstanceHandle theObject,
00230       rti1516::VariableLengthData const & theUserSuppliedTag,
00231       rti1516::OrderType sentOrder,
00232       rti1516::LogicalTime const & theTime,
00233       rti1516::OrderType receivedOrder,
00234       rti1516::MessageRetractionHandle theHandle)
00235       throw (rti1516::ObjectInstanceNotKnown,
00236              rti1516::InvalidLogicalTime,
00237              rti1516::FederateInternalError);
00238 
00239    virtual void attributesInScope(
00240       rti1516::ObjectInstanceHandle theObject,
00241       rti1516::AttributeHandleSet const & theAttributes)
00242       throw (rti1516::ObjectInstanceNotKnown,
00243              rti1516::AttributeNotRecognized,
00244              rti1516::AttributeNotSubscribed,
00245              rti1516::FederateInternalError);
00246 
00247    virtual void attributesOutOfScope(
00248       rti1516::ObjectInstanceHandle theObject,
00249       rti1516::AttributeHandleSet const & theAttributes)
00250       throw (rti1516::ObjectInstanceNotKnown,
00251              rti1516::AttributeNotRecognized,
00252              rti1516::AttributeNotSubscribed,
00253              rti1516::FederateInternalError);
00254 
00255    virtual void requestAttributeOwnershipRelease(
00256       rti1516::ObjectInstanceHandle theObject,
00257       rti1516::AttributeHandleSet const & candidateAttributes,
00258       rti1516::VariableLengthData const & theUserSuppliedTag)
00259       throw (rti1516::ObjectInstanceNotKnown,
00260              rti1516::AttributeNotRecognized,
00261              rti1516::AttributeNotOwned,
00262              rti1516::FederateInternalError);
00263    
00264    virtual void attributeOwnershipAcquisitionNotification(
00265       rti1516::ObjectInstanceHandle theObject,
00266       rti1516::AttributeHandleSet const & securedAttributes,
00267       rti1516::VariableLengthData const & theUserSuppliedTag)
00268       throw (rti1516::ObjectInstanceNotKnown,
00269              rti1516::AttributeNotRecognized,
00270              rti1516::AttributeAcquisitionWasNotRequested,
00271              rti1516::AttributeAlreadyOwned,
00272              rti1516::AttributeNotPublished,
00273              rti1516::FederateInternalError);
00274 
00275    virtual void requestAttributeOwnershipAssumption(
00276       rti1516::ObjectInstanceHandle theObject,
00277       rti1516::AttributeHandleSet const & offeredAttributes,
00278       rti1516::VariableLengthData const & theUserSuppliedTag)
00279       throw (rti1516::ObjectInstanceNotKnown,
00280          rti1516::AttributeNotRecognized,
00281          rti1516::AttributeAlreadyOwned,
00282          rti1516::AttributeNotPublished,
00283          rti1516::FederateInternalError);
00284 
00285    virtual void requestDivestitureConfirmation(
00286       rti1516::ObjectInstanceHandle theObject,
00287       rti1516::AttributeHandleSet const & releasedAttributes)
00288       throw (rti1516::ObjectInstanceNotKnown,
00289          rti1516::AttributeNotRecognized,
00290          rti1516::AttributeNotOwned,
00291          rti1516::AttributeDivestitureWasNotRequested,
00292          rti1516::FederateInternalError);
00293 
00294 protected:
00295 
00296    BallController1516* myBallController;
00297 
00298 };
00299 
00300 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)