侧防锁闭逻辑问题修改

This commit is contained in:
walker-sheng 2021-04-02 17:07:03 +08:00
parent 5965385be5
commit a166f3e4be

View File

@ -71,8 +71,10 @@ public class RouteFls {
public void lock() { public void lock() {
for (FlsElement flsElement : this.getLevel1List()) { for (FlsElement flsElement : this.getLevel1List()) {
SwitchElement pSwitch = flsElement.getPSwitch(); SwitchElement pSwitch = flsElement.getPSwitch();
if (pSwitch != null && (pSwitch.isOnPosition() || !pSwitch.getASwitch().isSectionOccupied())) { if (pSwitch != null) {
if (pSwitch.isOnPosition() || (pSwitch.getASwitch().isLoss())) {
pSwitch.getASwitch().fpLock(); pSwitch.getASwitch().fpLock();
}
} else { } else {
Signal pSignal = flsElement.getPSignal(); Signal pSignal = flsElement.getPSignal();
SwitchElement fpae = flsElement.getFpae(); SwitchElement fpae = flsElement.getFpae();