MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simpleDDMFedAmb13.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: simpleDDMFedAmb13.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
9 // The Federate Ambassador discovers and remove objects and
10 // processes object reflects and recieve interactions. It also notes
11 // attribute scope advisories
12 
13 #ifndef MyFederateAmbassador_H_
14 #define MyFederateAmbassador_H_
15 
16 #include "NullFederateAmbassador.hh"
17 
18 #include <map>
19 #include <string>
20 
21 
22 // Data exchanged between federate and Federate Ambassador
23 class DtTalkAmbData
24 {
25 public:
26  std::map<RTI::ObjectClassHandle, std::string> objectClassMap;
27  std::map<RTI::ObjectHandle, std::string> objectInstanceMap;
28  std::map<RTI::InteractionClassHandle, std::string> interactionClassMap;
29  RTI::AttributeHandle myPositionHandle;
30  int position;
33  int lowerSend;
34  int upperSend;
37 
38 };
39 
40 class MyFederateAmbassador : public NullFederateAmbassador
41 {
42 public:
43 
45 
46  virtual ~MyFederateAmbassador()
47  throw (RTI::FederateInternalError);
48 
49 
51  // Object Management Services //
53 
54  virtual void discoverObjectInstance (
55  RTI::ObjectHandle theObject, // supplied C1
56  RTI::ObjectClassHandle theObjectClass, // supplied C1
57  const char* theObjectName) // supplied C4
58  throw (
59  RTI::CouldNotDiscover,
60  RTI::ObjectClassNotKnown,
61  RTI::FederateInternalError);
62 
63  virtual void reflectAttributeValues (
64  RTI::ObjectHandle theObject, // supplied C1
65  const RTI::AttributeHandleValuePairSet& theAttributes, // supplied C4
66  const RTI::FedTime& theTime, // supplied C1
67  const char *theTag, // supplied C4
68  RTI::EventRetractionHandle theHandle) // supplied C1
69  throw (
70  RTI::ObjectNotKnown,
71  RTI::AttributeNotKnown,
72  RTI::FederateOwnsAttributes,
73  RTI::InvalidFederationTime,
74  RTI::FederateInternalError);
75 
76  virtual void reflectAttributeValues (
77  RTI::ObjectHandle theObject, // supplied C1
78  const RTI::AttributeHandleValuePairSet& theAttributes, // supplied C4
79  const char *theTag) // supplied C4
80  throw (
81  RTI::ObjectNotKnown,
82  RTI::AttributeNotKnown,
83  RTI::FederateOwnsAttributes,
84  RTI::FederateInternalError);
85 
86  // 4.6
87  virtual void receiveInteraction (
88  RTI::InteractionClassHandle theInteraction, // supplied C1
89  const RTI::ParameterHandleValuePairSet& theParameters, // supplied C4
90  const RTI::FedTime& theTime, // supplied C4
91  const char *theTag, // supplied C4
92  RTI::EventRetractionHandle theHandle) // supplied C1
93  throw (
94  RTI::InteractionClassNotKnown,
95  RTI::InteractionParameterNotKnown,
96  RTI::InvalidFederationTime,
97  RTI::FederateInternalError);
98 
99  virtual void receiveInteraction (
100  RTI::InteractionClassHandle theInteraction, // supplied C1
101  const RTI::ParameterHandleValuePairSet& theParameters, // supplied C4
102  const char *theTag) // supplied C4
103  throw (
104  RTI::InteractionClassNotKnown,
105  RTI::InteractionParameterNotKnown,
106  RTI::FederateInternalError);
107 
108  virtual void removeObjectInstance (
109  RTI::ObjectHandle theObject, // supplied C1
110  const RTI::FedTime& theTime, // supplied C4
111  const char *theTag, // supplied C4
112  RTI::EventRetractionHandle theHandle) // supplied C1
113  throw (
114  RTI::ObjectNotKnown,
115  RTI::InvalidFederationTime,
116  RTI::FederateInternalError);
117 
118  virtual void removeObjectInstance (
119  RTI::ObjectHandle theObject, // supplied C1
120  const char *theTag) // supplied C4
121  throw (
122  RTI::ObjectNotKnown,
123  RTI::FederateInternalError);
124 
125  virtual void attributesInScope (
126  RTI::ObjectHandle theObject, // supplied C1
127  const RTI::AttributeHandleSet& theAttributes) // supplied C4
128  throw (
129  RTI::ObjectNotKnown,
130  RTI::AttributeNotKnown,
131  RTI::FederateInternalError) ;
132 
133  virtual void attributesOutOfScope (
134  RTI::ObjectHandle theObject, // supplied C1
135  const RTI::AttributeHandleSet& theAttributes) // supplied C4
136  throw (
137  RTI::ObjectNotKnown,
138  RTI::AttributeNotKnown,
139  RTI::FederateInternalError) ;
140 
141 
142 public:
144 };
145 
146 
147 
148 #endif
bool enableScopeAdvisories
Definition: simpleDDMFedAmb13.h:35
std::map< RTI::ObjectHandle, std::string > objectInstanceMap
Definition: simpleDDMFedAmb13.h:27
std::map< RTI::InteractionClassHandle, std::string > interactionClassMap
Definition: simpleDDMFedAmb13.h:28
virtual void attributesInScope(RTI::ObjectHandle theObject, const RTI::AttributeHandleSet &theAttributes)
int upperSend
Definition: simpleDDMFedAmb13.h:34
Basic federate ambassador service callback implementation.
Definition: rtiSimpleFedAmb13.h:35
std::set< AttributeHandle > AttributeHandleSet
Definition: Typedefs.h:35
virtual void receiveInteraction(RTI::InteractionClassHandle theInteraction, const RTI::ParameterHandleValuePairSet &theParameters, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
virtual void removeObjectInstance(RTI::ObjectHandle theObject, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
int lowerListen
Definition: simpleDDMFedAmb13.h:31
virtual void reflectAttributeValues(RTI::ObjectHandle theObject, const RTI::AttributeHandleValuePairSet &theAttributes, const RTI::FedTime &theTime, const char *theTag, RTI::EventRetractionHandle theHandle)
int position
Definition: simpleDDMFedAmb13.h:30
RTI::AttributeHandle myPositionHandle
Definition: simpleDDMFedAmb13.h:29
DtSimpleData & myData
Definition: rtiSimpleFedAmb13.h:98
virtual void discoverObjectInstance(RTI::ObjectHandle theObject, RTI::ObjectClassHandle theObjectClass, const char *theObjectName)
int lowerSend
Definition: simpleDDMFedAmb13.h:33
Definition: rtiSimpleFedAmb13dlc.h:15
virtual void attributesOutOfScope(RTI::ObjectHandle theObject, const RTI::AttributeHandleSet &theAttributes)
bool isPublisher
Definition: simpleDDMFedAmb13.h:36
int upperListen
Definition: simpleDDMFedAmb13.h:32
virtual ~MyFederateAmbassador()
MyFederateAmbassador(DtSimpleData &data)
std::map< RTI::ObjectClassHandle, std::string > objectClassMap
Definition: simpleDDMFedAmb13.h:26

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)