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>
|
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| |
◆ 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]
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
-
| name | The name of this component |
| owner | The local object that owns this component |
| simManager | The simulation services manager |
| desc | Component descriptor with configuration parameters |
| parentRegistry | Optional 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.
◆ operator=()
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()
Handles messages to enable or disable the RWR.
- Parameters
-
| msg | The 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
-
| name | The name for the new component |
| owner | The local object that will own this component |
| simManager | The simulation services manager |
| desc | Optional component descriptor |
| parentRegistry | Optional 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()
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.
◆ myProcessState
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
Pointer to the component descriptor.
Contains configuration parameters for the radar warning receiver, such as detection ranges, frequency bands, and visualization settings.
◆ myMonitor
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: