VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sensorSignatureDecorator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <tbb/spin_rw_mutex.h>
12 
13 #include <boost/signals2.hpp>
14 
17 {
18 public:
20  virtual ~DtSensorSignatureSimObjectDecorator() override;
21 
22  virtual double sensorSignature(const DtSymbolString&) const;
23 
24 protected:
26  virtual void updateHardCodedSensorSignatures();
27 
28 protected:
30  typedef std::map<DtSymbolString, std::pair<double, double> > SensorSignatureMap;
32  mutable tbb::spin_rw_mutex mySensorSignatureMapMutex;
33 
34  boost::signals2::scoped_connection mySensorSignaturesUpdatedConenction;
35 
38 };
39 
42 {
43 public:
44  virtual DtSimObjectDecorator* createDecorator(const DtSimObject* o) const override
45  { return new DtSensorSignatureSimObjectDecorator(o); };
47  { throw makVrf::DtUnimplementedMethod("The DtSensorSignatureDecorator is not created for the DtLocalObject."); };
48 
49  virtual const char* DecoratorType() const override { return "DtSensorSignatureDecorator"; };
50 };
int myTriggerStatus
Definition: sensorSignatureDecorator.h:37
Definition: stateDataTypes.h:23
bool myUseHardCodedSignatures
Definition: sensorSignatureDecorator.h:36
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
The DtSensorSignatureeDecoratorCreator will create the appropriate type of sensor signature proxy log...
Definition: sensorSignatureDecorator.h:41
virtual const char * DecoratorType() const override
Definition: sensorSignatureDecorator.h:49
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
This will keep track of the objects sensor signature.
Definition: sensorSignatureDecorator.h:16
SensorSignatureMap mySensorSignatureMap
Definition: sensorSignatureDecorator.h:31
tbb::spin_rw_mutex mySensorSignatureMapMutex
Definition: sensorSignatureDecorator.h:32
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
Definition: decoratorBase.h:57
Definition: decoratorBase.h:30
virtual DtLocalObjectDecorator * createDecorator(DtLocalObject *o) const override
Definition: sensorSignatureDecorator.h:46
virtual DtSimObjectDecorator * createDecorator(const DtSimObject *o) const override
Definition: sensorSignatureDecorator.h:44
Definition: decoratorBase.h:44
boost::signals2::scoped_connection mySensorSignaturesUpdatedConenction
Definition: sensorSignatureDecorator.h:34
std::map< DtSymbolString, std::pair< double, double > > SensorSignatureMap
Information to cache sensor signature. Will only recalculate if not calculated or sim time is &gt; last ...
Definition: sensorSignatureDecorator.h:30
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)