/****************************************************************************************************************** * Action instruction algorithm * * arg[0] action expression * arg[1] feedback expression * arg[2] expression of judgment result * * 1.0 2020-12-17 zoufuzhou ******************************************************************************************************************/ #ifndef _H_ALGORITHM_EXPRESSION_DELAY_H #define _H_ALGORITHM_EXPRESSION_DELAY_H #include #include #include #include #include class AlgExpDelay : virtual public AlgExp { public: AlgExpDelay(const string &name, const Json::Value &rulejson, const string &ruleId); virtual ~AlgExpDelay(); public: virtual int init() override; virtual Json::Value exec_mon(); private: int mon_proc(string &outjson); private: MathExpression *exp_act__; bool result_exp_act__ = false; bool prev_calc_result_; unsigned long act_feedback_time_; unsigned long long begin_time_; unsigned long long end_time_; }; #endif