OSFEG-C++  1.4.6
OpenSF Error Generation Library
Harmonic Class Reference

#include <Harmonic.h>

Inheritance diagram for Harmonic:
Analytical Composite

Public Member Functions

double getValue (double time)
 
 Harmonic (string type)
 
- Public Member Functions inherited from Analytical
 Analytical (string type)
 
 Analytical (double value)
 
virtual ~Analytical ()
 
- Public Member Functions inherited from Composite
 Composite ()
 
 Composite (const Composite &)=delete
 
Compositeoperator= (const Composite &)=delete
 
 Composite (Composite &&)=default
 
Compositeoperator= (Composite &&)=default
 
virtual ~Composite ()
 
void add (Composite *node)
 
void remove (Composite *node)
 
CompositegetChild (int index)
 
bool hasChildNodes () const
 

Additional Inherited Members

- Protected Attributes inherited from Analytical
double value
 Fixed value (for float)
 
string type
 Type of value (currently only "Float")
 
- Protected Attributes inherited from Composite
std::vector< Composite * > children
 
Compositeparent
 

Detailed Description

Class that defines harmonic perturbations

  • Sinusoidal
  • Tangent
Author
jjrp,enpc

Constructor & Destructor Documentation

◆ Harmonic()

Harmonic::Harmonic ( string  type)

Class Harmonic constructor. Extends from parent class Analytical.

Parameters
typeString with the error type description.

Member Function Documentation

◆ getValue()

double Harmonic::getValue ( double  time)
virtual

Returns the value of an harmonic perturbation at the specified simulation time. Overwrites method getValue from parent class Analytical.

Parameters
timeDouble with the time in which the error is evaluated.
Returns
Value of the perturbation.

Reimplemented from Analytical.


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