WSF
WsfEW_Result Class Reference

#include <WsfEW_Result.hpp>

Inheritance diagram for WsfEW_Result:
Collaboration diagram for WsfEW_Result:

Public Member Functions

 WsfEW_Result ()=default
 ~WsfEW_Result () override=default
Public Member Functions inherited from WsfComponentT< WsfEM_Interaction >
 WsfComponentT ()
WsfComponentToperator= (const WsfComponentT &) noexcept
 ~WsfComponentT () override=default
virtual void ComponentParentChanged (ParentType *aParentPtr)
ParentTypeGetComponentParent () const
void SetComponentParent (ParentType *aParentPtr)
Public Member Functions inherited from WsfComponent
virtual ~WsfComponent ()=default
virtual int GetComponentInitializationOrder () const
template<typename T>
bool QueryInterfaceT (T *&aRolePtr)
bool ComponentHasRole (int aRole)
 Returns true if the component has the specified role.
virtual bool PreInitialize (double aSimTime)
virtual bool Initialize (double aSimTime)
virtual bool Initialize2 (double aSimTime)
virtual void PreInput ()
virtual bool ProcessInput (UtInput &aInput)

Static Public Member Functions

static WsfEW_ResultFind (const WsfEM_Interaction &aEM_Interaction)
static WsfEW_ResultFindOrCreate (WsfEM_Interaction &aResult)

Component infrastructure methods

WsfEW_Effects mEW_Effects
 EW Effects result data and methods.
double mNoiseJammerPower {0.0}
double mPulseJammerPower {0.0}
double mCoherentJammerPower {0.0}
bool mPerceivesCoherentJamming {false}
 True if coherent (FT) jamming is perceived as determined by the coherent JNR threshold.
bool mPerceivesContJamming {false}
 True if noise type jamming is perceived as determined by the noise JNR threshold.
bool mPerceivesPulseJamming {false}
 True if Pulse type jamming is perceived as determined by the pulse JNR threshold.
WsfComponentCloneComponent () const override
WsfStringId GetComponentName () const override
const int * GetComponentRoles () const override
void * QueryInterface (int aRole) override
void Print (ut::log::MessageStream &aMsgStream, WsfEM_Interaction &aEM_Interaction) override
 Print the result data to stdout.
void PrintStatus (ut::log::MessageStream &aMsgStream, WsfEM_Interaction &aEM_Interaction) override
void Reset () override
bool PrintEventOutput (std::ostream &aStream) override
void PrintEventOutput_Powers (std::ostream &aStream) override
bool PrintCSV_EventOutput (std::ostream &aStream) override
bool PrintCSV_EventOutput_Powers (std::ostream &aStream) override

Additional Inherited Members

Public Types inherited from WsfComponentT< WsfEM_Interaction >
typedef WsfEM_Interaction ParentType
 This is needed to support the WsfComponentList template.

Detailed Description

A component attached to WsfEM_Interaction that contains the results of EW interactions. This component is common to both comm and sensor interactions as they are so similar the sensor result only contained an additional element for false targets.) This ensures that a component attached in WsfRF_Jammer will be usable by both the EW comm and sensor components.

Constructor & Destructor Documentation

◆ WsfEW_Result()

WsfEW_Result::WsfEW_Result ( )
default

Referenced by CloneComponent(), Find(), and FindOrCreate().

◆ ~WsfEW_Result()

WsfEW_Result::~WsfEW_Result ( )
overridedefault

Member Function Documentation

◆ CloneComponent()

WsfComponent * WsfEW_Result::CloneComponent ( ) const
overridevirtual

Clones a component. May return null if component does not support clone.

Implements WsfComponent.

References WsfEW_Result().

◆ Find()

◆ FindOrCreate()

◆ GetComponentName()

WsfStringId WsfEW_Result::GetComponentName ( ) const
overridevirtual

Returns the component's name. Each component in a component list has a unique name. Names are usually defined by the user, but they may also be generated by code and prefixed with a '#' to guarantee no collisions with user-defined names.

Implements WsfComponent.

◆ GetComponentRoles()

const int * WsfEW_Result::GetComponentRoles ( ) const
overridevirtual

Returns a zero-terminated array of component roles. Note that the array should be in decreasing order of specificity and should generally the inheritance hierarchy. The first entry should be the components 'primary' role. For example a sensor would do the following:

return roles;
@ cWSF_COMPONENT_SENSOR
A 'sensor' component (WsfSensor).
Definition WsfComponentRoles.hpp:105
@ cWSF_COMPONENT_PLATFORM_PART
The component derives from WsfPlatformPart.
Definition WsfComponentRoles.hpp:98
@ cWSF_COMPONENT_ARTICULATED_PART
The component derives from WsfArticulatedPart.
Definition WsfComponentRoles.hpp:99

Implements WsfComponent.

References cWSF_COMPONENT_EW_RESULT.

◆ Print()

void WsfEW_Result::Print ( ut::log::MessageStream & aMsgStream,
WsfEM_Interaction & aEM_Interaction )
overridevirtual

◆ PrintCSV_EventOutput()

◆ PrintCSV_EventOutput_Powers()

bool WsfEW_Result::PrintCSV_EventOutput_Powers ( std::ostream & aStream)
overridevirtual

◆ PrintEventOutput()

◆ PrintEventOutput_Powers()

void WsfEW_Result::PrintEventOutput_Powers ( std::ostream & aStream)
overridevirtual

◆ PrintStatus()

void WsfEW_Result::PrintStatus ( ut::log::MessageStream & aMsgStream,
WsfEM_Interaction & aEM_Interaction )
overridevirtual

◆ QueryInterface()

void * WsfEW_Result::QueryInterface ( int aRole)
overridevirtual

Requests a component's role interface. A component can support one or more roles.

Parameters
aRoleThe role whose interface is to be returned.
Returns
A pointer to the object if it supports the indicated role, or 'null' if it does not. Usage: WsfProcessor* procPtrOrNull = (WsfProcessor*)componentPtr->QueryComponentInterface(cWSF_COMPONENT_PROCESSOR);

Implements WsfComponent.

References cWSF_COMPONENT_EW_RESULT.

◆ Reset()

void WsfEW_Result::Reset ( )
overridevirtual

Reset the detection data for a new detection chance.

This only resets those values that are absolutely necessary. Values whose validity can be determined by looking at other values are NOT reset.

Reimplemented from WsfEM_InteractionComponent.

References mCoherentJammerPower, mEW_Effects, mNoiseJammerPower, mPerceivesCoherentJamming, mPerceivesContJamming, mPerceivesPulseJamming, and mPulseJammerPower.

Member Data Documentation

◆ mCoherentJammerPower

◆ mEW_Effects

◆ mNoiseJammerPower

◆ mPerceivesCoherentJamming

bool WsfEW_Result::mPerceivesCoherentJamming {false}

True if coherent (FT) jamming is perceived as determined by the coherent JNR threshold.

Referenced by WsfEW_SensorComponent::AttemptToDetect(), WsfEW_SensorComponent::EW_Beam::DetectJamStrobes(), PrintStatus(), and Reset().

◆ mPerceivesContJamming

bool WsfEW_Result::mPerceivesContJamming {false}

True if noise type jamming is perceived as determined by the noise JNR threshold.

Referenced by WsfEW_SensorComponent::AttemptToDetect(), WsfEW_SensorComponent::EW_Beam::DetectJamStrobes(), PrintStatus(), and Reset().

◆ mPerceivesPulseJamming

bool WsfEW_Result::mPerceivesPulseJamming {false}

True if Pulse type jamming is perceived as determined by the pulse JNR threshold.

Referenced by WsfEW_SensorComponent::AttemptToDetect(), WsfEW_SensorComponent::EW_Beam::DetectJamStrobes(), PrintStatus(), and Reset().

◆ mPulseJammerPower


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