From 3ebab8ed312f21b76ff137d254e3ea572df9b25c Mon Sep 17 00:00:00 2001 From: xiazengbin Date: Thu, 9 Dec 2021 14:29:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BD=A6=E8=BE=86=E6=AE=B5?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/simulation/cbtc/build/SimulationBuilder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/build/SimulationBuilder.java b/src/main/java/club/joylink/rtss/simulation/cbtc/build/SimulationBuilder.java index 12ff17feb..ffa6cc940 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/build/SimulationBuilder.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/build/SimulationBuilder.java @@ -100,7 +100,7 @@ public class SimulationBuilder { // 停车轨到转换轨 secs.forEach(parkSec -> { final String rpKey = RoutePath.buildKey(parkSec, transSec); - List nrp = tryFindRoutePathForOutByDirection(parkSec, transSec, 20); + List nrp = tryFindRoutePathForOutByDirection(parkSec, transSec, 5); List srp = srps.get(rpKey); if (null == srp) { srp = new ArrayList(); @@ -113,7 +113,7 @@ public class SimulationBuilder { // 转换轨到停车轨 secs.forEach(parkSec -> { final String rpKey = RoutePath.buildKey(transSec, parkSec); - List nrp = tryFindRoutePathByDirection(transSec, parkSec, 20); + List nrp = tryFindRoutePathByDirection(transSec, parkSec, 1); List srp = srps.get(rpKey); if (null == srp) { srp = new ArrayList(); @@ -135,7 +135,7 @@ public class SimulationBuilder { * 当方向未知时,起点终点不变,不同方向搜索route path */ private static List tryFindRoutePathForOutByDirection(Section start, Section end, int iterTimes) { - List r = tryFindRoutePathByDirection(start, end, iterTimes); + List r = tryFindRoutePathByDirection(start, end, iterTimes); if (r.size() == 2) { return r.stream().sorted((RoutePath r1, RoutePath r2) -> { return r1.getSignalList().size() - r2.getSignalList().size(); @@ -143,7 +143,7 @@ public class SimulationBuilder { } else if (r.size() > 2) { log.warn("获取车辆段从停车轨到转换轨的路径, routeKey = {} , 路径数量大于2异常 !!!"); - } + } return r; }