Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
ZHHT-IRN-BD-ANALYSIS
Project
Overview
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
李凯旋
ZHHT-IRN-BD-ANALYSIS
Commits
ebd15722
Commit
ebd15722
authored
Nov 17, 2022
by
余根龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除打印日志
parent
9bf58b0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
GreenRadioJob.java
...reaming/src/main/java/com/zhht/irn/job/GreenRadioJob.java
+0
-8
No files found.
realtime/hologram-streaming/src/main/java/com/zhht/irn/job/GreenRadioJob.java
View file @
ebd15722
...
@@ -29,7 +29,6 @@ public class GreenRadioJob {
...
@@ -29,7 +29,6 @@ public class GreenRadioJob {
System
.
out
.
println
(
cycle
);
System
.
out
.
println
(
cycle
);
double
cycleGreenRatioTotal
=
0
;
double
cycleGreenRatioTotal
=
0
;
int
cycleLossTimeTotal
=
0
;
int
cycleLossTimeTotal
=
0
;
// 先按阶段进行计算
// 先按阶段进行计算
List
<
Stage
>
stageList
=
cycle
.
getStageList
();
List
<
Stage
>
stageList
=
cycle
.
getStageList
();
for
(
Stage
stage
:
stageList
)
{
for
(
Stage
stage
:
stageList
)
{
...
@@ -47,25 +46,18 @@ public class GreenRadioJob {
...
@@ -47,25 +46,18 @@ public class GreenRadioJob {
int
phaseLossTime
=
startLossTime
+
clearLossTime
;
int
phaseLossTime
=
startLossTime
+
clearLossTime
;
// 阶段有效绿灯时间 = 绿灯时长+黄灯时长+全红时长 - 阶段损失时间
// 阶段有效绿灯时间 = 绿灯时长+黄灯时长+全红时长 - 阶段损失时间
int
phaseValidGreen
=
green
+
yellow
+
allRed
-
phaseLossTime
;
int
phaseValidGreen
=
green
+
yellow
+
allRed
-
phaseLossTime
;
// 阶段绿信比 = 阶段有效绿灯时间/周期时长
// 阶段绿信比 = 阶段有效绿灯时间/周期时长
Integer
duration
=
cycle
.
getDuration
();
Integer
duration
=
cycle
.
getDuration
();
System
.
out
.
println
(
"********duration:"
+
duration
);
double
phaseGreenRatio
=
0
;
double
phaseGreenRatio
=
0
;
if
(
duration
!=
null
&&
duration
!=
0
){
if
(
duration
!=
null
&&
duration
!=
0
){
phaseGreenRatio
=
Double
.
valueOf
(
phaseValidGreen
)
/
duration
;
phaseGreenRatio
=
Double
.
valueOf
(
phaseValidGreen
)
/
duration
;
}
}
if
(
duration
==
0
)
{
System
.
out
.
println
(
"********phaseGreenRatio:"
+
phaseGreenRatio
);
}
//组装阶段绿信比、有效绿灯时间、损失时间
//组装阶段绿信比、有效绿灯时间、损失时间
stage
.
setGreenRatio
(
phaseGreenRatio
);
stage
.
setGreenRatio
(
phaseGreenRatio
);
stage
.
setValidGreen
(
phaseValidGreen
);
stage
.
setValidGreen
(
phaseValidGreen
);
stage
.
setLossTime
(
phaseLossTime
);
stage
.
setLossTime
(
phaseLossTime
);
// 周期绿信比 = 阶段绿信比之和
// 周期绿信比 = 阶段绿信比之和
cycleGreenRatioTotal
=
cycleGreenRatioTotal
+
phaseGreenRatio
;
cycleGreenRatioTotal
=
cycleGreenRatioTotal
+
phaseGreenRatio
;
// 周期损失时间 = 各个阶段损失时间之和
// 周期损失时间 = 各个阶段损失时间之和
cycleLossTimeTotal
=
cycleLossTimeTotal
+
phaseLossTime
;
cycleLossTimeTotal
=
cycleLossTimeTotal
+
phaseLossTime
;
}
}
...
...
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