列车脱线
This commit is contained in:
parent
c862318813
commit
e66a0c204a
@ -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{},;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user