42 lines
867 B
C++
42 lines
867 B
C++
#pragma once
|
|
/**
|
|
* @file exp_bound.h
|
|
* @brief 数据超限幅值
|
|
* @author your name (you@domain.com)
|
|
* @version 0.1
|
|
* @date 2026-01-19
|
|
*
|
|
* Copyright: Baosight Co. Ltd.
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
|
*
|
|
*/
|
|
#include <array>
|
|
#include <eqpalg/algs/exp_base.h>
|
|
#include <eqpalg/define/public.h>
|
|
#include <map>
|
|
#include <utility>
|
|
using std::string;
|
|
class ExpBound : public ExpBase {
|
|
public:
|
|
ExpBound(const string &name, const mix_cc::json &rule_json,
|
|
const string &ruleId, size_t exp_type);
|
|
|
|
virtual ~ExpBound();
|
|
|
|
public:
|
|
AlarmInfo doMonProc() override;
|
|
int init() override;
|
|
virtual AlarmInfo mon_proc() override;
|
|
std::vector<AlarmInfo> exec_task(mix_cc::time_range_t time_range) override;
|
|
|
|
private:
|
|
double limit_error_;
|
|
double limit_warn_;
|
|
string value_exp_str_;
|
|
|
|
|
|
private:
|
|
int init_X_exp();
|
|
void print_load_content();
|
|
};
|