VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
federateStateRepository.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 federateStateRepository_H_
11 #define federateStateRepository_H_
12 
13 #if DtHLA
14 
15 #include <vlutil/vlMachineTypes.h>
16 #include <vlutil/vlString.h>
17 #include "variableDatumRecord.h"
18 #include <memory>
19 #include "rtiCompatibility.h"
20 #include "stateRepository.h"
21 #include "exerciseConnHLA.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 
80  DtExerciseConn* exConn() const { return myExConn; }
81  void setExConn(DtExerciseConn* val) { myExConn = val; }
82 
84 
85  const RTI::FederateHandle& federateHandle() const;
86  void setFederateHandle(const RTI::FederateHandle& val);
88 
90 
91  const DtString& federateType() const;
92  void setFederateType(const DtString& val);
94 
95 #if DtHLA_1516
96 
97 
98  bool conveyRegionDesignatorSets() const;
99  void setConveyRegionDesignatorSets(bool val);
101 #endif
102 
103 #if DtHLA_1516_EVOLVED
104 
105 
106  const DtString& federateName() const;
107  void setFederateName(const DtString& val);
109 
111 
112  bool conveyProducingFederate() const;
113  void setConveyProducingFederate(bool val);
115 
117 
118  const std::vector<DtString>& fomModuleDesignatorList() const;
119  void setFomModuleDesignatorList(const std::vector<DtString>& modules);
121 
122 
123 #endif
124 
126 
127  const DtString& federateHost() const;
128  void setFederateHost(const DtString& val);
130 
132 
133  const DtString& rtiVersion() const;
134  void setRtiVersion(const DtString& val);
136 
138 
139 
140  const DtString& fedId() const;
141  void setFedId(const DtString& val);
143 
145 
146  bool timeConstrained() const;
147  void setTimeConstrained(bool val);
149 
151 
152  bool timeRegulating() const;
153  void setTimeRegulating(bool val);
155 
157 
158  bool asynchronousDelivery() const;
159  void setAsynchronousDelivery(bool val);
161 
162 #if DtHLA_1516
163 
164 
165  DtFederateState federateState() const;
166  void setFederateState(DtFederateState val);
168 
170 
171  DtTimeState timeManagerState() const;
172  void setTimeManagerState(DtTimeState val);
174 #else
175 
176 
177  const DtString& federateState() const;
178  void setFederateState(const DtString& val);
180 
182 
183  const DtString& timeManagerState() const;
184  void setTimeManagerState(const DtString& val);
186 #endif
187 
189 
190  const DtString& federateTime() const;
191  void setFederateTime(const DtString& val);
193 
195 
196  const DtString& lookahead() const;
197  void setLookahead(const DtString& val);
199 
201 
202 
203 
204  const DtString& lbts() const;
205  void setLbts(const DtString& val);
207 
209 
210 
211 
212  const DtString& minNextEventTime() const;
213  void setMinNextEventTime(const DtString& val);
215 
217 
218 
219 
220  int roLength() const;
221  void setRoLength(int val);
223 
225 
226 
227 
228  int tsoLength() const;
229  void setTsoLength(int val);
231 
233 
234  int reflectionsReceived() const;
235  void setReflectionsReceived(int val);
237 
239 
240  int updatesSent() const;
241  void setUpdatesSent(int val);
243 
245 
246  int interactionsReceived() const;
247  void setInteractionsReceived(int val);
249 
251 
252  int interactionsSent() const;
253  void setInteractionsSent(int val);
255 
257 
258  int objectsOwned() const;
259  void setObjectsOwned(int val);
261 
263 
264  int objectsUpdated() const;
265  void setObjectsUpdated(int val);
267 
269 
270  int objectsReflected() const;
271  void setObjectsReflected(int val);
273 
274 #if DtHLA_1516
275 
276 
277  int objectsDeleted() const;
278  void setObjectsDeleted(int val);
280 
282 
283  int objectsRemoved() const;
284  void setObjectsRemoved(int val);
286 
288 
289  int objectsRegistered() const;
290  void setObjectsRegistered(int val);
292 
294 
295  int objectsDiscovered() const;
296  void setObjectsDiscovered(int val);
298 
300 
301 
302 
303 
304  int timeGrantedTime() const;
305  void setTimeGrantedTime(int val);
307 
309 
310 
311 
312 
313  int timeAdvancingTime() const;
314  void setTimeAdvancingTime(int val);
316 #endif
317 
318 protected:
319  RTI::FederateHandle myFederateHandle;
322 #if DtHLA_1516
323  bool myConveyRegionDesignatorSets;
324 #endif
325 #if DtHLA_1516_EVOLVED
326  DtString myFederateName;
327  bool myConveyProducingFederate;
328  std::vector<DtString> myFomModules;
329 #endif
335 #if DtHLA_1516
336  DtFederateState myFederateState;
337  DtTimeState myTimeManagerState;
338 #else
341 #endif
355 #if DtHLA_1516
356  int myObjectsDeleted;
357  int myObjectsRemoved;
358  int myObjectsRegistered;
359  int myObjectsDiscovered;
360  int myTimeGrantedTime;
361  int myTimeAdvancingTime;
362 #endif
363 
365 };
366 
367 
368 
369 #endif
370 #endif

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)