VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
underwaterAcousticsPublisherDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/objectPublisherDIS.h>
16 
17 class DtUnderwaterAcousticsEncoder;
18 class DtUnderwaterAcousticsDecoder;
19 
24 {
25 public:
26 
28  typedef DtUnderwaterAcousticsStateRepository* (*DtStateRepCreator)();
29 
30 public:
31 
34  DtExerciseConn* conn, const DtObjectId& id = DtObjectId::defaultId() );
35 
38  const DtObjectId& id = DtObjectId::defaultId() );
39 
41  DtUnderwaterAcousticsPublisher( DtExerciseConn* conn, const char* name,
42  const DtObjectId& id = DtObjectId::defaultId() );
43 
46 
48  virtual DtUnderwaterAcousticsStateRepository* underwaterAcousticsStateRep();
50 
52  virtual void tick();
53 
55  virtual void forceUpdate();
56 
58  virtual const DtObjectId& id() const;
59  virtual const DtObjectId& localId() const;
60 
62  virtual const DtGlobalObjectDesignator& globalId() const;
63 
66  virtual void setBeamAzimuthThreshold( double threshold );
67 
69  virtual double beamAzimuthThreshold() const;
70 
73  virtual void setBeamElevationThreshold( double threshold );
74 
76  virtual double beamElevationThreshold() const;
77 
78 public:
79 
81  static void setStateRepCreator( DtStateRepCreator creator );
82  static DtStateRepCreator stateRepCreator();
83 
84  static void setClassDfltTimeThreshold( DtTime threshold );
85 
86 protected:
87 
89  void init( const char* name, const DtEntityIdentifier& id );
90 
93 
96 
97 protected:
98 
99  DtObjectId myId;
100  DtUnderwaterAcousticsDecoder* myUnderwaterAcousticsDecoder;
101  DtUnderwaterAcousticsEncoder* myUnderwaterAcousticsEncoder;
102 
103 protected:
104 
105  static DtStateRepCreator theStateRepCreator;
106  static DtTime theClassDfltTimeThreshold;
107  static bool theClassDfltIsSetFlag;
108  char* myName;
109 
110 };
111 
113 {
114  return static_cast<DtUnderwaterAcousticsStateRepository*>( myStateRep );
115 }
116 
117 #endif
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:202
virtual DtUnderwaterAcousticsStateRepository * usr()
Synonym for underwaterAcousticsStateRep().
Definition: underwaterAcousticsPublisherHLA.h:154
Instances of DtUnderwaterAcousticsPublisher publish underwater acoustic objects to the network...
Definition: underwaterAcousticsPublisherHLA.h:27
Contains the DtUnderwaterAcousticsStateRepository class declaration.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
DtString myName
Definition: objectPublisherHLA.h:208
#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 void tick()
Tick (update) this object.
Instances of DtUnderwaterAcousticsStateRepository are used to store state data for all underwater aco...
Definition: underwaterAcousticsStateRepository.h:37
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...
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
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.
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

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)