9#ifndef WSF_ALT_LOC_COMPONENT_HPP
10#define WSF_ALT_LOC_COMPONENT_HPP
57 static constexpr const char*
cNAME =
"AlternateLocationsComponent";
58 static constexpr const char*
cCOMMAND =
"alternate_locations";
129 int GetRandomLocation();
132 bool ReadPlatformDebugFlag(UtInput& aInput);
134 DebugType mDebugType;
#define WSF_DECLARE_COMPONENT_ROLE_TYPE(TYPE, ROLE)
Definition WsfComponentRoles.hpp:44
WsfComponentT< WsfPlatform > WsfPlatformComponent
A convenient typedef for a platform component.
Definition WsfComponent.hpp:171
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
Definition WsfComponent.hpp:39
WsfObject()
This is the constructor for the WsfObject class.
Definition WsfObject.cpp:88
Definition WsfAltLocComponent.hpp:50
Component & operator=(const Component &)=delete
@ cCOMPONENT
Definition WsfAltLocComponent.hpp:54
static constexpr double cINVALID_DRAW
Definition WsfAltLocComponent.hpp:60
WsfObject * Clone() const override
Definition WsfAltLocComponent.cpp:344
WsfStringId mReferenceName
Definition WsfAltLocComponent.hpp:111
Offset mOffset
Definition WsfAltLocComponent.hpp:114
WsfComponent * CloneComponent() const override
Definition WsfAltLocComponent.cpp:68
static Component * Find(const WsfPlatform &aParent)
Find the instance of this component attached to the specified platform.
Definition WsfAltLocComponent.cpp:323
Component()
Definition WsfAltLocComponent.cpp:30
bool PreInitialize(double aSimTime) override
Definition WsfAltLocComponent.cpp:386
WsfStringId GetComponentName() const override
Definition WsfAltLocComponent.cpp:349
~Component() override=default
static Component * FindOrCreate(WsfPlatform &aParent)
Definition WsfAltLocComponent.cpp:333
const int * GetComponentRoles() const override
Definition WsfAltLocComponent.cpp:61
BlockType mBlockType
Definition WsfAltLocComponent.hpp:109
Component * mReferenceComponent
Definition WsfAltLocComponent.hpp:112
static constexpr const char * cCOMMAND
Definition WsfAltLocComponent.hpp:58
static constexpr int cINVALID_LOCATION_INDEX
Definition WsfAltLocComponent.hpp:61
int mLocationIndex
Definition WsfAltLocComponent.hpp:119
std::vector< WeightedLocation > mLocations
Definition WsfAltLocComponent.hpp:115
static constexpr const char * cNAME
Definition WsfAltLocComponent.hpp:57
double mWeightsSum
Definition WsfAltLocComponent.hpp:118
double mDraw
Definition WsfAltLocComponent.hpp:117
void * QueryInterface(int aRole) override
Definition WsfAltLocComponent.cpp:74
bool ProcessInput(UtInput &aInput) override
Definition WsfAltLocComponent.cpp:87
Definition WsfAltLocComponent.cpp:28
AltitudeReference
Definition WsfAltLocComponent.hpp:22
@ MSL
Definition WsfAltLocComponent.hpp:23
@ AGL
Definition WsfAltLocComponent.hpp:24
BlockType
Definition WsfAltLocComponent.hpp:41
@ LOCAL
Definition WsfAltLocComponent.hpp:42
@ OFF_ARA
Definition WsfAltLocComponent.hpp:44
@ OFF_LLA
Definition WsfAltLocComponent.hpp:45
@ REF_LOC
Definition WsfAltLocComponent.hpp:43
@ NONE
Definition WsfAltLocComponent.hpp:46
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Definition WsfAltLocComponent.hpp:28
double weight
Definition WsfAltLocComponent.hpp:34
double alt
Definition WsfAltLocComponent.hpp:31
double lat
Definition WsfAltLocComponent.hpp:29
double lon
Definition WsfAltLocComponent.hpp:30
bool wgtSet
Definition WsfAltLocComponent.hpp:37
bool hedSet
Definition WsfAltLocComponent.hpp:36
double hed
Definition WsfAltLocComponent.hpp:32
bool altSet
Definition WsfAltLocComponent.hpp:35
AltitudeReference altRef
Definition WsfAltLocComponent.hpp:33
Definition WsfAltLocComponent.hpp:64
double lon
Definition WsfAltLocComponent.hpp:68
bool hedSet
Definition WsfAltLocComponent.hpp:72
struct wsf::altloc::Component::Offset::@026051270372300164131153273215144275101004323324 LLA
double alt
Definition WsfAltLocComponent.hpp:69
double hed
Definition WsfAltLocComponent.hpp:70
double angle
Definition WsfAltLocComponent.hpp:77
bool altSet
Definition WsfAltLocComponent.hpp:71
double lat
Definition WsfAltLocComponent.hpp:67
struct wsf::altloc::Component::Offset::@334105115055242107165246354313343116121056236177 ARA
double radius
Definition WsfAltLocComponent.hpp:78