12#ifndef AIRTOAIRLAUNCHCOMPUTERGENERATOR_HPP
13#define AIRTOAIRLAUNCHCOMPUTERGENERATOR_HPP
16#include "UtAtmosphere.hpp"
53 void Update(
double aSimTime)
override;
98 void Iterate(
double aSimTime);
99 bool EvaluateResult();
102 void DetermineTargetStateValues(
double aShooterLatDeg,
103 double aShooterLonDeg,
105 double aShooterHeadingRad,
107 double aTargetLeadRad,
108 double aTargetAspectRad,
111 double& aTargetLatDeg,
112 double& aTargetLonDeg,
113 double& aTargetHeadingRad,
114 double aTargetVelNED[3]);
118 void ProcessResults();
120 void SetLaunchConditions(
double aSimTime);
122 void SetSearchRmin();
123 void SetSearchRmax();
126 void WriteOutputFile();
128 unsigned int mTargetCount;
130 unsigned int mQuantityLaunched;
131 unsigned int mHitCount;
132 unsigned int mMissCount;
133 unsigned int mSignificant;
134 unsigned int mNullCount;
136 unsigned int mCurrentIndex;
137 unsigned int mMaxIterations;
138 unsigned int mIterationCount;
140 double mIncrementRatio;
144 bool mAspectRotIsClockwise;
145 bool mAspectRotIsSignedToLead;
148 double mShooterSpeed;
151 double mTargetAspect;
155 SearchingFor mSearchingFor;
157 std::pair<double, bool> mCurrent;
158 std::pair<double, bool> mPrevious;
160 double mCurrentGrndRange;
163 double mGrndRangeTolerance;
165 std::string mGeneratedTimeString;
167 UtAtmosphere mAtmosphere;
174 std::string mTableFileName;
175 std::string mResultsFileName;
177 double mLastTargetAspect;
178 double mLastTargetLead;
179 double mLastTargetMach;
180 double mLastTargetAlt;
181 double mLastShooterMach;
182 double mLastShooterAlt;
184 unsigned int mSuccesses;
185 unsigned int mFailures;
186 double mGlobalMinRmax;
187 double mGlobalMaxRmax;
188 double mGlobalMinRmin;
189 double mGlobalMaxRmin;
190 double mGlobalMinRne;
191 double mGlobalMaxRne;
192 double mGlobalMinRmaxTOF;
193 double mGlobalMaxRmaxTOF;
194 double mGlobalMinRminTOF;
195 double mGlobalMaxRminTOF;
196 double mGlobalMinRneTOF;
197 double mGlobalMaxRneTOF;
199 GenerationStateType mGenerationState;
SearchingFor
Definition AirToAirLaunchComputerGenerator.hpp:69
@ cSEARCH_R_NE
Definition AirToAirLaunchComputerGenerator.hpp:72
@ cNO_SEARCH
Definition AirToAirLaunchComputerGenerator.hpp:70
@ cSEARCH_R_MIN
Definition AirToAirLaunchComputerGenerator.hpp:71
@ cSEARCH_DONE
Definition AirToAirLaunchComputerGenerator.hpp:74
@ cSEARCH_R_MAX
Definition AirToAirLaunchComputerGenerator.hpp:73
void Finish()
Definition AirToAirLaunchComputerGenerator.hpp:88
StateType
Tool States, listed in chronological order:
Definition AirToAirLaunchComputerGenerator.hpp:58
@ cSTATE_GENERATION
Generating the results.
Definition AirToAirLaunchComputerGenerator.hpp:63
@ cSTATE_DONE
Complete.
Definition AirToAirLaunchComputerGenerator.hpp:65
@ cNO_STATE
Un-initialized.
Definition AirToAirLaunchComputerGenerator.hpp:59
@ cSTATE_INITIALIZED
Initialized.
Definition AirToAirLaunchComputerGenerator.hpp:61
GenerationStateType
Definition AirToAirLaunchComputerGenerator.hpp:78
@ cBISECTING
Definition AirToAirLaunchComputerGenerator.hpp:81
@ cNONE
Definition AirToAirLaunchComputerGenerator.hpp:79
@ cFAILED
Definition AirToAirLaunchComputerGenerator.hpp:83
@ cBRACKETING
Definition AirToAirLaunchComputerGenerator.hpp:80
@ cDONE
Definition AirToAirLaunchComputerGenerator.hpp:82
AirToAirLaunchComputerGenerator(WsfScenario &aScenario)
Definition AirToAirLaunchComputerGenerator.cpp:37
Definition WsfAirToAirLaunchComputer.hpp:37
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
An object that represents an 'track' (perception) of something.
Definition WsfTrack.hpp:120
Definition WsfAirToAirLaunchComputer.hpp:89