进路办理检查:道岔锁闭位置检查
This commit is contained in:
parent
29677120e3
commit
1a057918b3
@ -199,13 +199,14 @@ public class RouteService {
|
|||||||
if (aSwitch.isBlockade()) {
|
if (aSwitch.isBlockade()) {
|
||||||
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchBlockade, aSwitch);
|
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchBlockade, aSwitch);
|
||||||
}
|
}
|
||||||
// 是否锁闭在另一方向
|
// 是否被征用到相反位置
|
||||||
if (aSwitch.isCiUseOnOppositePosition(element.isNormal())) {
|
if (aSwitch.isCiUseOnOppositePosition(element.isNormal())) {
|
||||||
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchCiUseOnOppositePosition, aSwitch);
|
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())) {
|
if (aSwitch.isSectionOccupied() && !aSwitch.isOnPosition(element.isNormal())) {
|
||||||
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchOccupiedPositionError, aSwitch);
|
return new Route.CheckFailMessage(Route.CheckFailReason.SwitchOccupiedPositionError, aSwitch);
|
||||||
|
Loading…
Reference in New Issue
Block a user