VR-Link API Documentation for DIS
 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 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/objectPublisherDIS.h>
16 
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 
53  virtual bool tick();
54 
56  virtual void forceUpdate();
57 
59  virtual const DtObjectId& id() const;
60  virtual const DtObjectId& localId() const;
61 
63  virtual const DtGlobalObjectDesignator& globalId() const;
64 
67  virtual void setBeamAzimuthThreshold( double threshold );
68 
70  virtual double beamAzimuthThreshold() const;
71 
74  virtual void setBeamElevationThreshold( double threshold );
75 
77  virtual double beamElevationThreshold() const;
78 
79 public:
80 
82  static void setStateRepCreator( DtStateRepCreator creator );
83  static DtStateRepCreator stateRepCreator();
84 
85  static void setClassDfltTimeThreshold( DtTime threshold );
86 
87 protected:
88 
90  void init( const char* name, const DtEntityIdentifier& id );
91 
94 
97 
98 protected:
99 
103 
104 protected:
105 
106  static DtStateRepCreator theStateRepCreator;
109  char* myName;
110 
111 };
112 
114 {
115  return static_cast<DtUnderwaterAcousticsStateRepository*>( myStateRep );
116 }
117 
118 #endif
char * myName
Definition: underwaterAcousticsPublisherDIS.h:109
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:193
virtual DtUnderwaterAcousticsStateRepository * usr()
Definition: underwaterAcousticsPublisherDIS.h:113
static DtTime theClassDfltTimeThreshold
Definition: underwaterAcousticsPublisherDIS.h:107
Instances of DtUnderwaterAcousticsPublisher are used to take care of the details associated with publ...
Definition: underwaterAcousticsPublisherDIS.h:23
Contains the DtUnderwaterAcousticsStateRepository class declaration.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
static const DtEntityIdentifier & defaultId()
Returns a reference to an instance of -1:-1:-1.
static bool theClassDfltIsSetFlag
Definition: underwaterAcousticsPublisherDIS.h:108
Instances of DtUnderwaterAcousticsEncoder are used to take state information from a DtUnderwaterAcous...
Definition: underwaterAcousticsEncoderDIS.h:26
DtUnderwaterAcousticsEncoder * myUnderwaterAcousticsEncoder
Definition: underwaterAcousticsPublisherDIS.h:102
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherDIS.h:36
virtual void forceUpdate()=0
For publisher to send PDU on next tick.
Instances of DtUnderwaterAcousticsDecoder are used to take state information from an emission state P...
Definition: underwaterAcousticsDecoderDIS.h:26
virtual const DtObjectId & id() const =0
The id is the same as the globalId, a DtEntityIdentifier unique to this object.
DtObjectId myId
Definition: underwaterAcousticsPublisherDIS.h:100
Instances of DtUnderwaterAcousticsStateRepository are used to store state data for all underwater aco...
Definition: underwaterAcousticsStateRepository.h:37
static DtStateRepCreator theStateRepCreator
Definition: underwaterAcousticsPublisherDIS.h:106
virtual const DtGlobalObjectDesignator & globalId() const =0
The entityIdentifier unique to this object.
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.
virtual bool tick()=0
Tick (update) this object.
DtUnderwaterAcousticsDecoder * myUnderwaterAcousticsDecoder
Definition: underwaterAcousticsPublisherDIS.h:101
virtual const DtObjectId & localId() const =0
The localId is the same as the globalId, a DtEntityIdentifier unique to this object.

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)