列车脱线

This commit is contained in:
xiazengbin 2022-07-29 17:49:29 +08:00
parent c862318813
commit e66a0c204a

View File

@ -119,7 +119,6 @@ public class VirtualRealityTrain extends VirtualRealityDevice {
* 车载服务通讯是否正常在线
*/
private boolean communication;
/**
* 列车运行级别
*/
@ -1286,7 +1285,18 @@ public class VirtualRealityTrain extends VirtualRealityDevice {
return false;
}
},
/** 列车脱线 */
OFF_LINE {
@Override
public boolean apply(MapElement device) {
if (super.apply(device)) {
VirtualRealityTrain train = (VirtualRealityTrain) device;
train.emergencyBreak(); //暂时就在这里直接处理可能正常应该是ATP的责任
return true;
}
return false;
}
},
/** 突然EB */
SUDDEN_EB{},;