【实训设备筛选修改】

This commit is contained in:
weizhihong 2022-12-08 16:31:02 +08:00
parent 7ef02b4ce4
commit 4a82fe3ccf

View File

@ -181,7 +181,7 @@ public enum MapDeviceRule {
if (route.getStart().getDeviceStation() != null && !route.getStart().getDeviceStation().isInterlock()) { if (route.getStart().getDeviceStation() != null && !route.getStart().getDeviceStation().isInterlock()) {
return false; return false;
} }
if ((!route.isArs()) || route.isGuide()) { if ((!route.isArs()) || route.isGuide() || !route.isFlt()) {
return false; return false;
} }
return true; return true;
@ -283,6 +283,13 @@ public enum MapDeviceRule {
if (deviceStation != null && !deviceStation.isInterlock()) { if (deviceStation != null && !deviceStation.isInterlock()) {
return false; return false;
} }
Station station = section.getStation();
if (station != null && station.isDepot()) {
return false;
}
if (station != null && !station.isInterlock()) {
return false;
}
Section axleCounterSection = section.findAxleCounterSection(); Section axleCounterSection = section.findAxleCounterSection();
if (axleCounterSection != null) { if (axleCounterSection != null) {
Station axleDeviceStation = axleCounterSection.getDeviceStation(); Station axleDeviceStation = axleCounterSection.getDeviceStation();