00001 00011 #ifndef __LIMITS_ALARM_H 00012 #define __LIMITS_ALARM_H 00013 00014 //com 00015 00016 //std 00017 00018 // own 00019 #include "fb.h" 00020 #include "hysteresis.h" 00021 00025 class limits_alarm: public fb 00026 { 00027 public: 00036 virtual void set_input(const float x, const float h, const float l, const float eps) = 0; 00045 virtual void get_input(float& x, float& h, float& l, float& eps) const = 0; 00051 virtual bool get_result() const = 0; 00056 virtual bool is_high_alert() const = 0; 00061 virtual bool is_low_alert() const = 0; 00066 virtual void set_lower_checker(hysteresis* hyst) = 0; 00071 virtual void set_upper_checker(hysteresis* hyst) = 0; 00072 }; // limits_alarm 00073 00074 #endif //__LIMITS_ALARM_H