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