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 MAK Technologies, Inc
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 
54  virtual bool tick();
55 
58  virtual DtRadioReceiverRepository* receiverRep();
59 
61  virtual DtRadioReceiverRepository* rsr();
62 
67 
71 
73  virtual const DtObjectId& id() const;
74 
76  virtual const DtObjectId& localId() const;
77 
79  virtual const DtGlobalObjectDesignator& globalId() const;
80 
82  virtual int radioId() const;
83 
87  virtual void sendFinalPduOnDestruction(bool onOff);
88 
91  virtual void forceUpdate();
92 
93 public:
94 
96  static void setStateRepCreator(DtStateRepCreator creator);
97  static DtStateRepCreator stateRepCreator(void);
98 
99  static void setClassDfltTimeThreshold(DtTime threshold);
100 
101 protected:
102 
104  void sendFinalPdu();
105 
107  void init(const DtEntityIdentifier& vehId);
108 
111 
114 
115 protected:
116  DtObjectId myId;
119  bool mySendFinalInDtor;
120 
121 protected:
122  static DtStateRepCreator theStateRepCreator;
123  static DtTime theClassDfltTimeThreshold;
124  static bool theClassDfltIsSetFlag;
125 };
126 
128 {
129  return static_cast<DtRadioReceiverRepository*>(myStateRep);
130 }
131 
132 #endif
133 #endif
134 
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
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:61
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:223
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 DtRadioReceiverRepository * rsr()
Synonym for receiverRep().
Definition: radioReceiverPublisherHLA.h:113
class DtRadioReceiverDecoder:
Definition: radioReceiverDecoderHLA.h:31
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
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:277
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)