MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rtiSimpleFedAmb13dlc.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma warning(disable: 4786)
7 #pragma warning(disable: 4290)
8 
10 #include <map>
11 #include <string>
12 
13 using namespace rti13;
14 
15 class DtTalkAmbData
16 {
17 public:
18  bool myReceivedInitiateFederateSave;
19  bool myReceivedFederationSaved;
20  bool myReceivedFederationNotSaved;
21  std::string mySaveLabel;
22 
23  bool myReceivedRequestFederationRestoreSucceeded;
24  bool myReceivedRequestFederationRestoreFailed;
25  bool myReceivedFederationRestoreBegun;
26  bool myReceivedInitiateFederateRestore;
27  bool myReceivedFederationRestored;
28  bool myReceivedFederationNotRestored;
29  std::string myRestoreLabel;
31  std::string myRestoreFailureReason;
32 
33  std::map<ObjectClassHandle, std::string> objectClassMap;
34  std::map<ObjectHandle, std::string> objectInstanceMap;
35  std::map<InteractionClassHandle, std::string> interactionClassMap;
36 };
37 
38 
40 {
41 public:
42 
44 
45  virtual ~MyFederateAmbassador()
46  throw (FederateInternalError);
47 
48 
50  // Federation Management Services //
52 
53  virtual void initiateFederateSave (
54  const char *label) // supplied C4
55  throw (
56  UnableToPerformSave,
57  FederateInternalError);
58 
59  virtual void federationSaved ()
60  throw (
61  FederateInternalError);
62 
63  virtual void federationNotSaved ()
64  throw (
65  FederateInternalError);
66 
68  const char *label) // supplied C4
69  throw (
70  FederateInternalError);
71 
72  virtual void requestFederationRestoreFailed (
73  const char *label,
74  const char *reason) // supplied C4
75  throw (
76  FederateInternalError);
77 
78  virtual void federationRestoreBegun ()
79  throw (
80  FederateInternalError);
81 
82  virtual void initiateFederateRestore (
83  const char *label, // supplied C4
84  FederateHandle handle) // supplied C1
85  throw (
86  SpecifiedSaveLabelDoesNotExist,
87  CouldNotRestore,
88  FederateInternalError);
89 
90  virtual void federationRestored ()
91  throw (
92  FederateInternalError);
93 
94  virtual void federationNotRestored ()
95  throw (
96  FederateInternalError);
97 
98 
100  // Object Management Services //
102 
103  virtual void discoverObjectInstance (
104  ObjectHandle theObject, // supplied C1
105  ObjectClassHandle theObjectClass, // supplied C1
106  const char* theObjectName) // supplied C4
107  throw (
108  CouldNotDiscover,
109  ObjectClassNotKnown,
110  FederateInternalError);
111 
112  virtual void reflectAttributeValues (
113  ObjectHandle theObject, // supplied C1
114  const AttributeHandleValuePairSet& theAttributes, // supplied C4
115  const FedTime& theTime, // supplied C1
116  const char *theTag, // supplied C4
117  EventRetractionHandle theHandle) // supplied C1
118  throw (
119  ObjectNotKnown,
120  AttributeNotKnown,
121  FederateOwnsAttributes,
122  InvalidFederationTime,
123  FederateInternalError);
124 
125  virtual void reflectAttributeValues (
126  ObjectHandle theObject, // supplied C1
127  const AttributeHandleValuePairSet& theAttributes, // supplied C4
128  const char *theTag) // supplied C4
129  throw (
130  ObjectNotKnown,
131  AttributeNotKnown,
132  FederateOwnsAttributes,
133  FederateInternalError);
134 
135  // 4.6
136  virtual void receiveInteraction (
137  InteractionClassHandle theInteraction, // supplied C1
138  const ParameterHandleValuePairSet& theParameters, // supplied C4
139  const FedTime& theTime, // supplied C4
140  const char *theTag, // supplied C4
141  EventRetractionHandle theHandle) // supplied C1
142  throw (
143  InteractionClassNotKnown,
144  InteractionParameterNotKnown,
145  InvalidFederationTime,
146  FederateInternalError);
147 
148  virtual void receiveInteraction (
149  InteractionClassHandle theInteraction, // supplied C1
150  const ParameterHandleValuePairSet& theParameters, // supplied C4
151  const char *theTag) // supplied C4
152  throw (
153  InteractionClassNotKnown,
154  InteractionParameterNotKnown,
155  FederateInternalError);
156 
157  virtual void removeObjectInstance (
158  ObjectHandle theObject, // supplied C1
159  const FedTime& theTime, // supplied C4
160  const char *theTag, // supplied C4
161  EventRetractionHandle theHandle) // supplied C1
162  throw (
163  ObjectNotKnown,
164  InvalidFederationTime,
165  FederateInternalError);
166 
167  virtual void removeObjectInstance (
168  ObjectHandle theObject, // supplied C1
169  const char *theTag) // supplied C4
170  throw (
171  ObjectNotKnown,
172  FederateInternalError);
173 
174 
175 public:
176  DtTalkAmbData & myData;
177 };
178 
Handle ObjectHandle
Definition: RTItypes13.h:116
std::map< ObjectHandle, std::string > objectInstanceMap
Definition: rtiSimpleFedAmb13dlc.h:34
Definition: rtiSimpleFedAmb13.h:37
virtual void initiateFederateRestore(const char *label, FederateHandle handle)=0
4.19
Definition: NullFederateAmbassador13.h:34
ULong InteractionClassHandle
Definition: RTItypes13.h:106
std::map< ObjectClassHandle, std::string > objectClassMap
Definition: rtiSimpleFedAmb13dlc.h:33
virtual void federationNotRestored()=0
Definition: RTItypes13.h:138
virtual void receiveInteraction(InteractionClassHandle theInteraction, const ParameterHandleValuePairSet &theParameters, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.7
virtual void removeObjectInstance(ObjectHandle theObject, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.9
Definition: RTItypes13.h:521
virtual void initiateFederateSave(const char *label)=0
4.12
virtual void requestFederationRestoreFailed(const char *label, const char *reason)=0
supplied C4
virtual void federationNotSaved()=0
std::map< InteractionClassHandle, std::string > interactionClassMap
Definition: rtiSimpleFedAmb13dlc.h:35
virtual void discoverObjectInstance(ObjectHandle theObject, ObjectClassHandle theObjectClass, const char *theObjectName)=0
! Object Management Services //!
virtual void requestFederationRestoreSucceeded(const char *label)=0
4.17
virtual void reflectAttributeValues(ObjectHandle theObject, const AttributeHandleValuePairSet &theAttributes, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.5
Definition: rtiSimpleFedAmb13.h:13
FederateHandle myRestoreFederateHandle
Definition: rtiSimpleFedAmb13dlc.h:30
virtual void federationRestored()=0
4.21
ULong FederateHandle
Definition: RTItypes13.h:120
Definition: RTItypes13.h:452
virtual void federationRestoreBegun()=0
4.18
virtual void federationSaved()=0
4.15
ULong ObjectClassHandle
Definition: RTItypes13.h:104
Definition: RTItypes13.h:304

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)