From 0e1a8da2d5f5af5453fbb56b838eb37f2680ec0c Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Tue, 29 Mar 2022 13:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E7=BA=A7=E5=88=AB=E4=B8=BAITC=E7=9A=84=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF=E5=8A=A0=E8=BD=BD=E5=87=BA=E5=BA=93=E5=88=97=E8=BD=A6?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BD=BF=E5=88=97=E8=BD=A6?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simulation/cbtc/ATS/tools/TrainOutboundLoadTool.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/tools/TrainOutboundLoadTool.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/tools/TrainOutboundLoadTool.java index 9685301f9..5a1ab21c6 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/tools/TrainOutboundLoadTool.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/tools/TrainOutboundLoadTool.java @@ -1,5 +1,6 @@ package club.joylink.rtss.simulation.cbtc.ATS.tools; +import club.joylink.rtss.simulation.cbtc.ATP.ground.MaService; import club.joylink.rtss.simulation.cbtc.Simulation; import club.joylink.rtss.simulation.cbtc.constant.RunLevel; import club.joylink.rtss.simulation.cbtc.constant.TrainType; @@ -12,6 +13,7 @@ import club.joylink.rtss.simulation.cbtc.data.support.SectionPosition; import club.joylink.rtss.simulation.cbtc.data.vo.TrainInfo; import club.joylink.rtss.simulation.cbtc.data.vr.VirtualRealityTrain; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.time.LocalDateTime; @@ -23,6 +25,9 @@ import java.util.Objects; @Component public class TrainOutboundLoadTool { + @Autowired + private MaService maService; + public void loadOutboundTrain(Simulation simulation) { if (!simulation.isPlanRunning()) { // 未开始计划运行 return; @@ -76,7 +81,10 @@ public class TrainOutboundLoadTool { SectionPosition headPosition = new SectionPosition(startSection, offset); train.initManualTrain(headPosition, right); if (Objects.equals(RunLevel.ITC, repository.getConfig().getRunMode())) { + train.setCommunication(false); + train.setNoCommunicateDevice(true); train.setITCMode(); + this.maService.calculateAndUpdateItcMa(simulation, train); } repository.addOnlineTrain(train);