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

Detailed Description

DtRadarWarningReceiver provides the functionality needed to detect and track radar signals that are targeting the entity. It maintains a list of detected radar emitters, their signal characteristics, and threat levels. The component communicates with visualization systems through a monitor to provide up-to-date threat information to the user interface.

Uses Descriptor Type: DtRadarWarningReceiverDescriptor

#include <radarWarningReceiver.h>

Inheritance diagram for makVre::DtRadarWarningReceiver:
[legend]

Public Member Functions

 DtRadarWarningReceiver (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtRadarWarningReceiver () override
 
virtual bool init () override
 
virtual const char * type () const override
 
virtual void preFirstTickInit () override
 
virtual void tick () override
 
virtual DtVreMessageResult handleRwrSetEnabledMessage (DtVreMessage *msg)
 
virtual bool tickWhileDestroyed () const override
 

Static Public Member Functions

static DtSimComponent * creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 

Protected Member Functions

virtual bool createPortGroups () override
 
virtual bool createPorts () override
 
virtual DtRadarWarningReceiverPSRcreatePSR ()
 
virtual const char * defaultPSRType () const
 
virtual bool createAndInitRwrMonitor ()
 

Protected Attributes

DtRadarWarningReceiverPSRmyProcessState
 
const DtRadarWarningReceiverDescriptormyRwrDescriptor
 
DtRwrMonitormyMonitor
 

Private Member Functions

 DtRadarWarningReceiver ()
 
 DtRadarWarningReceiver (const DtRadarWarningReceiver &orig)
 
const DtRadarWarningReceiveroperator= (const DtRadarWarningReceiver &orig)
 

Constructor & Destructor Documentation

◆ DtRadarWarningReceiver() [1/3]

makVre::DtRadarWarningReceiver::DtRadarWarningReceiver ( )
private

Default constructor (not implemented)

Default constructor is private and not implemented to prevent creation of instances without proper initialization.

Referenced by DtRadarWarningReceiver(), and operator=().

◆ DtRadarWarningReceiver() [2/3]

makVre::DtRadarWarningReceiver::DtRadarWarningReceiver ( const DtRadarWarningReceiver & orig)
private

Copy constructor (not implemented)

Copy constructor is private and not implemented to prevent copy construction.

References DtRadarWarningReceiver().

◆ DtRadarWarningReceiver() [3/3]

makVre::DtRadarWarningReceiver::DtRadarWarningReceiver ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )

Constructor.

Parameters
nameThe name of this component
ownerThe local object that owns this component
simManagerThe simulation services manager
descComponent descriptor with configuration parameters
parentRegistryOptional parent registry for reader/writer functionality

Creates a new radar warning receiver component with the specified parameters.

◆ ~DtRadarWarningReceiver()

virtual makVre::DtRadarWarningReceiver::~DtRadarWarningReceiver ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the radar warning receiver component, including the monitor and process state repository.

Member Function Documentation

◆ operator=()

const DtRadarWarningReceiver & makVre::DtRadarWarningReceiver::operator= ( const DtRadarWarningReceiver & orig)
private

Assignment operator (not implemented)

Returns
Reference to this object

Assignment operator is private and not implemented to prevent assignment.

References DtRadarWarningReceiver().

◆ init()

virtual bool makVre::DtRadarWarningReceiver::init ( )
overridevirtual

Initializes the radar warning receiver component.

Returns
True if initialization is successful, false otherwise

Performs component initialization, including creating the process state repository (PSR) by calling createPSR().

◆ type()

virtual const char * makVre::DtRadarWarningReceiver::type ( ) const
overridevirtual

Gets the type identifier for this component.

Returns
String identifying the component type (DtVreRadarWarningReceiverType)

Implements the DtSimComponent::type() method to return the type identifier for this component.

◆ preFirstTickInit()

virtual void makVre::DtRadarWarningReceiver::preFirstTickInit ( )
overridevirtual

Performs initialization before the first simulation tick.

Performs one-time setup tasks that must be completed before the first simulation tick, such as initializing the RWR monitor.

◆ tick()

virtual void makVre::DtRadarWarningReceiver::tick ( )
overridevirtual

Updates the component state each simulation frame.

Processes radar signal detection logic each simulation frame, updating the list of detected emitters and their threat levels. Also handles communication with the monitor for visualization.

◆ handleRwrSetEnabledMessage()

virtual DtVreMessageResult makVre::DtRadarWarningReceiver::handleRwrSetEnabledMessage ( DtVreMessage * msg)
virtual

Handles messages to enable or disable the RWR.

Parameters
msgThe message containing enable/disable request
Returns
Message processing result indicating success or failure

Processes messages that request changing the enabled state of the radar warning receiver.

◆ tickWhileDestroyed()

virtual bool makVre::DtRadarWarningReceiver::tickWhileDestroyed ( ) const
overridevirtual

Determines if this component should tick while the entity is destroyed.

Returns
Always returns true for RWR components

The radar warning receiver continues to tick even when the entity is destroyed so that it can notify any subscribed GUIs that it is no longer detecting objects. This ensures proper cleanup of visualization displays.

◆ creator()

static DtSimComponent * makVre::DtRadarWarningReceiver::creator ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )
static

Factory method to create a new instance of this component.

Parameters
nameThe name for the new component
ownerThe local object that will own this component
simManagerThe simulation services manager
descOptional component descriptor
parentRegistryOptional parent registry for reader/writer functionality
Returns
Pointer to the newly created component

Static factory method used by the component creation system to instantiate new instances of this component type.

◆ createPortGroups()

virtual bool makVre::DtRadarWarningReceiver::createPortGroups ( )
overrideprotectedvirtual

Creates input and output port groups for the component.

Returns
True if port groups were created successfully, false otherwise

Creates and initializes the port groups used by this component for receiving and transmitting data related to radar warnings.

◆ createPorts()

virtual bool makVre::DtRadarWarningReceiver::createPorts ( )
overrideprotectedvirtual

Creates input and output ports for the component.

Returns
True if ports were created successfully, false otherwise

Creates the target list port and any other ports needed by the radar warning receiver to communicate with other components.

◆ createPSR()

virtual DtRadarWarningReceiverPSR * makVre::DtRadarWarningReceiver::createPSR ( )
protectedvirtual

Creates the process state repository for the component.

Returns
Pointer to the created process state repository

Creates the myProcessState data member and adds it to the process state repository manager. Uses the name and type specified in the component descriptor (if they exist) or appropriate defaults if not specified. The PSR maintains the state of detected radar emitters and their properties.

◆ defaultPSRType()

virtual const char * makVre::DtRadarWarningReceiver::defaultPSRType ( ) const
protectedvirtual

Gets the default process state repository type.

Returns
String identifying the default PSR type (DtVrfRwrProcessStateRepositoryType)

Returns the default process state repository type for this component. Derived classes may override this to return their own default PSR type if a different PSR type is desired.

◆ createAndInitRwrMonitor()

virtual bool makVre::DtRadarWarningReceiver::createAndInitRwrMonitor ( )
protectedvirtual

Creates and initializes the RWR monitor.

Returns
True if monitor creation and initialization succeeds, false otherwise

Creates a DtRwrMonitor instance and initializes it, establishing the connection between the radar warning receiver and the front-end visualization system for displaying radar warning information.

Member Data Documentation

◆ myProcessState

DtRadarWarningReceiverPSR* makVre::DtRadarWarningReceiver::myProcessState
protected

Pointer to the radar warning receiver process state repository.

Maintains state information about detected radar emitters, their properties, and threat levels. This state persists across simulation ticks and can be saved with scenarios.

◆ myRwrDescriptor

const DtRadarWarningReceiverDescriptor* makVre::DtRadarWarningReceiver::myRwrDescriptor
protected

Pointer to the component descriptor.

Contains configuration parameters for the radar warning receiver, such as detection ranges, frequency bands, and visualization settings.

◆ myMonitor

DtRwrMonitor* makVre::DtRadarWarningReceiver::myMonitor
protected

Pointer to the RWR monitor.

Handles communication with visualization clients, sending RWR contact information to the GUI or other applications that have requested the information. Maintains subscription lists and message handling.


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