VR-Link API Documentation for HLA 1.3
 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 MAK Technologies, Inc
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 };
Definition: underwaterAcousticsStateRepository.h:21
Definition: underwaterAcousticsStateRepository.h:22
DtSonarSysRetCode
Error codes for looking up individual active sonars.
Definition: underwaterAcousticsStateRepository.h:19
Definition: underwaterAcousticsStateRepository.h:30
static DtApaStateRepCreator theApaStateRepCreator
Definition: underwaterAcousticsStateRepository.h:210
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file contains the declaration of DtList and DtListItem.
DtUnderwaterAcousticsEmissionRepository & operator=(const DtUnderwaterAcousticsEmissionRepository &orig)
Assignment Operator.
Contains the DtUnderwaterAcousticsEmissionRepository class declaration.
Contains the DtActiveSonarStateRepository class declaration.
DtList myAdditionalPassiveActivitiesList
APA state rep.
Definition: underwaterAcousticsStateRepository.h:217
virtual void setEventIdentifier(const DtEventId &val)
Set the EventIdentifier.
static DtActiveSonarStateRepCreator theActiveSonarStateRepCreator
Definition: underwaterAcousticsStateRepository.h:211
class DtAdditionalPassiveActivitiesRepository
Definition: additionalPassiveActivitiesRepository.h:20
DtUnderwaterAcousticPropulsionPlantConfig
Definition: disEnums.h:2454
virtual void printData() const
Print data to the DtInfo stream.
Definition: underwaterAcousticsStateRepository.h:23
DtList is deprecated, please use std::list&lt;T&gt;.
Definition: vlList.h:71
Instances of DtUnderwaterAcousticsEmissionStateRepository are used to store state data for EmbeddedSy...
Definition: underwaterAcousticsEmissionRepository.h:18
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
Instances of DtUnderwaterAcousticsStateRepository are used to store state data for all underwater aco...
Definition: underwaterAcousticsStateRepository.h:37
DtPropulsionNoiseStateRepository myPropulsionNoiseState
Propulsion noise state rep.
Definition: underwaterAcousticsStateRepository.h:214
class DtPropulsionNoiseStateRepository
Definition: propulsionNoiseStateRepository.h:22
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:137
Contains the DtPropulsionNoiseStateRepository class declaration.
virtual void setEntityId(const DtEntityIdentifier &id)
Set the entity identifier.
Represents Events in the RPR FOM.
Definition: eventId.h:52
Definition: underwaterAcousticsStateRepository.h:29
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
virtual void printDataToStream(std::ostream &stream) const
Print data to the specified stream.
DtApaRetCode
Error codes for looking up individual APAs.
Definition: underwaterAcousticsStateRepository.h:27
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:140
Contains the DtAdditionalPassiveActivitiesRepository class declaration.
DtList myActiveSonarList
List of active sonars in this system.
Definition: underwaterAcousticsStateRepository.h:220
Instances of DtString are used to represent strings.
Definition: vlString.h:29
static DtUnderwaterAcousticsEmissionRepository * create()
Create a DtUnderwaterAcousticsEmissionStateRepository.
Definition: underwaterAcousticsStateRepository.h:31
virtual DtStateRepository * clone(bool copy) const
Return a copy/empty object of the same type as this.
virtual void setHostId(const DtGlobalObjectDesignator &id)
Set the host identifier.

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)