eis/eqpalg/algs/exp_times.h

70 lines
1.5 KiB
C
Raw Normal View History

#pragma once
/**
* @file exp_times.h
* @brief
* exp_type_ 6/7
* 6
* 7
* @author your name (you@domain.com)
* @version 0.1
* @date 2023-12-15
*
* Copyright: Baosight Co. Ltd.
* DO NOT COPY/USE WITHOUT PERMISSION
*
*/
#include <eqpalg/algs/exp_base.h>
class ExpTimes : public ExpBase {
public:
ExpTimes(const string& name, const mix_cc::json& rule_json,
const string& ruleId, size_t exp_type);
~ExpTimes() override;
virtual AlarmInfo mon_proc() override;
virtual int init() override;
/**
* @brief
*/
virtual void reset_dev_data() override;
protected:
double max_time_ = 0;
int64_t max_times_ = 0;
int rw_time_ = 10;
int wait_flag_ = 0;
protected:
/**
* @brief /
* @return int
*/
int update_times();
/**
* @brief
* @return true
* @return false
*/
bool check_alarm();
/**
* @brief
* @return int
*/
int reload_params();
/**
* @brief t_rule_sample_1d_approximate
* @return int
*/
int get_history_times();
/**
* @brief t_rule_sample_1d_approximate
* @return int
*/
int update_history_times();
/**
* @brief t_rule_sample_1d_approximate
* @param now_times My Param doc
* @param now_used_time My Param doc
* @return int
*/
int insert_history_times(int64_t now_times, double now_used_time);
};