VR-Forces 5.0.2 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:
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:
45  virtual DtLocalObjectDecorator* createDecorator(DtLocalObject* o) const { throw makVrf::DtUnimplementedMethod("The DtSensorSignatureDecorator is not created for the DtLocalObject."); };
46 
47  virtual const char* DecoratorType() const { return "DtSensorSignatureDecorator"; };
48 };
int myTriggerStatus
Definition: sensorSignatureDecorator.h:37
Definition: stateDataTypes.h:23
bool myUseHardCodedSignatures
Definition: sensorSignatureDecorator.h:36
Definition: symbolString.h:20
The DtSensorSignatureeDecoratorCreator will create the appropriate type of sensor signature proxy log...
Definition: sensorSignatureDecorator.h:41
#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
virtual const char * DecoratorType() const
Definition: sensorSignatureDecorator.h:47
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:79
virtual DtLocalObjectDecorator * createDecorator(DtLocalObject *o) const
Definition: sensorSignatureDecorator.h:45
Definition: decoratorBase.h:53
Definition: decoratorBase.h:30
virtual DtSimObjectDecorator * createDecorator(const DtSimObject *o) const
Definition: sensorSignatureDecorator.h:44
Definition: decoratorBase.h:40
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. 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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)