WSF
WsfPassiveSensor::PassiveMode::PassiveErrorModel Class Reference

#include <WsfPassiveSensor.hpp>

Inheritance diagram for WsfPassiveSensor::PassiveMode::PassiveErrorModel:
Collaboration diagram for WsfPassiveSensor::PassiveMode::PassiveErrorModel:

Public Member Functions

bool ProcessInput (UtInput &aInput) override
PassiveErrorModelClone () const override
 Create a clone of "this" object.
void ApplyMeasurementErrors (const wsf::SphericalMeasurementErrors &aErrors, WsfSensorResult &aResult) override
std::unique_ptr< wsf::SphericalMeasurementErrorsComputeMeasurementErrors (WsfSensorResult &aResult) const override
Public Member Functions inherited from wsf::StandardSensorErrorModel
StandardSensorErrorModelClone () const override
 Create a clone of "this" object.
bool ProcessInput (UtInput &aInput) override
bool IsStandardModel () const final
void SetSigmas (const Sigmas &aSigmas)
const SigmasGetSigmas () const
void SetAzErrorStdDev (double aAzErrorStdDev)
void SetElErrorStdDev (double aElErrorStdDev)
void SetRangeErrorStdDev (double aRangeErrorStdDev)
void SetRangeRateErrorStdDev (double aRangeRateErrorStdDev)
std::unique_ptr< SphericalMeasurementErrorsComputeMeasurementErrors (WsfSensorResult &aResult) const override
void ApplyMeasurementErrors (const SphericalMeasurementErrors &aErrors, WsfSensorResult &aResult) override
virtual SphericalMeasurementErrors GetSphericalErrorStdDev (ut::Random &aRandom, WsfSensorResult &aResult, const Sigmas &aSigmas) const
Public Member Functions inherited from wsf::SensorErrorModelBase
virtual bool Initialize (WsfSensorMode *aSensorModePtr)
virtual void ApplyMeasurementErrors (WsfSensorResult &aResult)=0
virtual bool IsNullModel () const
 Is this a null model (i.e., ApplyMeasurementErrors has no effect).
bool DebugEnabled () const
WsfSensorModeGetSensorMode () const
void SetSensorMode (WsfSensorMode *aSensorModePtr)
Public Member Functions inherited from WsfObject
 WsfObject ()
 This is the constructor for the WsfObject class.
 ~WsfObject () override
 This is the destructor for the WsfObject class.
const char * GetScriptClassName () const override
const std::string & GetType () const
WsfStringId GetTypeId () const
 Get the string ID of the 'type' of the object.
void SetType (WsfStringId aType)
const std::string & GetBaseType () const
WsfStringId GetBaseTypeId () const
const TypeListGetTypeList () const
bool IsA_TypeOf (WsfStringId aType) const
WsfObjectoperator= (const WsfObject &aRhs)
 Assignment operator.
template<typename T>
void Serialize (T &aBuff)
 For XIO (de)serialization.
const std::string & GetName () const
WsfStringId GetNameId () const
void SetName (WsfStringId aName)

Additional Inherited Members

Public Types inherited from wsf::SensorErrorModelBase
using SensorModelTypes = WsfObjectTypeList<SensorErrorModelBase>
Public Types inherited from WsfObject
typedef std::vector< WsfStringIdTypeList
 The list of types returned by GetTypeList.
Static Public Member Functions inherited from wsf::StandardSensorErrorModel
static std::unique_ptr< SensorErrorModelBaseObjectFactory (const std::string &aTypeName)
 WsfObject (const WsfObject &aSrc)
 Copy constructor (for Clone()).

Member Function Documentation

◆ ApplyMeasurementErrors()

void WsfPassiveSensor::PassiveMode::PassiveErrorModel::ApplyMeasurementErrors ( const wsf::SphericalMeasurementErrors & aErrors,
WsfSensorResult & aResult )
overridevirtual

Apply measurement errors computed with ComputeMeasurementErrors to a sensor result.

Parameters
aErrorsThe sensor errors as returned from ComputeMeasurementErrors.
aResultThe sensing chance result to which the error is applied.

Implements wsf::SensorErrorModel< SphericalMeasurementErrors >.

References WsfSensorResult::mMeasurement.

◆ Clone()

PassiveErrorModel * WsfPassiveSensor::PassiveMode::PassiveErrorModel::Clone ( ) const
inlineoverridevirtual

Create a clone of "this" object.

Implements wsf::SensorErrorModelBase.

◆ ComputeMeasurementErrors()

std::unique_ptr< wsf::SphericalMeasurementErrors > WsfPassiveSensor::PassiveMode::PassiveErrorModel::ComputeMeasurementErrors ( WsfSensorResult & aResult) const
overridevirtual

Compute the sensor errors associated with this model and return them.

Parameters
aResultThe sensing chance result that is used as a basis for the error computation.
Returns
The computed sensor errors for the given sensing chance.
Note
This method is used to implement the single parameter ApplyMeasurementErrors method, and it may also be used in the sensor mode when the errors are applied to more than one sensor result.

Implements wsf::SensorErrorModel< SphericalMeasurementErrors >.

References WsfSensorComponent::ComputeSphericalMeasurementErrors(), WsfEM_XmtrRcvr::GetFrequency(), WsfSensor::GetRandom(), WsfSensorMode::GetSensor(), wsf::SensorErrorModelBase::GetSensorMode(), wsf::StandardSensorErrorModel::GetSigmas(), wsf::StandardSensorErrorModel::GetSphericalErrorStdDev(), WsfEM_Interaction::GetTransmitter(), wsf::StandardSensorErrorModel::Sigmas::mAzErrorStdDev, wsf::StandardSensorErrorModel::Sigmas::mElErrorStdDev, WsfSensorResult::mMeasurement, and wsf::StandardSensorErrorModel::Sigmas::mRangeErrorStdDev.

◆ ProcessInput()

bool WsfPassiveSensor::PassiveMode::PassiveErrorModel::ProcessInput ( UtInput & aInput)
overridevirtual

Process input from a generic source.

Examine the current input command. If it is NOT one of the commands recognized by this class then it simply returns 'false'. If it is one of the commands recognized by this class then it processes the command and returns 'true'.

Parameters
aInputa reference to a UtInput object.
Returns
'true' if the command was one recognized by the class or 'false' if not.
Exceptions
UtInput::ExceptionBase(or an object derived from it) if the command was recognized but contains some sort of error.
Note
If a derived class does not recognize the command (i.e.: the return value is false) then it should call the base class ProcessInput method. This chain should continue until either the command is recognized or the top-level base class is encountered.

Reimplemented from WsfObject.


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved