/****************************************************************************************************************** * Action instruction algorithm * * arg[0] data determination expression * * * * 1.0 2020-12-17 zoufuzhou ******************************************************************************************************************/ #ifndef _H_ALGORITHM_HS_EXPRESSION_H #define _H_ALGORITHM_HSL_EXPRESSION_H #include #include #include #include #include #include #include #include #include #include #include #include class AlgExpHS : virtual public AlgExp // AlgBase { public: AlgExpHS(const string name, const Json::Value rulejson, const string ruleId); virtual ~AlgExpHS(); public: virtual int init() override; virtual Json::Value exec_mon(); private: CMemTrk *mp_trk; CMemTable *pt_pdi; string m_entId; int m_startpos; int m_endpos; int m_zone; std::string sample_tag_str_; std::string temp_tag_str_; struct SampleDataPolyfit { bool calculated_; std::vector coeff_; std::vector x_; std::vector y_; }; MathExpression *exp_act_; NormalDistribution nd_; int LoadData(); int StorageData(std::string steel_grade, double thickness, double width, double speed, double temp, std::string tag_name, double data); std::tuple GetSteelGrade(std::string EntId); mix_cc::DBCom db_com_; // 规格 数据 std::map inner_data_; }; #endif