进路办理检查:道岔锁闭位置检查

This commit is contained in:
walker-sheng 2021-08-19 17:07:02 +08:00
parent 29677120e3
commit 1a057918b3

View File

@ -199,13 +199,14 @@ public class RouteService {
if (aSwitch.isBlockade()) {
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchBlockade, aSwitch);
}
// 是否锁闭在另一方向
// 是否被征用到相反位置
if (aSwitch.isCiUseOnOppositePosition(element.isNormal())) {
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchCiUseOnOppositePosition, aSwitch);
}
// if (aSwitch.isLocked() && !aSwitch.isOnPosition(element.isNormal())) {
// return new Route.CheckFailMessage(Route.CheckFailReason.SwitchLockPositionError, aSwitch);
// }
// 是否锁闭在另一方向
if (aSwitch.isLocked() && !aSwitch.isOnPosition(element.isNormal())) {
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchLockPositionError, aSwitch);
}
// 是否占用在另一个位置
if (aSwitch.isSectionOccupied() && !aSwitch.isOnPosition(element.isNormal())) {
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchOccupiedPositionError, aSwitch);