WSF
WsfTRIMSIM_ErrorModel Class Reference

#include <WsfTRIMSIM_Processor.hpp>

Inheritance diagram for WsfTRIMSIM_ErrorModel:
Collaboration diagram for WsfTRIMSIM_ErrorModel:

Public Member Functions

 WsfTRIMSIM_ErrorModel ()
WsfTRIMSIM_ErrorModelClone () const override
 Create a clone of "this" object.
bool ProcessInput (UtInput &aInput) override
bool Initialize (WsfSensorMode *aSensorModePtr) override
void ApplyMeasurementErrors (WsfSensorResult &aResult) override
bool IsNullModel () const override
 Is this a null model (i.e., ApplyMeasurementErrors has no effect).
bool ComputeErrors () const
 TRIMSIM Errors.
const std::vector< double > & GetErrors () const
double GetGroundTargetAltitudeError () const
Public Member Functions inherited from wsf::SensorErrorModelBase
virtual bool IsStandardModel () const
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)

Static Public Member Functions

static std::unique_ptr< wsf::SensorErrorModelBaseObjectFactory (const std::string &aTypeName)

Static Public Attributes

static const unsigned int cTDOA_ERROR_SIZE = 7
static const unsigned int cTDOA_STATE_SIZE = 3

Protected Member Functions

 WsfTRIMSIM_ErrorModel (const WsfTRIMSIM_ErrorModel &aSrc)=default
WsfTRIMSIM_ErrorModeloperator= (const WsfTRIMSIM_ErrorModel &)=delete
 WsfObject (const WsfObject &aSrc)
 Copy constructor (for Clone()).

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.

Detailed Description

A sensor error model for the TRIMSIM/SUPPRESSOR TDOA Error Model functionality.

Note
This class only holds the TDOA errors; it does not actually compute or apply errors.

Constructor & Destructor Documentation

◆ WsfTRIMSIM_ErrorModel() [1/2]

WsfTRIMSIM_ErrorModel::WsfTRIMSIM_ErrorModel ( )

References cTDOA_ERROR_SIZE.

Referenced by Clone(), operator=(), and WsfTRIMSIM_ErrorModel().

◆ WsfTRIMSIM_ErrorModel() [2/2]

WsfTRIMSIM_ErrorModel::WsfTRIMSIM_ErrorModel ( const WsfTRIMSIM_ErrorModel & aSrc)
protecteddefault

Member Function Documentation

◆ ApplyMeasurementErrors()

void WsfTRIMSIM_ErrorModel::ApplyMeasurementErrors ( WsfSensorResult & aResult)
inlineoverridevirtual

Compute and apply measurement errors to the current detection attempt.

Parameters
aResultThe results of a sensing chance to be modified by the error model.
Note
This method is defined in wsf::SensorErrorModel.

Implements wsf::SensorErrorModelBase.

◆ Clone()

WsfTRIMSIM_ErrorModel * WsfTRIMSIM_ErrorModel::Clone ( ) const
overridevirtual

Create a clone of "this" object.

Implements wsf::SensorErrorModelBase.

References WsfTRIMSIM_ErrorModel().

◆ ComputeErrors()

bool WsfTRIMSIM_ErrorModel::ComputeErrors ( ) const
inline

TRIMSIM Errors.

◆ GetErrors()

const std::vector< double > & WsfTRIMSIM_ErrorModel::GetErrors ( ) const
inline

◆ GetGroundTargetAltitudeError()

double WsfTRIMSIM_ErrorModel::GetGroundTargetAltitudeError ( ) const
inline

◆ Initialize()

bool WsfTRIMSIM_ErrorModel::Initialize ( WsfSensorMode * aSensorModePtr)
overridevirtual

Perform any necessary initialization.

Parameters
aSensorModePtrThe sensor mode used by this error model.

Reimplemented from wsf::SensorErrorModelBase.

References WsfPlatformPart::DebugEnabled(), WsfSensorMode::GetSensor(), wsf::SensorErrorModelBase::Initialize(), and ok.

◆ IsNullModel()

bool WsfTRIMSIM_ErrorModel::IsNullModel ( ) const
inlineoverridevirtual

Is this a null model (i.e., ApplyMeasurementErrors has no effect).

Reimplemented from wsf::SensorErrorModelBase.

◆ ObjectFactory()

std::unique_ptr< wsf::SensorErrorModelBase > WsfTRIMSIM_ErrorModel::ObjectFactory ( const std::string & aTypeName)
static

Factory method for WsfSensorErrorModelTypes. This is called by WsfSensorErrorModelTypes::LoadType to determine if a pattern represented by this class is being requested.

◆ operator=()

WsfTRIMSIM_ErrorModel & WsfTRIMSIM_ErrorModel::operator= ( const WsfTRIMSIM_ErrorModel & )
protecteddelete

◆ ProcessInput()

bool WsfTRIMSIM_ErrorModel::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 wsf::SensorErrorModelBase.

References wsf::SensorErrorModelBase::ProcessInput().

Member Data Documentation

◆ cTDOA_ERROR_SIZE

const unsigned int WsfTRIMSIM_ErrorModel::cTDOA_ERROR_SIZE = 7
static

◆ cTDOA_STATE_SIZE

const unsigned int WsfTRIMSIM_ErrorModel::cTDOA_STATE_SIZE = 3
static

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