OSFEG-C++
1.4.6
OpenSF Error Generation Library
|
#include <ErrorSources.h>
Public Member Functions | |
ErrorSources (const std::string &errorFileName) | |
double | getSimTime () |
double | getError (const std::string ¶mName, const double time) override |
Class ErrorSources implements the methods to parse XML file, build a DOMTree and extract the perturbations from it.
ErrorSources::ErrorSources | ( | const std::string & | errorFileName | ) |
Parse an XML file with definitions of "errors" and make them available through getError().
errorFileName | String with the name of the XML file |
|
overridevirtual |
Gets the scalar value of a perturbation defined from a given node and depending on a given simulation time. Uses recursive calls.
paramName | Name used to define the perturbation in the XML file |
time | Current simulation time |
Implements IErrorSources.
double ErrorSources::getSimTime | ( | ) |
Gets the simulation time specified in the OSFEG configuration file