WSF
WsfPassiveSensor::Interactor Class Reference

An internal class used to keep track of interacting transmitters and receivers. More...

#include <WsfPassiveSensor.hpp>

Collaboration diagram for WsfPassiveSensor::Interactor:

Public Types

enum  { cDS_NOT_ATTEMPTED = 0 , cDS_DETECTED = 1 , cDS_FAILED_GEOMETRY = 2 , cDS_FAILED_SIGNAL = 3 }

Public Member Functions

 Interactor ()=delete
 Interactor (WsfEM_Xmtr *aXmtrPtr, PassiveRcvr *aRcvrPtr, bool aUseListener, bool aUseChangeListener)

Public Attributes

WsfEM_XmtrmXmtrPtr = nullptr
 Pointer to the transmitter.
PassiveRcvrmRcvrPtr = nullptr
 Pointer to the receiver.
WsfSensorResultmResultPtr = nullptr
double mLastAttemptTime = 0.0
 The time when the last listening detection was attempted (successful or unsuccessful).
double mPSOS_CumulativePd = 0.0
 The cumulative Pd accumulated over multiple detection chances (for PSOS).
unsigned char mDetectStatus = cDS_NOT_ATTEMPTED
bool mUseListener = false
 'true' if the listening detection method should be used (vs. polling)
bool mUseChangeListener = false
 'true' if target signal updates are to be listened for and updated (vs. polling).

Detailed Description

An internal class used to keep track of interacting transmitters and receivers.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Detection status for the listener detection method. This is set to cDS_NO_ATTEMPT at the start of each frame and then updated asynchronously during the frame by the listener detection method.

Enumerator
cDS_NOT_ATTEMPTED 

No detection attempt was performed.

cDS_DETECTED 

A detection attempt was successful.

cDS_FAILED_GEOMETRY 

Failed detection because of geometric constraints.

cDS_FAILED_SIGNAL 

Failed detection because of insufficient received signal.

Constructor & Destructor Documentation

◆ Interactor() [1/2]

WsfPassiveSensor::Interactor::Interactor ( )
delete

References Interactor().

Referenced by Interactor().

◆ Interactor() [2/2]

WsfPassiveSensor::Interactor::Interactor ( WsfEM_Xmtr * aXmtrPtr,
PassiveRcvr * aRcvrPtr,
bool aUseListener,
bool aUseChangeListener )

Member Data Documentation

◆ mDetectStatus

unsigned char WsfPassiveSensor::Interactor::mDetectStatus = cDS_NOT_ATTEMPTED

The detection status during the current frame. This is kept as an unsigned char rather than a enum because enums are 4 bytes on many machines, and this class can be instantiated A LOT.

Referenced by WsfPassiveSensor::PassiveMode::AttemptToDetect(), WsfPassiveSensor::PassiveMode::EmitterActiveCallback(), and Interactor().

◆ mLastAttemptTime

double WsfPassiveSensor::Interactor::mLastAttemptTime = 0.0

The time when the last listening detection was attempted (successful or unsuccessful).

Referenced by WsfPassiveSensor::PassiveMode::AttemptToDetect(), WsfPassiveSensor::PassiveMode::EmitterActiveCallback(), and Interactor().

◆ mPSOS_CumulativePd

double WsfPassiveSensor::Interactor::mPSOS_CumulativePd = 0.0

The cumulative Pd accumulated over multiple detection chances (for PSOS).

Referenced by WsfPassiveSensor::PassiveBeam::ComputePSOS_Effects(), Interactor(), and WsfPassiveSensor::PassiveBeam::ProcessFailedPSOS_Detection().

◆ mRcvrPtr

PassiveRcvr* WsfPassiveSensor::Interactor::mRcvrPtr = nullptr

Pointer to the receiver.

Referenced by WsfPassiveSensor::PassiveMode::AttemptToDetect(), and Interactor().

◆ mResultPtr

WsfSensorResult* WsfPassiveSensor::Interactor::mResultPtr = nullptr

The pointer to the result from listening method of detection. (0 if a using polling or a listening method of detection is not being used.)

Referenced by WsfPassiveSensor::PassiveMode::AttemptToDetect(), WsfPassiveSensor::PassiveMode::EmitterActiveCallback(), and Interactor().

◆ mUseChangeListener

bool WsfPassiveSensor::Interactor::mUseChangeListener = false

'true' if target signal updates are to be listened for and updated (vs. polling).

Referenced by Interactor().

◆ mUseListener

bool WsfPassiveSensor::Interactor::mUseListener = false

'true' if the listening detection method should be used (vs. polling)

Referenced by WsfPassiveSensor::PassiveBeam::AttemptToDetect(), WsfPassiveSensor::PassiveMode::AttemptToDetect(), and Interactor().

◆ mXmtrPtr

WsfEM_Xmtr* WsfPassiveSensor::Interactor::mXmtrPtr = nullptr

Pointer to the transmitter.

Referenced by WsfPassiveSensor::PassiveMode::AttemptToDetect(), and Interactor().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved