Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
signal
traffic-signal-platform
Commits
4da0ccfe
Commit
4da0ccfe
authored
Apr 15, 2024
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 运行评价-详细指标查询增加溢流率
parent
79bab51c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
RunningEvaluateServiceImpl.java
...et/wanji/opt/service/impl/RunningEvaluateServiceImpl.java
+4
-0
RunningEvaluateMetricsDetailVO.java
...java/net/wanji/opt/vo/RunningEvaluateMetricsDetailVO.java
+3
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/RunningEvaluateServiceImpl.java
View file @
4da0ccfe
...
...
@@ -352,6 +352,7 @@ public class RunningEvaluateServiceImpl implements RunningEvaluateService {
double
sturationSum
=
0.0
;
double
stopTimesSum
=
0.0
;
int
delayTimeSum
=
0
;
double
effusionRateSum
=
0.0
;
for
(
MetricHistDTO
metricHistDTO
:
dtoList
)
{
Integer
flow
=
metricHistDTO
.
getFlow
();
Double
speed
=
metricHistDTO
.
getSpeed
();
...
...
@@ -359,12 +360,14 @@ public class RunningEvaluateServiceImpl implements RunningEvaluateService {
Double
sturation
=
metricHistDTO
.
getSturation
();
Double
stopTimes
=
metricHistDTO
.
getStopTimes
();
Integer
delayTime
=
metricHistDTO
.
getDelayTime
();
Double
effusionRate
=
metricHistDTO
.
getEffusionRate
();
if
(
flow
!=
null
)
flowSum
+=
flow
;
if
(
speed
!=
null
)
speedSum
+=
speed
;
if
(
capacity
!=
null
)
capacitySum
+=
capacity
;
if
(
sturation
!=
null
)
sturationSum
+=
sturation
;
if
(
stopTimes
!=
null
)
stopTimesSum
+=
stopTimes
;
if
(
delayTime
!=
null
)
delayTimeSum
+=
delayTime
;
if
(
effusionRate
!=
null
)
effusionRateSum
+=
effusionRate
;
}
int
size
=
dtoList
.
size
();
crossMetrics
.
setFlow
(
flowSum
);
...
...
@@ -373,6 +376,7 @@ public class RunningEvaluateServiceImpl implements RunningEvaluateService {
crossMetrics
.
setSturation
(
sturationSum
/
size
);
crossMetrics
.
setStopTimes
(
stopTimesSum
/
size
);
crossMetrics
.
setDelayTime
(
delayTimeSum
/
size
);
crossMetrics
.
setEffusionRate
(
effusionRateSum
/
size
);
}
res
.
add
(
crossMetrics
);
}
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/RunningEvaluateMetricsDetailVO.java
View file @
4da0ccfe
...
...
@@ -97,5 +97,8 @@ public class RunningEvaluateMetricsDetailVO {
@ApiModelProperty
(
value
=
"平均延误(秒)"
)
private
Integer
delayTime
;
@ApiModelProperty
(
value
=
"溢流率"
)
private
Double
effusionRate
;
}
}
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