修改进路区段限速判断
This commit is contained in:
parent
1fd9d1230c
commit
6d7bb118ae
@ -24,7 +24,6 @@ public class TempSpeedLimitService {
|
||||
* 区段设置临时限速
|
||||
*/
|
||||
public void setSectionLimitSpeed(Simulation simulation, Section section, int limitSpeed) {
|
||||
section.setSpeedUpLimit(limitSpeed);
|
||||
if (section.isSwitchTrack()) {
|
||||
this.setSwitchLimitSpeed(simulation, section.getRelSwitch(), limitSpeed);
|
||||
} else if (section.isCross()) {
|
||||
|
@ -1051,6 +1051,15 @@ public class RouteService {
|
||||
route.debugStr(), section.debugStr()));
|
||||
return level;
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(section.getLogicList())) {
|
||||
for (Section logic : section.getLogicList()) {
|
||||
if (logic.getSpeedUpLimit() != -1) {
|
||||
log.info(String.format("进路[%s]连锁条件检查失败:区段[%s]限速",
|
||||
route.debugStr(), logic.debugStr()));
|
||||
return level;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// // 屏蔽门
|
||||
// if (!CollectionUtils.isEmpty(route.getPsdList())) {
|
||||
|
Loading…
Reference in New Issue
Block a user