OSFEG-C++  1.4.5
OpenSF Error Generation Library
ErrorSources Class Reference

#include <ErrorSources.h>

Inheritance diagram for ErrorSources:
IErrorSources

Public Member Functions

 ErrorSources (const std::string &errorFileName)
 
double getSimTime ()
 
double getError (const std::string &paramName, const double time) override
 

Detailed Description

Class ErrorSources implements the methods to parse XML file, build a DOMTree and extract the perturbations from it.

Constructor & Destructor Documentation

◆ ErrorSources()

ErrorSources::ErrorSources ( const std::string &  errorFileName)

Parse an XML file with definitions of "errors" and make them available through getError().

Parameters
errorFileNameString with the name of the XML file

Member Function Documentation

◆ getError()

double ErrorSources::getError ( const std::string &  paramName,
const double  time 
)
overridevirtual

Gets the scalar value of a perturbation defined from a given node and depending on a given simulation time. Uses recursive calls.

Parameters
paramNameName used to define the perturbation in the XML file
timeCurrent simulation time
Returns
Perturbation value at the given time

Implements IErrorSources.

◆ getSimTime()

double ErrorSources::getSimTime ( )

Gets the simulation time specified in the OSFEG configuration file


The documentation for this class was generated from the following file: