WSF
WsfCarltonLethality.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 WSFCARLTONLETHALITY_HPP
13#define WSFCARLTONLETHALITY_HPP
14
15#include "wsf_mil_export.h"
16
17#include <map>
18
20
46
47class WSF_MIL_EXPORT WsfCarltonLethality : public WsfExplicitWeaponEffects
48{
49public:
51 ~WsfCarltonLethality() override = default;
52 WsfWeaponEffects* Clone() const override;
53 bool ProcessInput(UtInput& aInput) override;
54
56 void SetD0(double aD0) { mD0 = aD0; }
57
59 double GetD0() const { return mD0; }
60
61 bool AddPlatformType(WsfStringId aPlatformTypeID, double aLethalArea);
62
63protected:
65
66 // Prevent use of operator= by declaring, but not defining.
68
69 void CalcInterceptPk(double aSimTime, WsfPlatform* aTargetPtr) override;
70
71private:
72 // Map of possible platform types, and the Lethal Area for each.
73 std::map<WsfStringId, double> mLAMap;
74
75 // D0 (default = 0.5).
76 double mD0;
77};
78
79#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
WsfCarltonLethality & operator=(const WsfCarltonLethality &aRhs)=delete
double GetD0() const
Get D0 = Access the parameter used for the [Munition, Target] pair.
Definition WsfCarltonLethality.hpp:59
void SetD0(double aD0)
Set D0 = Input the parameter for the [Munition, Target] pair. (default = 0.5).
Definition WsfCarltonLethality.hpp:56
WsfCarltonLethality(const WsfCarltonLethality &aSrc)=default
WsfCarltonLethality(WsfScenario &aScenario)
Default constructor.
Definition WsfCarltonLethality.cpp:23
~WsfCarltonLethality() override=default
void CalcInterceptPk(double aSimTime, WsfPlatform *aTargetPtr) override
Definition WsfExplicitWeaponEffects.cpp:90
bool ProcessInput(UtInput &aInput) override
Definition WsfExplicitWeaponEffects.cpp:65
WsfExplicitWeaponEffects(WsfScenario &aScenario)
Definition WsfExplicitWeaponEffects.cpp:29
WsfWeaponEffects * Clone() const override
Definition WsfExplicitWeaponEffects.cpp:39
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
WsfWeaponEffects(WsfScenario &aScenario)
Definition WsfWeaponEffects.cpp:51
Copyrights Multiple, All Rights Reserved