修改:头码车进路选择逻辑

This commit is contained in:
joylink_zhangsai 2021-07-06 09:51:26 +08:00
parent 34118c2732
commit 5bb62daef0

View File

@ -397,13 +397,18 @@ public class AtsRouteSettingService {
if (this.hasSameEnd(triggerList)) {
// 多延续保护进路取延续保护是定位的那条
// todo 暂时逻辑定为只触发定位保护进路后需完善为根据接下来的运行目的选择延续保护
Route alternative = null;
for (Route route : triggerList) {
if (this.isOverlapStraight(route)) {
if (this.isAtsTrigger(simulation, train, route, false, trainList)) {
if (this.isOverlapStraight(route)) {
return route;
} else {
alternative = route;
}
}
}
if (alternative != null)
return alternative;
} else {
for (Route route : triggerList) {
if (this.isAtsTrigger(simulation, train, route, false, trainList)) {