MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fedAmbCallbackQueue13.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: fedAmbCallbackQueue13.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtFedAmbCallbackQueue13_h
10 #define DtDtFedAmbCallbackQueue13_h
11 #ifdef DtIFSPEC13
12 
15 
16 #include <queue>
17 #include "fedAmbWrap.h"
18 #include "rtiMsg.h"
19 
20 typedef std::queue<DtRtiMsg*> DtFedAmbMsgQueue;
21 
22 class DtFederateMgr;
23 
27 class DT_DLL_LRC DtCallbackQueue : public DtFedAmbWrapper
28 {
29 public:
30 
32  DtCallbackQueue(DtFederateMgr* fedMgr = 0);
33 
35  virtual ~DtCallbackQueue() throw (RTI::FederateInternalError);
36 
37 private:
39  DtCallbackQueue(DtCallbackQueue const& orig);
41  DtCallbackQueue& operator = (DtCallbackQueue const& orig);
42 
43 public:
44 
46  virtual void enableQueue();
47 
49  virtual void disableQueue();
50 
52  MAKRti::DtString const& name() const;
53 
55  virtual DtRtiMsg* popMessage();
56 
60 
62  const char *label) throw (RTI::FederateInternalError);
63 
65  const char *label) throw (RTI::FederateInternalError);
66 
67  virtual void announceSynchronizationPoint (
68  const char *label,
69  const char *tag) throw (RTI::FederateInternalError);
70 
71  virtual void federationSynchronized (
72  const char *label) throw (RTI::FederateInternalError);
73 
74  virtual void initiateFederateSave (
75  const char *label) throw (RTI::FederateInternalError);
76 
77  virtual void federationSaved () throw (RTI::FederateInternalError);
78 
79  virtual void federationNotSaved () throw (RTI::FederateInternalError);
80 
82  const char *label) throw (RTI::FederateInternalError);
83 
84  virtual void requestFederationRestoreFailed (
85  const char *label,
86  const char *reason) throw (RTI::FederateInternalError);
87 
88  virtual void federationRestoreBegun () throw (RTI::FederateInternalError);
89 
90  virtual void initiateFederateRestore (
91  const char *label,
92  RTI::FederateHandle handle) throw (RTI::FederateInternalError);
93 
94  virtual void federationRestored () throw (RTI::FederateInternalError);
95 
96  virtual void federationNotRestored () throw (RTI::FederateInternalError);
97 
101 
102  virtual void startRegistrationForObjectClass (
103  RTI::ObjectClassHandle theClass) throw (RTI::FederateInternalError);
104 
105  virtual void stopRegistrationForObjectClass (
106  RTI::ObjectClassHandle theClass) throw (RTI::FederateInternalError);
107 
108  virtual void turnInteractionsOn (
109  RTI::InteractionClassHandle theHandle) throw (RTI::FederateInternalError);
110 
111  virtual void turnInteractionsOff (
112  RTI::InteractionClassHandle theHandle) throw (RTI::FederateInternalError);
113 
117 
118  virtual void discoverObjectInstance (
119  RTI::ObjectHandle theObject,
120  RTI::ObjectClassHandle theObjectClass,
121  const char* theObjectName) throw (RTI::FederateInternalError);
122 
123  virtual void reflectAttributeValues (
124  RTI::ObjectHandle theObject,
125  const RTI::AttributeHandleValuePairSet& theAttributes,
126  const RTI::FedTime& theTime,
127  const char *theTag,
128  RTI::EventRetractionHandle theHandle) throw (RTI::FederateInternalError);
129 
130  virtual void reflectAttributeValues (
131  RTI::ObjectHandle theObject,
132  const RTI::AttributeHandleValuePairSet& theAttributes,
133  const char *theTag) throw (RTI::FederateInternalError);
134 
136  virtual void receiveInteraction (
137  RTI::InteractionClassHandle theInteraction,
138  const RTI::ParameterHandleValuePairSet& theParameters,
139  const RTI::FedTime& theTime,
140  const char *theTag,
141  RTI::EventRetractionHandle theHandle) throw (RTI::FederateInternalError);
142 
143  virtual void receiveInteraction (
144  RTI::InteractionClassHandle theInteraction,
145  const RTI::ParameterHandleValuePairSet& theParameters,
146  const char *theTag) throw (RTI::FederateInternalError);
147 
148  virtual void removeObjectInstance (
149  RTI::ObjectHandle theObject,
150  const RTI::FedTime& theTime,
151  const char *theTag,
152  RTI::EventRetractionHandle theHandle) throw (RTI::FederateInternalError);
153 
154  virtual void removeObjectInstance (
155  RTI::ObjectHandle theObject,
156  const char *theTag) throw (RTI::FederateInternalError);
157 
158  virtual void attributesInScope (
159  RTI::ObjectHandle theObject,
160  const RTI::AttributeHandleSet& theAttributes) throw (RTI::FederateInternalError);
161 
162  virtual void attributesOutOfScope (
163  RTI::ObjectHandle theObject,
164  const RTI::AttributeHandleSet& theAttributes) throw (RTI::FederateInternalError);
165 
166  virtual void provideAttributeValueUpdate (
167  RTI::ObjectHandle theObject,
168  const RTI::AttributeHandleSet& theAttributes) throw (RTI::FederateInternalError);
169 
170  virtual void turnUpdatesOnForObjectInstance (
171  RTI::ObjectHandle theObject,
172  const RTI::AttributeHandleSet& theAttributes) throw (RTI::FederateInternalError);
173 
174  virtual void turnUpdatesOffForObjectInstance (
175  RTI::ObjectHandle theObject,
176  const RTI::AttributeHandleSet& theAttributes) throw (RTI::FederateInternalError);
177 
181 
183  RTI::ObjectHandle theObject,
184  const RTI::AttributeHandleSet& offeredAttributes,
185  const char *theTag) throw (RTI::FederateInternalError);
186 
188  RTI::ObjectHandle theObject,
189  const RTI::AttributeHandleSet& releasedAttributes) throw (RTI::FederateInternalError);
190 
192  RTI::ObjectHandle theObject,
193  const RTI::AttributeHandleSet& securedAttributes) throw (RTI::FederateInternalError);
194 
195  virtual void attributeOwnershipUnavailable (
196  RTI::ObjectHandle theObject,
197  const RTI::AttributeHandleSet& theAttributes) throw (RTI::FederateInternalError);
198 
199  virtual void requestAttributeOwnershipRelease (
200  RTI::ObjectHandle theObject,
201  const RTI::AttributeHandleSet& candidateAttributes,
202  const char *theTag) throw (RTI::FederateInternalError);
203 
205  RTI::ObjectHandle theObject,
206  const RTI::AttributeHandleSet& theAttributes) throw (RTI::FederateInternalError);
207 
208  virtual void informAttributeOwnership (
209  RTI::ObjectHandle theObject,
210  RTI::AttributeHandle theAttribute,
211  RTI::FederateHandle theOwner) throw (RTI::FederateInternalError);
212 
213  virtual void attributeIsNotOwned (
214  RTI::ObjectHandle theObject,
215  RTI::AttributeHandle theAttribute) throw (RTI::FederateInternalError);
216 
217  virtual void attributeOwnedByRTI (
218  RTI::ObjectHandle theObject,
219  RTI::AttributeHandle theAttribute) throw (RTI::FederateInternalError);
220 
224 
225  virtual void timeRegulationEnabled (
226  const RTI::FedTime& theFederateTime) throw (RTI::FederateInternalError);
227 
228  virtual void timeConstrainedEnabled (
229  const RTI::FedTime& theFederateTime) throw (RTI::FederateInternalError);
230 
231  virtual void timeAdvanceGrant (
232  const RTI::FedTime& theTime) throw (RTI::FederateInternalError);
233 
234  virtual void requestRetraction (
235  RTI::EventRetractionHandle theHandle) throw (RTI::FederateInternalError);
236 
237 protected:
238 
240  virtual std::auto_ptr<RTI::FedTime> copyTime(RTI::FedTime const& timeValue);
241 
242 protected:
243 
244  DtFederateMgr* myFedMgr;
245  DtFedAmbMsgQueue myFedAmbQueue;
246  bool myQueueCallback;
247  const MAKRti::DtString myName;
248 
249 };
250 
251 #endif
252 #endif

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)