【实训信号机设备筛选规则】
This commit is contained in:
parent
1b88089ace
commit
07ff57162e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user