Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hydraulicModel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘乐
hydraulicModel
Commits
561c5284
Commit
561c5284
authored
Oct 22, 2020
by
刘乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
类名修改
parent
565e3aa3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
CivOptSchedEngine.cpp
pandaAnalysis/CivOptSchedEngine.cpp
+9
-0
CivOptSchedEngine.h
pandaAnalysis/CivOptSchedEngine.h
+14
-3
CivOptSchedPumpEngine.h
pandaAnalysis/CivOptSchedPumpEngine.h
+1
-1
No files found.
pandaAnalysis/CivOptSchedEngine.cpp
View file @
561c5284
...
...
@@ -6,6 +6,14 @@ CivOptSchedEngine::CivOptSchedEngine(const string& uri):mUri(uri)
}
bool
CivOptSchedEngine
::
optimal
()
{
// תinpÎļþ
// ¿ªÊ¼¼ÆËã
}
void
CivOptSchedEngine
::
schedulingResultToJson
(
string
&
json
)
{
}
\ No newline at end of file
pandaAnalysis/CivOptSchedEngine.h
View file @
561c5284
...
...
@@ -7,7 +7,7 @@
using
namespace
std
;
/**
优化调度
模拟
客户端
优化调度客户端
*/
class
CivOptSchedEngine
{
...
...
@@ -16,9 +16,20 @@ public:
bool
optimal
();
protected
:
/**
*@brief 将计算结果转换为json字符串
*@param [out] json 输出结果的字符串
*/
void
schedulingResultToJson
(
string
&
json
);
private
:
// 水泵编码与水泵状态的映射
map
<
string
,
int
>
mPumpsStatus
;
// 编码与状态的映射
map
<
string
,
int
>
mStatus
;
// 调度结果
vector
<
map
<
string
,
int
>>
mSchedulingResults
;
// 数据连接地址
string
mUri
;
...
...
pandaAnalysis/CivOptSchedPumpEngine.h
View file @
561c5284
...
...
@@ -2,7 +2,7 @@
#include "CivOptSchedEngine.h"
/**
Ż
վ
Ż
*/
class
CivOptSchedPumpEngine
:
public
CivOptSchedEngine
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment