From 4d14cd19fd00e57353dba470686b558e56cbeb92 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Tue, 14 Dec 2021 17:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=AB=99=E5=8F=B0=E6=8A=98=E8=BF=94?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E4=B8=8D=E7=94=9F=E6=95=88=E3=80=91=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ATS/service/ars/AtsRouteSelectService.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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 b81ebe977..da6fea445 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 @@ -69,13 +69,16 @@ public abstract class AtsRouteSelectService { public Route queryTriggerRoutes4TurnBack(Simulation simulation, Section standSection, Section tbSection, TrainInfo trainInfo) { SimulationDataRepository repository = simulation.getRepository(); - //根据站台折返策略处理 - Stand stand = standSection.getStandList().get(0); - Stand.TurnBackType typeStrategy = stand.getTypeStrategy(); - switch (typeStrategy) { - case NONE: - case AUTO: - return null; + MapConfig config = repository.getConfig(); + if (!config.isStandTbStrategyIsInvalid()) { + //根据站台折返策略处理 + Stand stand = standSection.getStandList().get(0); + Stand.TurnBackType typeStrategy = stand.getTypeStrategy(); + switch (typeStrategy) { + case NONE: + case AUTO: + return null; + } } //根据车站折返策略处理 Station station = standSection.getStation();