eis/eqpalg/.do_not_use/no_need/AlgExpDelay.h

47 lines
1.1 KiB
C
Raw Normal View History

/******************************************************************************************************************
* 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 <eqpalg/AlgCommonDefine.h>
#include <eqpalg/algs/AlgExp.h>
#include <iomanip>
#include <iostream>
#include <string>
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