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
fb71083d
Commit
fb71083d
authored
Feb 20, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 策略优化时长优化,空放添加跳相和延长
parent
354681b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
StrategyControlServiceImpl.java
...pt/synthesis/service/impl/StrategyControlServiceImpl.java
+6
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/service/impl/StrategyControlServiceImpl.java
View file @
fb71083d
...
...
@@ -442,7 +442,12 @@ public class StrategyControlServiceImpl implements StrategyControlService {
optCount
+=
value
.
size
();
for
(
StrategyCrossResultEntity
entity
:
value
)
{
if
(
Objects
.
equals
(
1
,
type
))
{
optTime
+=
Math
.
abs
(
entity
.
getExtendTime
());
Integer
rtnType
=
entity
.
getRtnType
();
if
(
rtnType
<
0
&&
rtnType
>=
-
150
)
{
optTime
+=
Math
.
abs
(
entity
.
getExtendTime
());
}
else
if
(
rtnType
<
-
150
&&
rtnType
>=
-
250
){
optTime
+=
1
;
}
}
if
(
Objects
.
equals
(
2
,
type
))
{
if
(
Objects
.
nonNull
(
entity
.
getDuration
()))
{
...
...
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