diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATP/ground/TempSpeedLimitService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATP/ground/TempSpeedLimitService.java index 112d718da..ec0e1328f 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATP/ground/TempSpeedLimitService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATP/ground/TempSpeedLimitService.java @@ -24,7 +24,6 @@ public class TempSpeedLimitService { * 区段设置临时限速 */ public void setSectionLimitSpeed(Simulation simulation, Section section, int limitSpeed) { - section.setSpeedUpLimit(limitSpeed); if (section.isSwitchTrack()) { this.setSwitchLimitSpeed(simulation, section.getRelSwitch(), limitSpeed); } else if (section.isCross()) { diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/CI/service/RouteService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/CI/service/RouteService.java index 4ee01afb5..6bc078e6e 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/CI/service/RouteService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/CI/service/RouteService.java @@ -1051,6 +1051,15 @@ public class RouteService { route.debugStr(), section.debugStr())); return level; } + if (!CollectionUtils.isEmpty(section.getLogicList())) { + for (Section logic : section.getLogicList()) { + if (logic.getSpeedUpLimit() != -1) { + log.info(String.format("进路[%s]连锁条件检查失败:区段[%s]限速", + route.debugStr(), logic.debugStr())); + return level; + } + } + } } // // 屏蔽门 // if (!CollectionUtils.isEmpty(route.getPsdList())) {