VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
objectPublisherDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #if DtDIS
11 
12 
13 #ifndef DtDISObjectPublisher_H_
14 #define DtDISObjectPublisher_H_
15 
16 
17 #include <vlutil/vlMachineTypes.h>
18 #include "objectId.h"
19 #include <vlutil/vlTime.h>
20 
23 class DT_DLL_VL DtPdu;
24 
31 {
32 public:
33 
40  DtStateRepository* stateRep,
41  DtStateRepository* asSeenByRemote,
42  bool okToDeleteStateRep = true);
43 
45  virtual ~DtObjectPublisher();
46 
47 private:
48 
51 
53  DtObjectPublisher& operator= (const DtObjectPublisher& orig);
54 
55 public:
56 
59  virtual DtStateRepository* stateRep();
60 
63  virtual DtStateRepository* sr();
64 
66  virtual DtExerciseConn* exerciseConn();
67 
69  virtual const DtObjectId& localId() const = 0;
71  virtual const DtObjectId& id() const = 0;
73  virtual const DtGlobalObjectDesignator& globalId() const = 0;
74 
76  virtual void forceUpdate()=0;
77 
79  virtual void tick() = 0;
80 
82  virtual void parallelTick();
83 
87  virtual void setTimeThreshold(DtTime time);
89  virtual DtTime timeThreshold() const;
90 
95  virtual DtStateRepository* approximateRemoteStateRep();
96 
99  virtual DtTime lastTimeUpdated() const;
100 
103  virtual DtTime lastSimTimeUpdated() const;
104 
107  virtual void setUseCustomThreshold(bool useCustom);
108 
111  virtual bool useCustomThreshold();
112 
113 public:
114 
119  static void setDfltTimeThreshold(DtTime time);
120 
122  static DtTime dfltTimeThreshold();
123 
124 protected:
125 
126 
128  virtual void send(DtPdu* pdu) const;
129 
130 
131 protected:
132 
133  DtExerciseConn *myExConn;
134  DtStateRepository *myStateRep;
135  DtStateRepository *myAsSeenByRemote;
136  bool myOkToDeleteStateRepFlag;
137  bool myUseCustomThreshold;
138 
139  DtTime myTimeThreshold;
140 
142  mutable DtTime mySimTimeLastUpdate;
143 
145  mutable DtTime myRealTimeLastUpdate;
146 
147 protected:
148 
149  static DtTime theDfltTimeThreshold;
150 
151 };
152 
154 {
155  return myStateRep;
156 }
157 
159 {
160  return myStateRep;
161 }
162 
164 {
165  return myExConn;
166 }
167 
169 {
170  return myAsSeenByRemote;
171 }
172 
173 #endif //DtObjectPublisher_H_
174 #endif //DtDIS
175 

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)