MAK RTIspy API Documentation for HLA 1.3
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 
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;
30  int position;
33  int lowerSend;
34  int upperSend;
37 
38 };
39 
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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)