Commit 561c5284 authored by 刘乐's avatar 刘乐

类名修改

parent 565e3aa3
...@@ -6,6 +6,14 @@ CivOptSchedEngine::CivOptSchedEngine(const string& uri):mUri(uri) ...@@ -6,6 +6,14 @@ CivOptSchedEngine::CivOptSchedEngine(const string& uri):mUri(uri)
} }
bool CivOptSchedEngine::optimal() bool CivOptSchedEngine::optimal()
{
// תinpÎļþ
// ¿ªÊ¼¼ÆËã
}
void CivOptSchedEngine::schedulingResultToJson(string& json)
{ {
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
using namespace std; using namespace std;
/** /**
优化调度模拟客户端 优化调度客户端
*/ */
class CivOptSchedEngine class CivOptSchedEngine
{ {
...@@ -16,9 +16,20 @@ public: ...@@ -16,9 +16,20 @@ public:
bool optimal(); bool optimal();
protected:
/**
*@brief 将计算结果转换为json字符串
*@param [out] json 输出结果的字符串
*/
void schedulingResultToJson(string& json);
private: private:
// 水泵编码与水泵状态的映射
map<string, int> mPumpsStatus; // 编码与状态的映射
map<string, int> mStatus;
// 调度结果
vector<map<string, int>> mSchedulingResults;
// 数据连接地址 // 数据连接地址
string mUri; string mUri;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "CivOptSchedEngine.h" #include "CivOptSchedEngine.h"
/** /**
Ż վŻ
*/ */
class CivOptSchedPumpEngine: public CivOptSchedEngine class CivOptSchedPumpEngine: public CivOptSchedEngine
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment