WSF
RadarLookupTableFunction.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
13#ifndef RADARLOOKUPTABLEFUNCTION_HPP
14#define RADARLOOKUPTABLEFUNCTION_HPP
15
16#include <string>
17#include <vector>
18
19#include "Function.hpp"
20#include "Sensor.hpp"
21#include "Target.hpp"
22
24{
25public:
26 explicit RadarLookupTableFunction(const WsfScenario& aScenario);
27
28 bool Execute(WsfSimulation& aSimulation) override;
29 bool ProcessInput(UtInput& aInput) override;
30
31private:
32 void WriteFile(const std::string& aFileName,
33 const std::vector<double>& aRowValues,
34 const std::vector<double>& aColValues,
35 const std::vector<double>& aDataValues);
36
37 Sensor mSensor;
38 Target mTarget;
39
40 std::vector<double> mAltitudes;
41 std::vector<double> mRanges;
42 std::string mAltUnitsStr;
43 double mAltUnitsScale;
44 std::string mRangeUnitsStr;
45 double mRangeUnitsScale;
46
47 std::string mOutputName;
48 std::string mHeaderLine1;
49 std::string mHeaderLine2;
50 std::string mHeaderLine3;
51 size_t mOutputColumnLimit;
52};
53
54#endif
Function(const Function &)=default
bool Execute(WsfSimulation &aSimulation) override
Definition RadarLookupTableFunction.cpp:48
RadarLookupTableFunction(const WsfScenario &aScenario)
Definition RadarLookupTableFunction.cpp:29
bool ProcessInput(UtInput &aInput) override
Definition RadarLookupTableFunction.cpp:164
Definition Sensor.hpp:30
Definition Target.hpp:27
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Copyrights Multiple, All Rights Reserved