修改进路接近锁闭的判定条件与信号机保持一致;回滚办理引导进路时,引导信号持续时间逻辑
This commit is contained in:
parent
5372e55b44
commit
5cbcd67041
|
@ -494,15 +494,17 @@ public class CiApiServiceImpl2 implements CiApiService {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (signal.getGuideRemain() > 0) {
|
||||
// Route lockedRoute = signal.getLockedRoute();
|
||||
// if (lockedRoute != null && lockedRoute.getFirstLogicSection().isOccupied() && signal.isGuideAspect()) {
|
||||
// signal.guideDelayStart();
|
||||
// }
|
||||
signal.setGuideRemain(0);
|
||||
} else {
|
||||
signal.guideDelayStart();
|
||||
if (repository.getConfig().isRailway() && signal.isHigherThanGuideLevel()) {
|
||||
Route lockedRoute = signal.getLockedRoute();
|
||||
if (lockedRoute != null && lockedRoute.getFirstLogicSection().isOccupied()) {
|
||||
signal.guideDelayStart();
|
||||
}
|
||||
}
|
||||
// if (signal.getGuideRemain() > 0) {
|
||||
// signal.setGuideRemain(0);
|
||||
// } else {
|
||||
// signal.guideDelayStart();
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -441,7 +441,7 @@ public class Route extends MapNamedElement {
|
|||
}
|
||||
|
||||
public boolean isApproachLock() {
|
||||
return this.isOpenMain() && this.getStart().isApproachLock();
|
||||
return /*this.isOpenMain() &&*/ this.getStart().isApproachLock();
|
||||
}
|
||||
|
||||
public boolean isAnySectionOccupied() {
|
||||
|
|
Loading…
Reference in New Issue