VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
underwaterAcousticsPublisherHLA.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 DtHLA
13 
14 #include <vl/objectPublisherHLA.h>
15 
23 
28 {
29 public:
30 
32  typedef DtUnderwaterAcousticsStateRepository* (*DtStateRepCreator)();
33 
34 public:
35 
37  DtUnderwaterAcousticsPublisher( DtExerciseConn* conn, const char* name = 0,
38  const DtDDMRegionSet* regionSetToUse = 0 );
39 
42  DtExerciseConn* conn, const char* name = 0, const DtDDMRegionSet* regionSetToUse = 0 );
43 
46 
49  virtual DtUnderwaterAcousticsStateRepository* underwaterAcousticsStateRep();
50 
53 
55  static DtStateRepCreator setStateRepCreator( DtStateRepCreator creator );
56 
58  virtual void tick();
59 
63  virtual void forceUpdate();
64 
68  virtual void forceUpdate( const RTI::AttributeHandleSet& set );
69 
70 protected:
71 
74 
75  virtual void syncPropulsionNoisePublisher();
76 
78 
81 
86  virtual void syncAdditionalPassiveActivitiesList();
87 
90  virtual DtAdditionalPassiveActivitiesPublisher* publisherForApaSr(
92 
94  virtual int numAdditionalPassiveActivities() const;
95 
97 
100 
105  virtual void syncActiveSonarList();
106 
109  virtual DtActiveSonarPublisher* publisherForSonarSr(
111 
113  virtual int numActiveSonars() const;
114 
116 
117 protected:
118 
124  const char* name = 0,
125  const DtDDMRegionSet* regionSetToUse = 0);
126 
129 
132 
133 protected:
134 
135  static DtStateRepCreator theStateRepCreator;
136 
137  DtString myName;
138 
139  unsigned int myAdditionalPassiveActivityCounter;
140 
141  DtPropulsionNoisePublisher* myPropulsionNoisePublisher;
142 
143  DtList myAdditionalPassiveActivityPubs;
144 
145  DtList myActiveSonarPubs;
146 
147 };
148 
150 {
152 }
153 
155 {
157 }
158 
159 #endif
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:176
virtual DtUnderwaterAcousticsStateRepository * usr()
Definition: underwaterAcousticsPublisherDIS.h:112
Instances of DtUnderwaterAcousticsPublisher are used to take care of the details associated with publ...
Definition: underwaterAcousticsPublisherDIS.h:23
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
virtual DtUnderwaterAcousticsStateRepository * underwaterAcousticsStateRep()
Get the active sonar state repository for this underwater acoustics publisher.
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 DtPropulsionNoisePublisher are used to take care of the details associated with publishi...
Definition: propulsionNoisePublisherDIS.h:23
class DtAdditionalPassiveActivitiesRepository
Definition: additionalPassiveActivitiesRepository.h:20
DtList is deprecated, please use std::list&lt;T&gt;.
Definition: vlList.h:71
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
Instances of DtUnderwaterAcousticsStateRepository are used to store state data for all underwater aco...
Definition: underwaterAcousticsStateRepository.h:37
class DtPropulsionNoiseStateRepository
Definition: propulsionNoiseStateRepository.h:22
Instances of DtAdditionalPassiveActivitiesPublisher are used to take care of the details associated w...
Definition: additionalPassiveActivitiesPublisherDIS.h:23
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
virtual void tick()=0
Tick (update) this object.
Instances of DtString are used to represent strings.
Definition: vlString.h:29

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)