9 #ifndef objectPublisherHLA_H_
10 #define objectPublisherHLA_H_
26 class DtHlaStateDecoder;
27 class DtHlaStateEncoder;
43 bool okToDeleteStateRep =
true,
44 const DtDDMRegionSet* regionSet = 0);
70 virtual void setHlaObject(
71 const char* className,
72 DtHlaStateEncoder* encoder = 0,
73 DtHlaStateDecoder* decoder = 0,
74 const char* objectName = 0,
75 const DtDDMRegionSet* regionSet = 0);
79 virtual void setHlaObject(
80 RTI::ObjectClassHandle hand,
81 DtHlaStateEncoder* encoder = 0,
82 DtHlaStateDecoder* decoder = 0,
83 const char* objectName = 0,
84 const DtDDMRegionSet* regionSet = 0);
88 virtual void setHlaObject(
89 DtHlaObjectWithStateRep* obj,
90 DtHlaStateEncoder* encoder = 0,
91 DtHlaStateDecoder* decoder = 0);
96 virtual void detachHlaObject();
114 virtual DtHlaStateDecoder* decoder();
118 virtual DtHlaStateEncoder* encoder();
121 virtual DtHlaObjectWithStateRep* hlaObject();
136 virtual const DtString& name()
const;
147 virtual void forceUpdate();
148 virtual void forceUpdate(
const RTI::AttributeHandleSet& set);
156 virtual bool parallelTick();
161 virtual void setDeleteObjInDtorFlag(
bool onOff);
162 virtual bool deleteObjInDtorFlag()
const;
164 virtual const DtDDMRegionSet& publishingRegions()
const;
168 virtual void addRegion(DtDDMRegionSP regionToAdd);
174 virtual void removeRegion(DtDDMRegionSP regionToRemove);
179 virtual void setUpdateRateWarningThreshold(
unsigned short updatesPerSecond);
182 virtual unsigned short updateRateWarningThreshold()
const;
185 virtual void checkForUpdateRateWarning();
190 static void removeObjectCb(DtHlaObject* obj,
void* pub);
193 static void setDfltUpdateRateWarningThreshold(
unsigned short updatesPerSecond);
196 static unsigned short dfltUpdateRateWarningThreshold();
205 bool okToDeleteStateRep =
true,
206 const DtDDMRegionSet* regionSet = 0);
215 virtual void processRemoveObject(DtHlaObject* obj);
220 DtHlaObjectWithStateRep* myHlaObj;
223 DtHlaStateEncoder* myEncoder;
224 DtHlaStateDecoder* myDecoder;
226 bool myOkToDeleteStateRepFlag;
228 bool myDeleteObjInDtorFlag;
229 DtDDMRegionSet myPublishingRegions;
230 DtTime myRealTimeLastUpdate;
231 DtTime myLastSpamCheckTime;
232 unsigned short myNumberOfUpdatesPerSecond;
233 unsigned short myUpdateRateWarningThreshold;
245 DtHlaStateDecoder* decoder = 0);
248 DtHlaStateDecoder* decoder = 0);
253 static unsigned short theDfltUpdateRateWarningThreshold;
272 inline DtHlaObjectWithStateRep* DtObjectPublisher::hlaObject()
288 #endif //DtObjectPublisher_H_
Contains the DtObjectId class declaration.
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:193
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
virtual DtStateRepository * stateRep()
Returns a pointer to the DtStateRepository - through which you can set or inspect current state infor...
Definition: objectPublisherDIS.h:245
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherDIS.h:36
This file contains typedefs used to represent objects in a protocol neutral way.
virtual const DtObjectId & id() const =0
The id is the same as the globalId, a DtEntityIdentifier unique to this object.
virtual DtStateRepository * sr()
Returns a pointer to the DtStateRepository - through which you can set or inspect current state infor...
Definition: objectPublisherDIS.h:250
virtual DtExerciseConn * exerciseConn()
Get our exercise connection.
Definition: objectPublisherDIS.h:255
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
DtStateRepository * myAsSeenByRemote
Definition: objectPublisherDIS.h:194
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtExerciseConn * myExConn
Definition: objectPublisherDIS.h:192
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: objectPublisherDIS.h:260
virtual const DtObjectId & localId() const =0
The localId is the same as the globalId, a DtEntityIdentifier unique to this object.
This file contains typedefs for machine dependant types.