MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rtiSimpleFedAmb13.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma warning(disable: 4786)
7 #pragma warning(disable: 4290)
8 
9 #include "NullFederateAmbassador.hh"
10 #include <map>
11 #include <string>
12 
14 {
15 public:
19  std::string mySaveLabel;
20 
27  std::string myRestoreLabel;
28  RTI::FederateHandle myRestoreFederateHandle;
30 
31  std::map<RTI::ObjectClassHandle, std::string> objectClassMap;
32  std::map<RTI::ObjectHandle, std::string> objectInstanceMap;
33  std::map<RTI::InteractionClassHandle, std::string> interactionClassMap;
34 };
35 
36 
38 {
39 public:
40 
42 
43  virtual ~MyFederateAmbassador()
44  throw (RTI::FederateInternalError);
45 
46 
48  // Federation Management Services //
50 
51  virtual void initiateFederateSave (
52  const char *label) // supplied C4
53  throw (
54  RTI::UnableToPerformSave,
55  RTI::FederateInternalError);
56 
57  virtual void federationSaved ()
58  throw (
59  RTI::FederateInternalError);
60 
61  virtual void federationNotSaved ()
62  throw (
63  RTI::FederateInternalError);
64 
66  const char *label) // supplied C4
67  throw (
68  RTI::FederateInternalError);
69 
70  virtual void requestFederationRestoreFailed (
71  const char *label,
72  const char *reason) // supplied C4
73  throw (
74  RTI::FederateInternalError);
75 
76  virtual void federationRestoreBegun ()
77  throw (
78  RTI::FederateInternalError);
79 
80  virtual void initiateFederateRestore (
81  const char *label, // supplied C4
82  RTI::FederateHandle handle) // supplied C1
83  throw (
84  RTI::SpecifiedSaveLabelDoesNotExist,
85  RTI::CouldNotRestore,
86  RTI::FederateInternalError);
87 
88  virtual void federationRestored ()
89  throw (
90  RTI::FederateInternalError);
91 
92  virtual void federationNotRestored ()
93  throw (
94  RTI::FederateInternalError);
95 
96 
98  // Object Management Services //
100 
101  virtual void discoverObjectInstance (
102  RTI::ObjectHandle theObject, // supplied C1
103  RTI::ObjectClassHandle theObjectClass, // supplied C1
104  const char* theObjectName) // supplied C4
105  throw (
106  RTI::CouldNotDiscover,
107  RTI::ObjectClassNotKnown,
108  RTI::FederateInternalError);
109 
110  virtual void reflectAttributeValues (
111  RTI::ObjectHandle theObject, // supplied C1
112  const RTI::AttributeHandleValuePairSet& theAttributes, // supplied C4
113  const RTI::FedTime& theTime, // supplied C1
114  const char *theTag, // supplied C4
115  RTI::EventRetractionHandle theHandle) // supplied C1
116  throw (
117  RTI::ObjectNotKnown,
118  RTI::AttributeNotKnown,
119  RTI::FederateOwnsAttributes,
120  RTI::InvalidFederationTime,
121  RTI::FederateInternalError);
122 
123  virtual void reflectAttributeValues (
124  RTI::ObjectHandle theObject, // supplied C1
125  const RTI::AttributeHandleValuePairSet& theAttributes, // supplied C4
126  const char *theTag) // supplied C4
127  throw (
128  RTI::ObjectNotKnown,
129  RTI::AttributeNotKnown,
130  RTI::FederateOwnsAttributes,
131  RTI::FederateInternalError);
132 
133  // 4.6
134  virtual void receiveInteraction (
135  RTI::InteractionClassHandle theInteraction, // supplied C1
136  const RTI::ParameterHandleValuePairSet& theParameters, // supplied C4
137  const RTI::FedTime& theTime, // supplied C4
138  const char *theTag, // supplied C4
139  RTI::EventRetractionHandle theHandle) // supplied C1
140  throw (
141  RTI::InteractionClassNotKnown,
142  RTI::InteractionParameterNotKnown,
143  RTI::InvalidFederationTime,
144  RTI::FederateInternalError);
145 
146  virtual void receiveInteraction (
147  RTI::InteractionClassHandle theInteraction, // supplied C1
148  const RTI::ParameterHandleValuePairSet& theParameters, // supplied C4
149  const char *theTag) // supplied C4
150  throw (
151  RTI::InteractionClassNotKnown,
152  RTI::InteractionParameterNotKnown,
153  RTI::FederateInternalError);
154 
155  virtual void removeObjectInstance (
156  RTI::ObjectHandle theObject, // supplied C1
157  const RTI::FedTime& theTime, // supplied C4
158  const char *theTag, // supplied C4
159  RTI::EventRetractionHandle theHandle) // supplied C1
160  throw (
161  RTI::ObjectNotKnown,
162  RTI::InvalidFederationTime,
163  RTI::FederateInternalError);
164 
165  virtual void removeObjectInstance (
166  RTI::ObjectHandle theObject, // supplied C1
167  const char *theTag) // supplied C4
168  throw (
169  RTI::ObjectNotKnown,
170  RTI::FederateInternalError);
171 
172 
173 public:
175 };
176 

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)