From b0c3dabc384ab3c57d050bb8427469b515ff7915 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Tue, 9 May 2023 17:21:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AAATS?= =?UTF-8?q?=E6=8A=A5=E8=AD=A6=E4=BF=A1=E6=81=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../club/joylink/rtss/simulation/cbtc/ATS/data/AtsAlarm.java | 2 ++ .../rtss/simulation/cbtc/ATS/service/alarm/AtsAlarmService.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/data/AtsAlarm.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/data/AtsAlarm.java index b9706c2bf..f72f6275f 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/data/AtsAlarm.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/data/AtsAlarm.java @@ -116,6 +116,8 @@ public class AtsAlarm { Conflict_Route_Set, /** 列车延误 */ TRAIN_DELAY, + /** 设备故障 */ + DEVICE_FAULT, } /** diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/alarm/AtsAlarmService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/alarm/AtsAlarmService.java index 581bee49d..c0fd4219f 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/alarm/AtsAlarmService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/alarm/AtsAlarmService.java @@ -29,7 +29,7 @@ public class AtsAlarmService { Simulation simulation = event.getSimulation(); DeviceFaultInfo deviceFaultInfo = event.getDeviceFaultInfo(); AtsAlarm alarm = new AtsAlarm(String.valueOf(simulation.getIdGenerator().generateAlarmId()), - simulation.getCorrectSystemTime(), null, "A", + simulation.getCorrectSystemTime(), AtsAlarm.Type.DEVICE_FAULT, "A", deviceFaultInfo.getCode(), deviceFaultInfo.getFault()); simulation.getRepository().addAtsAlarm(alarm); SocketMessageVO> alarmMessage