计轴受扰 岔心状态
This commit is contained in:
parent
63db1a8564
commit
d916dc162e
@ -1139,25 +1139,20 @@ public class Section extends DelayUnlockDevice {
|
||||
return;
|
||||
}
|
||||
this.setInvalid(true);
|
||||
if (!CollectionUtils.isEmpty(this.logicList)) {
|
||||
for (Section logic : this.logicList) {
|
||||
logic.setInvalid(true);
|
||||
}
|
||||
}
|
||||
if (this.isSwitchAxleCounterSection()) { // 道岔计轴区段
|
||||
List<Switch> relSwitchList = this.getRelSwitchList();
|
||||
for (Switch aSwitch : relSwitchList) {
|
||||
aSwitch.getA().setInvalid(true);
|
||||
if (aSwitch.isPosN()) {
|
||||
aSwitch.getB().setInvalid(true);
|
||||
aSwitch.getC().setInvalid(false);
|
||||
} else if (aSwitch.isPosR()) {
|
||||
aSwitch.getC().setInvalid(true);
|
||||
aSwitch.getB().setInvalid(false);
|
||||
} else {
|
||||
aSwitch.getB().setInvalid(true);
|
||||
aSwitch.getC().setInvalid(true);
|
||||
}
|
||||
}
|
||||
} else if (!CollectionUtils.isEmpty(this.logicList)) {
|
||||
for (Section logic : this.logicList) {
|
||||
logic.setInvalid(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user