From a784fc278b4076f41b1065e4455557b3cf5e7328 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Wed, 24 Aug 2022 15:56:21 +0800 Subject: [PATCH] =?UTF-8?q?routepath=20=E7=AD=9B=E9=80=89=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=97=B6=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cbtc/ATS/service/ars/AtsRouteSelectService.java | 9 +++++++++ .../rtss/simulation/cbtc/data/support/RoutePath.java | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/ars/AtsRouteSelectService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/ars/AtsRouteSelectService.java index a2879c1a9..f6bcf729b 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/ars/AtsRouteSelectService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/ars/AtsRouteSelectService.java @@ -248,6 +248,15 @@ public abstract class AtsRouteSelectService { Route route = null; for (Route temp : triggerList) { List switchList = temp.getOverlap().getFirstPath().getSwitchList(); + if(null==switchList||switchList.isEmpty()){ + log.debug("=============================================================================="); + log.debug("==>>异常进路code = {} name = {}",temp.getCode(),temp.getName()); + log.debug("==>>异常相关所有进路:"); + triggerList.forEach(r->{ + log.debug("==>>进路code={} name={} , 始端信号机code={} name={}",r.getCode(),r.getName(),r.getStart().getCode(),r.getName()); + }); + log.debug("=============================================================================="); + } BusinessExceptionAssertEnum.SYSTEM_EXCEPTION.assertCollectionNotEmpty(switchList, String.format("列车[%s]过滤进路异常:进路不是延续保护差异进路[%s]", trainInfo.getGroupNumber(), diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/data/support/RoutePath.java b/src/main/java/club/joylink/rtss/simulation/cbtc/data/support/RoutePath.java index 556cff5f5..475102cb3 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/data/support/RoutePath.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/data/support/RoutePath.java @@ -3,11 +3,12 @@ package club.joylink.rtss.simulation.cbtc.data.support; import club.joylink.rtss.exception.BusinessExceptionAssertEnum; import club.joylink.rtss.simulation.cbtc.data.map.*; import lombok.Getter; +import lombok.extern.slf4j.Slf4j; import org.springframework.util.CollectionUtils; import java.util.*; import java.util.stream.Collectors; - +@Slf4j @Getter public class RoutePath { @@ -470,6 +471,15 @@ public class RoutePath { // 取第一个延续保护道岔定位的 for (Route temp : triggerList) { List switchList = temp.getOverlap().getFirstPath().getSwitchList(); + if(null==switchList||switchList.isEmpty()){ + log.debug("=============================================================================="); + log.debug("==>>异常进路code = {} name = {}",temp.getCode(),temp.getName()); + log.debug("==>>异常相关所有进路:"); + triggerList.forEach(r->{ + log.debug("==>>进路code={} name={} , 始端信号机code={} name={}",r.getCode(),r.getName(),r.getStart().getCode(),r.getName()); + }); + log.debug("=============================================================================="); + } if (switchList.get(0).isNormal()) { route = temp; break;