VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
radioReceiverPublisherDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef radioReceiverPublisherDIS_H_
11 #define radioReceiverPublisherDIS_H_
12 
13 #if DtDIS
14 
15 
16 #include "objectPublisherDIS.h"
17 #include "pdu.h"
21 #include <vlutil/vlPrint.h>
22 
23 
25 {
26 public:
27 
30  typedef DtRadioReceiverRepository* (*DtStateRepCreator)();
31 
32 public:
33 
36  DtRadioReceiverRepository* stateRepToUse,
37  DtExerciseConn* conn,
38  const DtObjectId& entityId = DtObjectId::defaultId());
39 
42  DtExerciseConn* conn,
43  const DtObjectId& entityId = DtObjectId::defaultId(),
44  int radioId = 1);
45 
47  virtual ~DtRadioReceiverPublisher();
48 
53  virtual void tick();
54 
57  virtual DtRadioReceiverRepository* receiverRep();
58 
60  virtual DtRadioReceiverRepository* rsr();
61 
66 
70 
72  virtual const DtObjectId& id() const;
73 
75  virtual const DtObjectId& localId() const;
76 
78  virtual const DtGlobalObjectDesignator& globalId() const;
79 
81  virtual int radioId() const;
82 
86  virtual void sendFinalPduOnDestruction(bool onOff);
87 
90  virtual void forceUpdate();
91 
92 public:
93 
95  static void setStateRepCreator(DtStateRepCreator creator);
96  static DtStateRepCreator stateRepCreator(void);
97 
98  static void setClassDfltTimeThreshold(DtTime threshold);
99 
100 protected:
101 
103  void sendFinalPdu();
104 
106  void init(const DtEntityIdentifier& vehId);
107 
110 
113 
114 protected:
115  DtObjectId myId;
118  bool mySendFinalInDtor;
119 
120 protected:
121  static DtStateRepCreator theStateRepCreator;
122  static DtTime theClassDfltTimeThreshold;
123  static bool theClassDfltIsSetFlag;
124 };
125 
127 {
128  return static_cast<DtRadioReceiverRepository*>(myStateRep);
129 }
130 
131 #endif
132 #endif
133 
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:202
class DtRadioReceiverEncoder:
Definition: radioReceiverEncoderHLA.h:36
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
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
static const DtObjectId & defaultId()
DtHlaStateEncoder * myEncoder
Definition: objectPublisherHLA.h:204
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
Functions in vlPrint.h provide an error and print facility for vrlink.
class DtRadioReceiverPublisher:
Definition: radioReceiverPublisherHLA.h:27
virtual void tick()
Tick (update) this object.
virtual DtRadioReceiverRepository * rsr()
Synonym for receiverRep().
Definition: radioReceiverPublisherHLA.h:113
class DtRadioReceiverDecoder:
Definition: radioReceiverDecoderHLA.h:31
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
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
Instances of DtRadioReceiverRepository are used to store state information for radio receiver objects...
Definition: radioReceiverRepository.h:19
This class declares the DIS version of DtObjectPublisher.
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
DtReal DtTime
A definition of DtTime.
Definition: vlTime.h:19
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual const DtObjectId & id() const
Get the object&#39;s local identifier.
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
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)