储能工商业-261Kwh-功率计划曲线App
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Device.h 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Device.h
  3. *
  4. * Created on: 2020年9月14日
  5. * Author: vsbes
  6. */
  7. #ifndef MODELS_DEVICES_DEVICE_H_
  8. #define MODELS_DEVICES_DEVICE_H_
  9. #include <map>
  10. #include <string>
  11. #include "../../common/Type.h"
  12. #include "Common.h"
  13. #include "OperateDevice.h"
  14. struct cJSON;
  15. class Device: public OperateDevice
  16. {
  17. public:
  18. Device();
  19. virtual ~Device();
  20. public:
  21. virtual HRESULT init();
  22. virtual Device* addParam(const std::string key, const std::string value);
  23. virtual void other();
  24. public:
  25. unsigned int chargeOrDisChargeState;
  26. double P;
  27. double SOC;
  28. double chargeEnergy;
  29. double disChargeEnergy;
  30. double chargeEnergy_o;
  31. double disChargeEnergy_o;
  32. double chargeEnergyDaily;
  33. double disChargeEnergyDaily;
  34. protected:
  35. std::string getParam(std::string key);
  36. std::string chargeStateUUID;
  37. std::string disChargeStateUUID;
  38. std::string chargeEnergyUUID;
  39. std::string disChargeEnergyUUID;
  40. std::string chargeEnergyDailyUUID;
  41. std::string disChargeEnergyDailyUUID;
  42. private:
  43. std::map<std::string, std::string> params;
  44. };
  45. #endif /* MODELS_DEVICES_DEVICE_H_ */