VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtRadarWarningReceiverDescriptor Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtRadarWarningReceiverDescriptor:
[legend]

Public Member Functions

 DtRadarWarningReceiverDescriptor (const DtString &name, DtReaderWriterRegistry *parentRegistry=0)
 
 DtRadarWarningReceiverDescriptor (const DtRadarWarningReceiverDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0)
 
DtRadarWarningReceiverDescriptoroperator= (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 ()
 

Constructor & Destructor Documentation

◆ DtRadarWarningReceiverDescriptor() [1/3]

makVre::DtRadarWarningReceiverDescriptor::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=().

◆ DtRadarWarningReceiverDescriptor() [2/3]

makVre::DtRadarWarningReceiverDescriptor::DtRadarWarningReceiverDescriptor ( const DtString & name,
DtReaderWriterRegistry * parentRegistry = 0 )

Constructor with component name.

Parameters
nameThe name of this component
parentRegistryParent registry for reader/writer functionality (optional)

Creates a new Radar Warning Receiver descriptor with the specified name.

◆ DtRadarWarningReceiverDescriptor() [3/3]

makVre::DtRadarWarningReceiverDescriptor::DtRadarWarningReceiverDescriptor ( const DtRadarWarningReceiverDescriptor & orig,
DtReaderWriterRegistry * parentRegistry = 0 )

Copy constructor.

Parameters
origThe source descriptor to copy from
parentRegistryParent registry for reader/writer functionality (optional)

Creates a new Radar Warning Receiver descriptor as a copy of the provided original.

References DtRadarWarningReceiverDescriptor().

◆ ~DtRadarWarningReceiverDescriptor()

virtual makVre::DtRadarWarningReceiverDescriptor::~DtRadarWarningReceiverDescriptor ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the descriptor.

Member Function Documentation

◆ operator=()

DtRadarWarningReceiverDescriptor & makVre::DtRadarWarningReceiverDescriptor::operator= ( const DtRadarWarningReceiverDescriptor & orig)

Assignment operator.

Parameters
origThe source descriptor to copy from
Returns
Reference to this descriptor after assignment

Assigns the contents of the provided descriptor to this one.

References DtRadarWarningReceiverDescriptor().

◆ type()

virtual DtString makVre::DtRadarWarningReceiverDescriptor::type ( ) const
overridevirtual

Gets the type identifier for this descriptor.

Returns
String identifying this descriptor type

Returns a unique type identifier string for this descriptor type. Will return DtRadarWarningReceiverDescriptorType.

◆ detectionPeriod()

virtual DtReal makVre::DtRadarWarningReceiverDescriptor::detectionPeriod ( ) const
virtual

Gets the detection period.

Returns
The detection period in seconds

Returns the time between checks for new radar emitters.

Referenced by setDetectionPeriod().

◆ setDetectionPeriod()

virtual void makVre::DtRadarWarningReceiverDescriptor::setDetectionPeriod ( DtReal detectionPeriod)
virtual

Sets the detection period.

Parameters
detectionPeriodThe detection period in seconds

Sets the time between checks for new radar emitters.

References detectionPeriod().

◆ detectionPeriodVariance()

virtual DtReal makVre::DtRadarWarningReceiverDescriptor::detectionPeriodVariance ( ) const
virtual

Gets the detection period variance.

Returns
The detection period variance in seconds

Returns the magnitude of random variance added to the detection period.

Referenced by setDetectionPeriodVariance().

◆ setDetectionPeriodVariance()

virtual void makVre::DtRadarWarningReceiverDescriptor::setDetectionPeriodVariance ( DtReal detectionPeriodVariance)
virtual

Sets the detection period variance.

Parameters
detectionPeriodVarianceThe detection period variance in seconds

Sets the magnitude of random variance added to the detection period.

References detectionPeriodVariance().

◆ setEmitterDetectionRange()

virtual void makVre::DtRadarWarningReceiverDescriptor::setEmitterDetectionRange ( double range)
virtual

Sets the emitter detection range.

Parameters
rangeThe maximum detection range in meters

Sets the maximum range at which radar emitters can be detected.

◆ emitterDetectionRange()

virtual double makVre::DtRadarWarningReceiverDescriptor::emitterDetectionRange ( ) const
virtual

Gets the emitter detection range.

Returns
The maximum detection range in meters

Returns the maximum range at which radar emitters can be detected.

◆ clone()

virtual DtComponentDescriptor * makVre::DtRadarWarningReceiverDescriptor::clone ( DtReaderWriterRegistry * parentRegistry = 0) const
overridevirtual

Creates a clone of this descriptor.

Parameters
parentRegistryParent registry for reader/writer functionality (optional)
Returns
Pointer to a new descriptor that is a clone of this one

Creates a new Radar Warning Receiver descriptor as a deep copy of this one.

◆ creator()

static DtComponentDescriptor * makVre::DtRadarWarningReceiverDescriptor::creator ( )
static

Factory function to create a new instance of this descriptor.

Returns
Pointer to a newly created descriptor

Static factory function used by the descriptor creation system to instantiate new instances of this descriptor type.

◆ getSelf()

virtual void makVre::DtRadarWarningReceiverDescriptor::getSelf ( DtlObjPtr args,
const DtReaderWriter::SearchPaths & searchPaths,
const DtVariableBindingsList & variableBindings )
overridevirtual

Gets configuration data for this descriptor from script arguments.

Parameters
argsScript arguments to process
searchPathsSearch paths for resolving file references
variableBindingsVariable bindings for resolving script variables

Processes script arguments to configure this descriptor instance.

Member Data Documentation

◆ myDetectionPeriod

DtRwReal makVre::DtRadarWarningReceiverDescriptor::myDetectionPeriod
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

◆ myDetectionPeriodVariance

DtRwReal makVre::DtRadarWarningReceiverDescriptor::myDetectionPeriodVariance
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

◆ myEmitterDetectionRange

DtRwReal makVre::DtRadarWarningReceiverDescriptor::myEmitterDetectionRange
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


The documentation for this class was generated from the following file: