13 #ifndef DtDISObjectPublisher_H_
14 #define DtDISObjectPublisher_H_
26 class DT_DLL_VL DtPduWithAttributeRecordSets;
27 class DT_DLL_VL DtStateRepositoryExtensionEncoder;
28 class DT_DLL_VL DtStateRepositoryExtensionDecoder;
42 typedef DtAttributePdu * (*DtNonCoupledAttributePduCreator)(
const DtPduWithAttributeRecordSets*,
void*);
52 bool okToDeleteStateRep =
true);
86 virtual void forceUpdate()=0;
90 virtual bool tick() = 0;
93 virtual bool parallelTick();
98 virtual void setTimeThreshold(
DtTime time);
100 virtual DtTime timeThreshold()
const;
104 virtual void setRelLocTimeThreshold(
DtTime time );
106 virtual DtTime relLocTimeThreshold()
const;
116 virtual DtTime lastTimeUpdated()
const;
117 virtual DtTime lastTimeAttrUpdated()
const;
121 virtual DtTime lastSimTimeUpdated()
const;
125 virtual void setUseCustomThreshold(
bool useCustom);
129 virtual bool useCustomThreshold();
144 virtual void setUpdateRateWarningThreshold(
unsigned short updatesPerSecond);
145 virtual unsigned short updateRateWarningThreshold()
const;
150 virtual void checkForUpdateRateWarning()
const;
158 static void setDfltTimeThreshold(
DtTime time);
161 static DtTime dfltTimeThreshold();
164 static void setDfltUpdateRateWarningThreshold(
unsigned short updatesPerSecond);
167 static unsigned short dfltUpdateRateWarningThreshold();
170 static void setDfltRelLocTimeThreshold(
DtTime time );
173 static DtTime dfltRelLocTimeThreshold();
176 static DtNonCoupledAttributePduCreator setDefaultNonCoupledAttributePduCreator(DtNonCoupledAttributePduCreator creator);
177 static DtNonCoupledAttributePduCreator defaultNonCoupledAttributePduCreator(
void);
180 DtNonCoupledAttributePduCreator setNonCoupledAttributePduCreator(DtNonCoupledAttributePduCreator creator);
181 DtNonCoupledAttributePduCreator nonCoupledAttributePduCreator(
void);
195 bool myOkToDeleteStateRepFlag;
196 bool myUseCustomThreshold;
201 DtTime myRelLocTimeThreshold;
204 mutable DtTime mySimTimeLastUpdate;
207 mutable DtTime myRealTimeLastUpdate;
208 mutable DtTime myRealTimeLastAttrUpdate;
211 mutable DtTime myLastSpamCheckTime;
214 mutable unsigned short myNumberOfPdusPerSecond;
217 mutable unsigned short myUpdateRateWarningThreshold;
220 mutable bool myCanWarn;
223 DtNonCoupledAttributePduCreator myNonCoupledAttributePduCreator;
226 static DtNonCoupledAttributePduCreator theDefaultNonCoupledAttributePduCreator;
232 std::vector<DtStateRepositoryExtensionEncoder*> myStateRepositoryExtensionEncoderList;
235 std::vector<DtStateRepositoryExtensionDecoder*> myStateRepositoryExtensionDecoderList;
239 static DtTime theDfltTimeThreshold;
240 static DtTime theDfltRelLocTimeThreshold;
241 static unsigned short theDfltUpdateRateWarningThreshold;
265 #endif //DtObjectPublisher_H_
Contains the DtObjectId class declaration.
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
virtual DtStateRepository * stateRep()
Returns a pointer to the DtStateRepository - through which you can set or inspect current state infor...
Definition: objectPublisherHLA.h:257
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file contains the declaration of DtClock and DtTime.
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
virtual DtStateRepository * sr()
Synonym for stateRep().
Definition: objectPublisherHLA.h:262
virtual DtExerciseConn * exerciseConn()
Get our exercise connection.
Definition: objectPublisherHLA.h:267
DtPdu is the base class for all PDU's in VR-Link.
Definition: pdu.h:69
DtAttributePduStrategy
Definition: vlAttributePduStrategy.h:16
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
DtStateRepository * myAsSeenByRemote
Definition: objectPublisherHLA.h:222
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
DtExerciseConn * myExConn
Definition: objectPublisherHLA.h:219
int send(int s, char *buf, int bufLen, int flags)
DtReal DtTime
A definition of DtTime.
Definition: vlTime.h:19
MANAGEDINTERFACE_DLL void tick(double maxTime)
Tick ManagedInterface.
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual DtStateRepository * approximateRemoteStateRep()
Returns a pointer to the approximate remote DtStateRepository – This state repository contains the co...
Definition: objectPublisherHLA.h:282
This file contains typedefs for machine dependant types.