VR-Link API Documentation for HLA 1.3
federateSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #ifndef federateSR_H_
11 #define federateSR_H_
12 
13 #if DtHLA
14 
15 #include <vlutil/vlMachineTypes.h>
16 #include <vlutil/vlString.h>
17 #include "varDatumRec.h"
18 #include <memory>
19 #include "rtiCompatibility.h"
20 #include "stateRep.h"
21 #include "hExerciseConn.h"
22 
23 
31 {
32 public:
37  {
38  DtFedStateActiveFederate = 1,
39  DtFedStateFederateSaveInProgress = 3,
40  DtFedStateFederateRestoreInProgress = 5
41  };
42 
47  {
48  DtTimeStateTimeGranted = 0,
49  DtTimeStateTimeAdvancing = 1
50  };
51 
52 public:
55 
57  virtual ~DtFederateStateRepository();
58 
61 
64 
66  virtual DtStateRepository* clone(bool copy) const;
67 
69  static DtFederateStateRepository* create();
70 
72  virtual void printData() const;
73 
75  virtual void printDataToStream(std::ostream& stream) const;
76 
78 
79  const RTI::FederateHandle& federateHandle() const;
80  void setFederateHandle(const RTI::FederateHandle& val);
82 
84 
85  const DtString& federateType() const;
86  void setFederateType(const DtString& val);
88 
89 #if DtHLA_1516
90 
91 
92  bool conveyRegionDesignatorSets() const;
93  void setConveyRegionDesignatorSets(bool val);
95 #endif
96 
97 #if DtHLA_1516_EVOLVED
98 
99 
100  const DtString& federateName() const;
101  void setFederateName(const DtString& val);
103 
105 
106  bool conveyProducingFederate() const;
107  void setConveyProducingFederate(bool val);
109 
111 
112  const std::vector<DtString>& fomModuleDesignatorList() const;
113  void setFomModuleDesignatorList(const std::vector<DtString>& modules);
115 
116 
117 #endif
118 
120 
121  const DtString& federateHost() const;
122  void setFederateHost(const DtString& val);
124 
126 
127  const DtString& rtiVersion() const;
128  void setRtiVersion(const DtString& val);
130 
132 
133 
134  const DtString& fedId() const;
135  void setFedId(const DtString& val);
137 
139 
140  bool timeConstrained() const;
141  void setTimeConstrained(bool val);
143 
145 
146  bool timeRegulating() const;
147  void setTimeRegulating(bool val);
149 
151 
152  bool asynchronousDelivery() const;
153  void setAsynchronousDelivery(bool val);
155 
156 #if DtHLA_1516
157 
158 
159  DtFederateState federateState() const;
160  void setFederateState(DtFederateState val);
162 
164 
165  DtTimeState timeManagerState() const;
166  void setTimeManagerState(DtTimeState val);
168 #else
169 
170 
171  const DtString& federateState() const;
172  void setFederateState(const DtString& val);
174 
176 
177  const DtString& timeManagerState() const;
178  void setTimeManagerState(const DtString& val);
180 #endif
181 
183 
184  const DtString& federateTime() const;
185  void setFederateTime(const DtString& val);
187 
189 
190  const DtString& lookahead() const;
191  void setLookahead(const DtString& val);
193 
195 
196 
197 
198  const DtString& lbts() const;
199  void setLbts(const DtString& val);
201 
203 
204 
205 
206  const DtString& minNextEventTime() const;
207  void setMinNextEventTime(const DtString& val);
209 
211 
212 
213 
214  int roLength() const;
215  void setRoLength(int val);
217 
219 
220 
221 
222  int tsoLength() const;
223  void setTsoLength(int val);
225 
227 
228  int reflectionsReceived() const;
229  void setReflectionsReceived(int val);
231 
233 
234  int updatesSent() const;
235  void setUpdatesSent(int val);
237 
239 
240  int interactionsReceived() const;
241  void setInteractionsReceived(int val);
243 
245 
246  int interactionsSent() const;
247  void setInteractionsSent(int val);
249 
251 
252  int objectsOwned() const;
253  void setObjectsOwned(int val);
255 
257 
258  int objectsUpdated() const;
259  void setObjectsUpdated(int val);
261 
263 
264  int objectsReflected() const;
265  void setObjectsReflected(int val);
267 
268 #if DtHLA_1516
269 
270 
271  int objectsDeleted() const;
272  void setObjectsDeleted(int val);
274 
276 
277  int objectsRemoved() const;
278  void setObjectsRemoved(int val);
280 
282 
283  int objectsRegistered() const;
284  void setObjectsRegistered(int val);
286 
288 
289  int objectsDiscovered() const;
290  void setObjectsDiscovered(int val);
292 
294 
295 
296 
297 
298  int timeGrantedTime() const;
299  void setTimeGrantedTime(int val);
301 
303 
304 
305 
306 
307  int timeAdvancingTime() const;
308  void setTimeAdvancingTime(int val);
310 #endif
311 
312 protected:
313  RTI::FederateHandle myFederateHandle;
316 #if DtHLA_1516
317  bool myConveyRegionDesignatorSets;
318 #endif
319 #if DtHLA_1516_EVOLVED
320  DtString myFederateName;
321  bool myConveyProducingFederate;
322  std::vector<DtString> myFomModules;
323 #endif
329 #if DtHLA_1516
330  DtFederateState myFederateState;
331  DtTimeState myTimeManagerState;
332 #else
335 #endif
349 #if DtHLA_1516
350  int myObjectsDeleted;
351  int myObjectsRemoved;
352  int myObjectsRegistered;
353  int myObjectsDiscovered;
354  int myTimeGrantedTime;
355  int myTimeAdvancingTime;
356 #endif
357 };
358 
359 
360 
361 #endif
362 #endif

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)