VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
environmentProcessPublisherDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
9 
10 #ifndef DtEnvironmentProcessPublisher_H_
11 #define DtEnvironmentProcessPublisher_H_
12 
13 #if DtDIS
14 
15 
16 #include "objectPublisherDIS.h"
17 #include "pdu.h"
21 
31 {
32 
33 public:
36  typedef DtEnvironmentProcessRepository* (*DtStateRepCreator)();
37 
38 public:
39 
42  DtEnvironmentProcessRepository* stateRepToUse,
43  DtExerciseConn* conn,
44  const DtObjectId& id = DtObjectId::defaultId());
45 
48  DtExerciseConn* conn,
49  const DtObjectId& id = DtObjectId::defaultId());
50 
53 
58  virtual void tick();
59 
62  virtual DtEnvironmentProcessRepository* environmentProcessStateRep();
63 
65  virtual DtEnvironmentProcessRepository* epsr();
66 
71 
75 
77  virtual const DtObjectId& id() const;
78 
80  virtual const DtObjectId& localId() const;
81 
83  virtual const DtGlobalObjectDesignator& globalId() const;
84 
88  virtual void sendFinalPduOnDestruction(bool onOff);
89 
92  virtual void forceUpdate();
93 
94 public:
95 
97  static void setStateRepCreator(DtStateRepCreator creator);
98  static DtStateRepCreator stateRepCreator(void);
99 
100  static void setClassDfltTimeThreshold(DtTime threshold);
101 
102 protected:
103 
105  void sendFinalPdu();
106 
108  void init(const DtEntityIdentifier& vehId);
109 
110  //copy constructor -- not implemented
112 
115  (const DtEnvironmentProcessPublisher& orig);
116 
117 protected:
118 
119  DtObjectId myId;
122  bool mySendFinalInDtor;
123 
124 protected:
125  static DtStateRepCreator theStateRepCreator;
126  static DtTime theClassDfltTimeThreshold;
127  static bool theClassDfltIsSetFlag;
128 };
129 
132 {
133  return epsr();
134 }
135 
137 {
138  return static_cast<DtEnvironmentProcessRepository*>(myStateRep);
139 }
140 
142 {
143  return myEncoder;
144 }
145 
147 {
148  return myDecoder;
149 }
150 
151 
152 inline void DtEnvironmentProcessPublisher::sendFinalPduOnDestruction(bool onOff)
153 {
154  mySendFinalInDtor = onOff;
155 }
156 
157 inline const DtObjectId& DtEnvironmentProcessPublisher::id() const
158 {
159  return myId;
160 }
161 
163 {
164  return id();
165 }
166 
167 #endif
168 #endif
169 
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:202
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
Contains the DtEnvironmentProcessRepository class declaration.
virtual DtHlaStateEncoder * encoder()
Returns a pointer to the Encoder being used to encode current state into an outgoing message...
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtEnvironmentProcessPublisher are used for local or source simulations of environment pr...
Definition: environmentProcessPublisherHLA.h:27
static const DtObjectId & defaultId()
virtual DtEnvironmentProcessRepository * environmentProcessStateRep()
Returns a pointer to the DtEnvironmentProcessRepository - through which you can set or inspect curren...
Definition: environmentProcessPublisherHLA.h:99
DtHlaStateEncoder * myEncoder
Definition: objectPublisherHLA.h:204
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
virtual void tick()
Tick (update) this object.
virtual DtEnvironmentProcessRepository * epsr()
Synonym for environmentProcessStateRep().
Definition: environmentProcessPublisherHLA.h:104
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object&#39;s global object designator - the object name in RTI1.3.3, but the objectId in RTI1...
virtual void forceUpdate()
Specify a set of attributes that should be included in the ahvps the next time tick is called...
DtHlaStateDecoder * myDecoder
Definition: objectPublisherHLA.h:205
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
Instances of DtEnvironmentProcessRepository are used to store state information for environmental pro...
Definition: environmentProcessRepository.h:27
This class declares the DIS version of DtObjectPublisher.
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual const DtObjectId & id() const
Get the object&#39;s local identifier.
class DtEnvironmentProcessEncoder
Definition: environmentProcessEncoderHLA.h:41
void init(RTI::ObjectClassHandle hand, DtStateRepository *stateRep, DtStateRepository *asSeenByRemote, DtHlaStateEncoder *encoder=0, DtHlaStateDecoder *decoder=0)
virtual const DtObjectId & localId() const
Get the object&#39;s local identifier.
Definition: objectPublisherHLA.h:247
class DtEnvironmentProcessDecoder:
Definition: environmentProcessDecoderHLA.h:36
virtual DtHlaStateDecoder * decoder()
Returns a pointer to the Decoder being used to decode state messages that we send back into the asSee...

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)