VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
activeSonarPublisherHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2026 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include "vl/objectPublisherHLA.h"
16 
18 
24 {
25 public:
26 
28  typedef DtActiveSonarStateRepository* (*DtStateRepCreator)();
29 
32  typedef DtGlobalObjectDesignator (*DtActiveSonarBeamNameChooser)(
33  DtActiveSonarPublisher& publisher,
34  DtU8 beamId,
35  void* userData);
36 
37 public:
38 
41  DtActiveSonarStateRepository* stateRepToUse,
42  DtExerciseConn* conn,
43  const char* name = 0,
44  const DtDDMRegionSet* regionSetToUse = 0);
45 
48  RTI::ObjectClassHandle h,
49  DtExerciseConn* conn,
50  const char* name = 0,
51  const DtDDMRegionSet* regionSetToUse = 0);
52 
55  DtExerciseConn* conn,
56  const char* name = 0,
57  const DtDDMRegionSet* regionSetToUse = 0);
58 
65 
67  virtual ~DtActiveSonarPublisher();
68 
71  virtual DtActiveSonarStateRepository* activeSonarStateRep();
72 
74  virtual DtActiveSonarStateRepository* asr();
75 
78  virtual const char* classToUse() const;
79 
80 
82  virtual bool tick();
83 
87  virtual void forceUpdate();
88 
92  virtual void forceUpdate(const RTI::AttributeHandleSet& set);
93 
98  virtual void setActiveSonarBeamNameChooser(DtActiveSonarBeamNameChooser chooser, void* userData = nullptr);
99 
106  virtual DtString chooseBeamName(DtActiveSonarBeamRepository* bsr);
107 
108 public:
110  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
111 
112 protected:
113 
119  const char* name = 0,
120  const DtDDMRegionSet* regionSetToUse = 0);
121 
125  virtual void syncBeamList();
126 
129  virtual DtActiveSonarBeamPublisher* publisherForAsr(
131 
133  virtual int numBeams() const;
134 
135 protected:
136 
140 
142  DtActiveSonarBeamNameChooser myBeamNameChooser;
143 
146 
147  static DtStateRepCreator theStateRepCreator;
148 
149 protected:
152 
155 };
156 
158 {
160 }
161 
163 {
165 }
166 
167 #endif
Instances of DtActiveSonarBeamPublisher are used for local or source simulation (these objects are no...
Definition: activeSonarBeamPublisher.h:23
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
DtString DtGlobalObjectDesignator
In HLA a DtGlobalObjectDesignator is a DtString.
Definition: globalObjectDesignator.h:22
bool myTickedFirstTime
Definition: activeSonarPublisherHLA.h:139
Instances of DtActiveSonarPublisher publish EmbeddedSystem.UnderwaterAcousticsEmission.ActiveSonar objects to the network.
Definition: activeSonarPublisherHLA.h:23
virtual DtActiveSonarStateRepository * asr()
Synonym for activeSonarStateRep().
Definition: activeSonarPublisherHLA.h:162
DtActiveSonarBeamNameChooser myBeamNameChooser
Optional function used to choose beam publisher names.
Definition: activeSonarPublisherHLA.h:142
void * myBeamNameChooserUserData
Optional user data to pass to the beam name chooser.
Definition: activeSonarPublisherHLA.h:145
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
std::set< DtDDMRegionSP > DtDDMRegionSet
Definition: region13.h:34
static DtStateRepCreator theStateRepCreator
Definition: activeSonarPublisherHLA.h:147
DtList is deprecated, please use std::list&lt;T&gt;.
Definition: vlList.h:71
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
virtual bool tick()
Tick (update) this object.
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:149
virtual void forceUpdate()
Specify a set of attributes that should be included in the ahvps the next time tick is called...
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
The DtActiveSonarBeamRepository class provides the state repository for the ActiveSonarBeam object...
Definition: activeSonarBeamRepository.h:18
virtual DtActiveSonarStateRepository * activeSonarStateRep()
Returns a pointer to the DtActiveSonarStateRepository - through which you can set or inspect current ...
Definition: activeSonarPublisherHLA.h:157
Contains the DtActiveSonarBeamPublisher class declaration.
DtList myBeamPubs
List of DtEmitterBeamPubs.
Definition: activeSonarPublisherHLA.h:138
Instances of DtString are used to represent strings.
Definition: vlString.h:38
This file provides a declaration of the class DtObjectPublisher.
class DtHlaObjectWithStateRep:
Definition: hlaObjectWithStateRep.h:28

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)