VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
counterBatterySensorPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
9 #include "readerWriter/rwReal.h"
10 #include "readerWriter/rwInt.h"
11 #include "readerWriter/rwVector.h"
12 #include "vrfutil/rwTemplatedMap.h"
14 
17 
20 
22 {
23 public:
25  DtCounterBatterySignatureAccumulator(const DtString& rwName = DtString::nullString(),
26  DtReaderWriterRegistry* parentRegistry = 0,
27  bool readonly = false);
28 
30  DtReaderWriterRegistry* parentRegistry = NULL,
31  bool readonly = false);
32 
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
39 
42 
44 
45  virtual double baseSignature() const;
46  virtual void setBaseSignature(double val);
48 
50 
51  virtual DtUUID contactUUID() const;
52  virtual void setContactUUID(const DtUUID& uuid);
54 
56 
57  virtual double forgetTime() const;
58  virtual void setForgetTime(double val);
60 
62 
63  virtual const DtVector& geocentricAverage() const;
64  virtual void setGeocentricAverage(const DtVector& geoc);
66 
68 
69  virtual int numberFireEvents() const;
70  virtual void setNumberFireEvents(int val);
72 
73 protected:
74 
79 
83 
88 
92 
97 };
98 
99 
101 {
102 public:
103 
105 
108  const DtString& rwName = DtString::nullString(),
109  DtReaderWriterRegistry* parentRegistry = 0);
110 
113  const DtString& rwName = DtString::nullString(),
114  DtReaderWriterRegistry* parentRegistry = 0);
115 
117  virtual ~DtCounterBatterySensorPSR();
118 
121 
124  const DtString& rwName = DtString::nullString(),
125  DtReaderWriterRegistry* parentRegistry = 0) const;
126 
128  virtual DtString type() const;
129 
131  virtual const DtRwTemplatedUUIDList& contactsToRemove() const;
132  virtual DtRwTemplatedUUIDList& contactsToRemove();
133 
136  virtual SignatureAccumulatorMap::const_iterator cbegin() const;
137  virtual SignatureAccumulatorMap::iterator begin();
138  virtual SignatureAccumulatorMap::const_iterator cend() const;
139  virtual SignatureAccumulatorMap::iterator end();
140 
142  virtual void clearDetections();
143 
144  virtual SignatureAccumulatorMap::const_iterator cfind(const DtUUID& uuid) const;
145  virtual SignatureAccumulatorMap::iterator find(const DtUUID& uuid);
146 
147  virtual SignatureAccumulatorMap::iterator insert(const DtUUID& uuid);
148  virtual void removeSignatureAccumulator(const DtUUID& uuid);
149 
150  virtual void remove(SignatureAccumulatorMap::iterator& it);
151 
153 
154 
156  static DtVrfProcessStateRepository* creator (const DtString& rwName,
157  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
158 
159 protected:
160 
163 
164 
165 };
166 
Definition: rwTemplatedList.h:189
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Extends DtRadarObjectSensorPSR.
Definition: counterBatterySensorPSR.h:21
virtual DtString type() const
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
static DtVrfProcessStateRepository * creator(const DtString &rwName, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
Returns a newly created instance of this class.
std::map< DtRwUUID, DtCounterBatterySignatureAccumulator >::iterator iterator
Definition: rwTemplatedMap.h:101
DtRwReal myForgetTime
Parameter Name: forget-time Parameter Description: Simulation time to forget track. Parameter Default Value: 0.0 .
Definition: counterBatterySensorPSR.h:87
DtRadarObjectSensorPSR & operator=(const DtRadarObjectSensorPSR &orig)
assignment operator - not implemented
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
DtRwInt myNumberFireEvents
Parameter Name: num-fire-events Parameter Description: Number of times firing. Parameter Default Valu...
Definition: counterBatterySensorPSR.h:96
uuid class
Definition: rwUUID.h:26
Definition: rwVector.h:23
SignatureAccumulatorMap mySignatureAccumulators
Definition: counterBatterySensorPSR.h:162
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwUUID myContactUUID
Parameter Name: contact-uuid Parameter Description: UUID of contact. .
Definition: counterBatterySensorPSR.h:82
DtRwVector myGeocentricAverage
Parameter Name: geocentric-average Parameter Description: Average geocentric location of accumulated ...
Definition: counterBatterySensorPSR.h:91
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwTemplatedMapPtr< DtRwUUID, DtCounterBatterySignatureAccumulator > SignatureAccumulatorMap
Definition: counterBatterySensorPSR.h:104
Process State Repositor for the DtRadarObjectSensor component.
Definition: radarObjectSensorPSR.h:22
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
DtRwReal myBaseSignature
Parameter Name: base-signature Parameter Description: Base signature. Parameter Default Value: 0...
Definition: counterBatterySensorPSR.h:78
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
Definition: counterBatterySensorPSR.h:100
std::map< DtRwUUID, DtCounterBatterySignatureAccumulator >::const_iterator const_iterator
Definition: rwTemplatedMap.h:102
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
returns a newly created copy of this object
File: rwVector.h.
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
DtRwTemplatedUUIDList myContactsToRemove
Definition: counterBatterySensorPSR.h:161

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)