WSF
WsfEW_Result.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFEW_INTERACTION_HPP
13#define WSFEW_INTERACTION_HPP
14
15#include "wsf_mil_export.h"
16
17#include "UtLog.hpp"
18#include "WsfEM_Interaction.hpp"
19#include "WsfEW_Effects.hpp"
21
27class WSF_MIL_EXPORT WsfEW_Result : public WsfEM_InteractionComponent
28{
29public:
30 static WsfEW_Result* Find(const WsfEM_Interaction& aEM_Interaction);
32
33 WsfEW_Result() = default;
34 ~WsfEW_Result() override = default;
35
37
38 WsfComponent* CloneComponent() const override;
39 WsfStringId GetComponentName() const override;
40 const int* GetComponentRoles() const override;
41 void* QueryInterface(int aRole) override;
43
44 void Print(ut::log::MessageStream& aMsgStream, WsfEM_Interaction& aEM_Interaction) override;
45 void PrintStatus(ut::log::MessageStream& aMsgStream, WsfEM_Interaction& aEM_Interaction) override;
46 void Reset() override;
47 bool PrintEventOutput(std::ostream& aStream) override;
48 void PrintEventOutput_Powers(std::ostream& aStream) override;
49 bool PrintCSV_EventOutput(std::ostream& aStream) override;
50 bool PrintCSV_EventOutput_Powers(std::ostream& aStream) override;
51
54
57 double mNoiseJammerPower{0.0};
58
61 double mPulseJammerPower{0.0};
62
66
69
72
75};
76
78
79#endif
#define WSF_DECLARE_COMPONENT_ROLE_TYPE(TYPE, ROLE)
Definition WsfComponentRoles.hpp:44
@ cWSF_COMPONENT_EW_RESULT
EW extension for WsfEM_Interaction.
Definition WsfMilComponentRoles.hpp:25
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
Definition WsfComponent.hpp:39
virtual const int * GetComponentRoles() const =0
virtual WsfStringId GetComponentName() const =0
virtual WsfComponent * CloneComponent() const =0
virtual void * QueryInterface(int aRole)=0
Definition WsfEM_Interaction.hpp:50
virtual bool PrintCSV_EventOutput_Powers(std::ostream &aStream)
Definition WsfEM_Interaction.hpp:64
virtual void Reset()
Definition WsfEM_Interaction.hpp:56
virtual void PrintStatus(ut::log::MessageStream &aMsgStream, WsfEM_Interaction &aEM_Interaction)
Definition WsfEM_Interaction.hpp:55
virtual void PrintEventOutput_Powers(std::ostream &aStream)
Definition WsfEM_Interaction.hpp:61
virtual bool PrintEventOutput(std::ostream &aStream)
Definition WsfEM_Interaction.hpp:60
virtual bool PrintCSV_EventOutput(std::ostream &aStream)
Definition WsfEM_Interaction.hpp:63
virtual void Print(ut::log::MessageStream &aMsgStream, WsfEM_Interaction &aEM_Interaction)
Definition WsfEM_Interaction.hpp:54
friend class WsfEM_Interaction
Definition WsfEM_Interaction.hpp:51
Definition WsfEW_Effects.hpp:41
Definition WsfEW_Result.hpp:28
double mNoiseJammerPower
Definition WsfEW_Result.hpp:57
~WsfEW_Result() override=default
bool mPerceivesContJamming
True if noise type jamming is perceived as determined by the noise JNR threshold.
Definition WsfEW_Result.hpp:71
static WsfEW_Result * Find(const WsfEM_Interaction &aEM_Interaction)
Definition WsfEW_Result.cpp:22
bool mPerceivesPulseJamming
True if Pulse type jamming is perceived as determined by the pulse JNR threshold.
Definition WsfEW_Result.hpp:74
WsfEW_Effects mEW_Effects
EW Effects result data and methods.
Definition WsfEW_Result.hpp:53
static WsfEW_Result & FindOrCreate(WsfEM_Interaction &aResult)
Definition WsfEW_Result.cpp:30
double mPulseJammerPower
Definition WsfEW_Result.hpp:61
bool mPerceivesCoherentJamming
True if coherent (FT) jamming is perceived as determined by the coherent JNR threshold.
Definition WsfEW_Result.hpp:68
double mCoherentJammerPower
Definition WsfEW_Result.hpp:65
WsfEW_Result()=default
Copyrights Multiple, All Rights Reserved