修改:IBP盘蜂鸣器bug

This commit is contained in:
joylink_zhangsai 2021-06-21 14:17:19 +08:00
parent 2339952cae
commit d350f15260

View File

@ -100,6 +100,7 @@ public class VirtualRealityIbpService implements IVirtualRealityIbpService {
case JJTC:
element.setOn(true);
stands.forEach(stand -> ciApiService.standEC(simulation, stand));
ibp.query(VirtualRealityIbp.Mean.ALARM, element.getUp()).forEach(alarm -> alarm.setOn(true));
break;
case QXJJTC:
element.setOn(true);
@ -265,9 +266,7 @@ public class VirtualRealityIbpService implements IVirtualRealityIbpService {
case KM:
case AXLE_RESET:
case PRERESET_Z:
break;
case ALARM:
element.setOn(stands.stream().anyMatch(Stand::isEmergencyClosed));
break;
case kcLight:
element.setOn(stands.stream().anyMatch(Stand::isIbpHoldTrain));