VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
emitterSystemPublisherDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
10 
11 #ifndef DtDisEmitterSystemPublisher_H_
12 #define DtDisEmitterSystemPublisher_H_
13 
14 #if DtDIS
15 
16 
17 #include "objectPublisherDIS.h"
21 
22 
27 {
28 public:
29 
31  typedef DtEmitterSystemRepository* (*DtStateRepCreator)();
32 
33 public:
34 
38  DtEmitterSystemRepository* stateRepToUse,
39  DtExerciseConn* conn,
40  const DtObjectId& id = DtObjectId::defaultId());
41 
45  DtExerciseConn* conn,
46  const DtObjectId& id = DtObjectId::defaultId());
47 
51  DtExerciseConn* conn,
52  const char* name,
53  const DtObjectId& id = DtObjectId::defaultId());
54 
56  virtual ~DtEmitterSystemPublisher();
57 
58 
60  virtual void forceUpdate();
61 
63  virtual bool tick();
64 
66  virtual DtEmitterSystemRepository* emitterSystemStateRep();
67  virtual DtEmitterSystemRepository* esr();
68 
70  virtual const DtObjectId& id() const;
71 
72  virtual const DtObjectId& localId() const;
73 
75  virtual const DtGlobalObjectDesignator& globalId() const;
76 
79  virtual void setBeamAzimuthThreshold(double threshold);
80 
82  virtual double beamAzimuthThreshold() const;
83 
86  virtual void setBeamElevationThreshold(double threshold);
87 
88 
90  virtual double beamElevationThreshold() const;
91 
93  void sendFinalPdu();
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 init( const char* name,
107  const DtEntityIdentifier& id);
108 
111 
114 
115 protected:
116 
117  DtObjectId myId;
118  DtEmitterSystemStateDecoder* myEmitterSystemDecoder;
119  DtEmitterSystemStateEncoder* myEmitterSystemEncoder;
120  bool mySendFinalInDtor;
121 
122 
123 protected:
124  static DtStateRepCreator theStateRepCreator;
125  static DtTime theClassDfltTimeThreshold;
126  static bool theClassDfltIsSetFlag;
127  char *myName;
128 };
129 
131 {
132  return static_cast<DtEmitterSystemRepository*>(myStateRep);
133 }
134 
135 #endif
136 #endif
137 
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
DtString myName
Definition: objectPublisherHLA.h:227
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
static const DtObjectId & defaultId()
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
virtual bool tick()
Tick (update) this object.
This file declares the DIS version of DtEmitterSystemStateDecoder.
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...
Contains the DtEmitterSystemStateEncoder class declaration.
virtual void forceUpdate()
Specify a set of attributes that should be included in the ahvps the next time tick is called...
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 DtEmitterSystemRepository are used to store state data for emitter systems in both HLA a...
Definition: emitterSystemRepository.h:29
This class declares the DIS version of DtObjectPublisher.
Instances of DtEmitterSystemPublisher are used for local or source simulations of emitter systems...
Definition: emitterSystemPublisherHLA.h:22
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 DtEmitterSystemRepository * esr()
Synonym for emitterSystemRep().
Definition: emitterSystemPublisherHLA.h:143

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)