#include <hysteresis_impl.h>
Inheritance diagram for hysteresis_impl:
Public Member Functions | ||||||||||
implementation of abstract interface 'FB' | ||||||||||
! /** Perfoms the algorithm of the function block | ||||||||||
virtual void | en () | |||||||||
implementation of abstract interface 'hysteresis' | ||||||||||
! /** Sets the input values of the function block. Should be called before en().
| ||||||||||
virtual bool | get_result () | |||||||||
virtual void | set_input (const float xin1, const float xin2, const float eps) | |||||||||
Private Member Functions | ||||||||||
hysteresis_impl (const hysteresis_impl &obj) | ||||||||||
hysteresis_impl & | operator= (const hysteresis_impl &obj) | |||||||||
Private Attributes | ||||||||||
float | m_eps | |||||||||
bool | m_q | |||||||||
float | m_xin1 | |||||||||
float | m_xin2 |
hysteresis_impl::hysteresis_impl | ( | ) |
Constructor
hysteresis_impl::~hysteresis_impl | ( | ) | [virtual] |
Destructor
hysteresis_impl::hysteresis_impl | ( | ) |
Constructor
hysteresis_impl::~hysteresis_impl | ( | ) | [virtual] |
Destructor
virtual void hysteresis_impl::en | ( | ) | [virtual] |
Perfoms the algorithm of the function block
Implements fb.
virtual bool hysteresis_impl::get_result | ( | ) | [virtual] |
Delivers the result of the algorithm. Should be called after en(). return true - value exceeds the limit.
Implements hysteresis.
virtual void hysteresis_impl::set_input | ( | const float | xin1, | |
const float | xin2, | |||
const float | eps | |||
) | [virtual] |
Sets the input values of the function block. Should be called before en().
xin1 | - value of xin1 | |
xin2 | - value of xin2 | |
eps | - value of eps |
Implements hysteresis.
float hysteresis_impl::m_eps [private] |
confidential interval
bool hysteresis_impl::m_q [private] |
output; true - values are inside the confidence interval
float hysteresis_impl::m_xin1 [private] |
input xin1
float hysteresis_impl::m_xin2 [private] |
input xin2