|
VR-Engage
2.2
|
This class defines a descriptor for the Radar Warning Receiver component, which allows entities to detect radar emissions from other entities in the simulation. It provides configuration for detection periods, ranges, and other parameters that control how radar emissions are detected and classified.
#include <radarWarningReceiverDescriptor.h>
Public Member Functions | |
| DtRadarWarningReceiverDescriptor (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| DtRadarWarningReceiverDescriptor (const DtRadarWarningReceiverDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| DtRadarWarningReceiverDescriptor & | operator= (const DtRadarWarningReceiverDescriptor &orig) |
| virtual | ~DtRadarWarningReceiverDescriptor () override |
| virtual DtString | type () const override |
| virtual DtReal | detectionPeriod () const |
| virtual void | setDetectionPeriod (DtReal detectionPeriod) |
| virtual DtReal | detectionPeriodVariance () const |
| virtual void | setDetectionPeriodVariance (DtReal detectionPeriodVariance) |
| virtual void | setEmitterDetectionRange (double range) |
| virtual double | emitterDetectionRange () const |
| virtual DtComponentDescriptor * | clone (DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override |
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Attributes | |
Configuration Parameters | |
These parameters are available for setting in the OPD files. | |
| DtRwReal | myDetectionPeriod |
| DtRwReal | myDetectionPeriodVariance |
| DtRwReal | myEmitterDetectionRange |
Private Member Functions | |
| DtRadarWarningReceiverDescriptor () | |
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
Referenced by DtRadarWarningReceiverDescriptor(), and operator=().
| makVre::DtRadarWarningReceiverDescriptor::DtRadarWarningReceiverDescriptor | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with component name.
| name | The name of this component |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new Radar Warning Receiver descriptor with the specified name.
| makVre::DtRadarWarningReceiverDescriptor::DtRadarWarningReceiverDescriptor | ( | const DtRadarWarningReceiverDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new Radar Warning Receiver descriptor as a copy of the provided original.
References DtRadarWarningReceiverDescriptor().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
| DtRadarWarningReceiverDescriptor & makVre::DtRadarWarningReceiverDescriptor::operator= | ( | const DtRadarWarningReceiverDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtRadarWarningReceiverDescriptor().
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type. Will return DtRadarWarningReceiverDescriptorType.
|
virtual |
Gets the detection period.
Returns the time between checks for new radar emitters.
Referenced by setDetectionPeriod().
|
virtual |
Sets the detection period.
| detectionPeriod | The detection period in seconds |
Sets the time between checks for new radar emitters.
References detectionPeriod().
|
virtual |
Gets the detection period variance.
Returns the magnitude of random variance added to the detection period.
Referenced by setDetectionPeriodVariance().
|
virtual |
Sets the detection period variance.
| detectionPeriodVariance | The detection period variance in seconds |
Sets the magnitude of random variance added to the detection period.
References detectionPeriodVariance().
|
virtual |
Sets the emitter detection range.
| range | The maximum detection range in meters |
Sets the maximum range at which radar emitters can be detected.
|
virtual |
Gets the emitter detection range.
Returns the maximum range at which radar emitters can be detected.
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new Radar Warning Receiver descriptor as a deep copy of this one.
|
static |
Factory function to create a new instance of this descriptor.
Static factory function used by the descriptor creation system to instantiate new instances of this descriptor type.
|
overridevirtual |
Gets configuration data for this descriptor from script arguments.
| args | Script arguments to process |
| searchPaths | Search paths for resolving file references |
| variableBindings | Variable bindings for resolving script variables |
Processes script arguments to configure this descriptor instance.
|
protected |
Time between radar emission detection checks.
The time interval between consecutive checks for new radar emitters or the removal of previously detected emitters. If an emitter has a 1 in 10 chance of being detected in each detection period, and the detection period is 1 second, then the emitter can be expected to be detected within 10 seconds on average.
Default value: 1.0 Units: seconds
|
protected |
Random variance for detection period timing.
Magnitude of random variance added to the detection period to spread checks out over different simulation ticks. This helps prevent synchronized detection patterns and creates more realistic detection behavior.
Default value: 0.0 Units: seconds
|
protected |
Maximum detection range for radar emitters.
The maximum distance at which this Radar Warning Receiver can detect radar emissions from other entities. Emissions beyond this range will not be detected regardless of their power or characteristics.
Default value: 5000.0 Units: meters