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 MAK Technologies, Inc
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 
59  virtual bool tick();
60 
63  virtual DtEnvironmentProcessRepository* environmentProcessStateRep();
64 
66  virtual DtEnvironmentProcessRepository* epsr();
67 
72 
76 
78  virtual const DtObjectId& id() const;
79 
81  virtual const DtObjectId& localId() const;
82 
84  virtual const DtGlobalObjectDesignator& globalId() const;
85 
89  virtual void sendFinalPduOnDestruction(bool onOff);
90 
93  virtual void forceUpdate();
94 
95 public:
96 
98  static void setStateRepCreator(DtStateRepCreator creator);
99  static DtStateRepCreator stateRepCreator(void);
100 
101  static void setClassDfltTimeThreshold(DtTime threshold);
102 
103 protected:
104 
106  void sendFinalPdu();
107 
109  void init(const DtEntityIdentifier& vehId);
110 
111  //copy constructor -- not implemented
113 
116  (const DtEnvironmentProcessPublisher& orig);
117 
118 protected:
119 
120  DtObjectId myId;
123  bool mySendFinalInDtor;
124 
125 protected:
126  static DtStateRepCreator theStateRepCreator;
127  static DtTime theClassDfltTimeThreshold;
128  static bool theClassDfltIsSetFlag;
129 };
130 
133 {
134  return epsr();
135 }
136 
138 {
139  return static_cast<DtEnvironmentProcessRepository*>(myStateRep);
140 }
141 
143 {
144  return myEncoder;
145 }
146 
148 {
149  return myDecoder;
150 }
151 
152 
153 inline void DtEnvironmentProcessPublisher::sendFinalPduOnDestruction(bool onOff)
154 {
155  mySendFinalInDtor = onOff;
156 }
157 
158 inline const DtObjectId& DtEnvironmentProcessPublisher::id() const
159 {
160  return myId;
161 }
162 
164 {
165  return id();
166 }
167 
168 #endif
169 #endif
170 
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
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:223
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
virtual DtEnvironmentProcessRepository * epsr()
Synonym for environmentProcessStateRep().
Definition: environmentProcessPublisherHLA.h:104
virtual bool tick()
Tick (update) this object.
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:224
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:277
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 Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)