| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /*
- * Device.h
- *
- * Created on: 2020年9月14日
- * Author: vsbes
- */
-
- #ifndef MODELS_DEVICES_DEVICE_H_
- #define MODELS_DEVICES_DEVICE_H_
-
- #include <map>
- #include <string>
-
- #include "../../common/Type.h"
- #include "Common.h"
- #include "OperateDevice.h"
-
- struct cJSON;
-
- class Device: public OperateDevice
- {
- public:
- Device();
- virtual ~Device();
-
- public:
- virtual HRESULT init();
-
- virtual Device* addParam(const std::string key, const std::string value);
-
- virtual void other();
-
- public:
- unsigned int chargeOrDisChargeState;
-
- double P;
-
- double SOC;
-
- double chargeEnergy;
-
- double disChargeEnergy;
-
- double chargeEnergy_o;
-
- double disChargeEnergy_o;
-
- double chargeEnergyDaily;
-
- double disChargeEnergyDaily;
-
- protected:
- std::string getParam(std::string key);
- std::string chargeStateUUID;
- std::string disChargeStateUUID;
-
- std::string chargeEnergyUUID;
- std::string disChargeEnergyUUID;
-
- std::string chargeEnergyDailyUUID;
- std::string disChargeEnergyDailyUUID;
-
- private:
- std::map<std::string, std::string> params;
- };
-
- #endif /* MODELS_DEVICES_DEVICE_H_ */
|