【实训信号机设备筛选规则】

This commit is contained in:
weizhihong 2022-12-20 14:48:14 +08:00
parent 1b88089ace
commit 07ff57162e

View File

@ -805,6 +805,9 @@ public enum MapDeviceRule {
if (route.getStart().getStation() == null || route.getStart().getStation().isDepot()) {
return false;
}
if(!Objects.equals(route.getStart().getStation(), route.getInterlockStation())) {
return false;
}
// 排除道岔默认单锁的进路
if (route.getSwitchList().stream().anyMatch(switchElement -> !switchElement.isNormal())) {
return false;