VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
underwaterAcousticsStateRepository.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 
16 #include <vlutil/vlList.h>
17 
20 {
24 };
25 
28 {
32 };
33 
39 {
40 public:
41 
43  typedef DtAdditionalPassiveActivitiesRepository* (*DtApaStateRepCreator)();
44 
46  typedef DtActiveSonarStateRepository* (*DtActiveSonarStateRepCreator)();
47 
48 public:
49 
52 
55 
58 
61 
65 
67  virtual DtStateRepository* clone( bool copy ) const;
68 
70  static DtActiveSonarStateRepCreator setActiveSonarStateRepCreator(
71  DtActiveSonarStateRepCreator creator );
72 
74  virtual void printData() const;
75 
77  virtual void printDataToStream( std::ostream& stream ) const;
78 
81 
83  virtual void setEntityId( const DtEntityIdentifier& id );
84 
86  virtual void setHostId( const DtGlobalObjectDesignator& id );
87 
89  virtual void setEventIdentifier( const DtEventId& id );
90 
92 
95 
97  virtual void setHullMaskerOn( bool val );
98 
100  virtual bool hullMaskerOn() const;
101 
103  virtual void setPassiveParameterIndex( DtU16 val );
104 
106  virtual DtU16 passiveParameterIndex() const;
107 
109  virtual void setPropulsionPlantConfiguration(
111 
114  propulsionPlantConfiguration() const;
115 
117  virtual void setShaftRateData(
118  const std::vector<DtUnderwaterAcousticShaftSpeed>& val );
119 
121  virtual const std::vector<DtUnderwaterAcousticShaftSpeed>&
122  shaftRateData() const;
123 
125  virtual const DtPropulsionNoiseStateRepository& propNoiseStateRep() const;
126  virtual DtPropulsionNoiseStateRepository& propNoiseStateRep();
127 
129 
132 
134  virtual DtAdditionalPassiveActivitiesRepository* apaSRById(
135  DtU16 activityCode, DtApaRetCode* retcode = NULL );
136 
142  DtU16 activityCode = 0, DtApaRetCode* retcode = NULL );
143 
149  virtual DtApaRetCode removeApa( DtU16 activityCode );
150 #if DtHLA
151  virtual DtApaRetCode removeApa( const DtGlobalObjectDesignator& id );
152 #endif
153 
155  virtual int numAPAs() const;
156 
158  virtual const DtList* apaList() const;
159  virtual DtList* apaList();
160 
162  bool isMember( DtAdditionalPassiveActivitiesRepository* ssr ) const;
163 
165 
168 
170  virtual DtActiveSonarStateRepository* activeSonarSRById(
171  DtU8 acousticId, DtSonarSysRetCode* retcode = NULL );
172 
177  virtual DtActiveSonarStateRepository* addActiveSonar(
178  DtU8 acousticId = 0, DtSonarSysRetCode* retcode = NULL );
179 
185  virtual DtSonarSysRetCode removeActiveSonar( DtU8 acousticId );
186 #if DtHLA
187  virtual DtSonarSysRetCode removeActiveSonar( const DtGlobalObjectDesignator& id );
188 #endif
189 
191  virtual int numActiveSonars() const;
192 
194  virtual const DtList* activeSonarList() const;
195  virtual DtList* activeSonarList();
196 
198  bool isMember( DtActiveSonarStateRepository* ssr ) const;
199 
201 
202 protected:
203 
204  virtual void purgeApaList();
205 
206  virtual void purgeActiveSonarList();
207 
208 protected:
209 
210  static DtApaStateRepCreator theApaStateRepCreator;
211  static DtActiveSonarStateRepCreator theActiveSonarStateRepCreator;
212 
215 
218 
221 
222 };

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)