VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
activeSonarPublisherDIS.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 
19 
24 {
25 public:
26 
28  typedef DtActiveSonarStateRepository* (*DtStateRepCreator)();
29 
30 public:
31 
34  DtExerciseConn* conn, const DtObjectId& id = DtObjectId::defaultId() );
35 
38  const DtObjectId& id = DtObjectId::defaultId() );
39 
41  DtActiveSonarPublisher( DtExerciseConn* conn, const char* name,
42  const DtObjectId& id = DtObjectId::defaultId() );
43 
45  virtual ~DtActiveSonarPublisher();
46 
48  virtual DtActiveSonarStateRepository* activeSonarStateRep();
49  virtual DtActiveSonarStateRepository* asr();
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 
102 
103 protected:
104 
105  static DtStateRepCreator theStateRepCreator;
108  char* myName;
109 
110 };
111 
113 {
114  return static_cast<DtActiveSonarStateRepository*>( myStateRep );
115 }
116 
117 #endif
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:176
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtActiveSonarPublisher are used to take care of the details associated with publishing t...
Definition: activeSonarPublisherDIS.h:23
static const DtEntityIdentifier & defaultId()
Returns a reference to an instance of -1:-1:-1.
Contains the DtActiveSonarStateRepository class declaration.
Instances of DtActiveSonarEncoder are used to take state information from a DtActiveSonarStateReposit...
Definition: activeSonarEncoderDIS.h:23
virtual DtActiveSonarStateRepository * asr()
Definition: activeSonarPublisherDIS.h:112
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 DtActiveSonarDecoder are used to take state information from an emission state PDU and p...
Definition: activeSonarDecoderDIS.h:23
virtual const DtObjectId & id() const =0
The id is the same as the globalId, a DtEntityIdentifier unique to this object.
static DtStateRepCreator theStateRepCreator
Definition: activeSonarPublisherDIS.h:105
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
DtActiveSonarEncoder * myActiveSonarEncoder
Definition: activeSonarPublisherDIS.h:101
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
char * myName
Definition: activeSonarPublisherDIS.h:108
This class declares the DIS version of DtObjectPublisher.
DtActiveSonarDecoder * myActiveSonarDecoder
Definition: activeSonarPublisherDIS.h:100
virtual void tick()=0
Tick (update) this object.
virtual const DtObjectId & localId() const =0
The localId is the same as the globalId, a DtEntityIdentifier unique to this object.
static DtTime theClassDfltTimeThreshold
Definition: activeSonarPublisherDIS.h:106
DtObjectId myId
Definition: activeSonarPublisherDIS.h:99
static bool theClassDfltIsSetFlag
Definition: activeSonarPublisherDIS.h:107

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)