修改:头码车进路选择逻辑
This commit is contained in:
parent
34118c2732
commit
5bb62daef0
@ -397,13 +397,18 @@ public class AtsRouteSettingService {
|
|||||||
if (this.hasSameEnd(triggerList)) {
|
if (this.hasSameEnd(triggerList)) {
|
||||||
// 多延续保护进路,取延续保护是定位的那条
|
// 多延续保护进路,取延续保护是定位的那条
|
||||||
// todo 暂时逻辑定为只触发定位保护进路,后需完善为根据接下来的运行目的选择延续保护
|
// todo 暂时逻辑定为只触发定位保护进路,后需完善为根据接下来的运行目的选择延续保护
|
||||||
|
Route alternative = null;
|
||||||
for (Route route : triggerList) {
|
for (Route route : triggerList) {
|
||||||
if (this.isOverlapStraight(route)) {
|
|
||||||
if (this.isAtsTrigger(simulation, train, route, false, trainList)) {
|
if (this.isAtsTrigger(simulation, train, route, false, trainList)) {
|
||||||
|
if (this.isOverlapStraight(route)) {
|
||||||
return route;
|
return route;
|
||||||
|
} else {
|
||||||
|
alternative = route;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (alternative != null)
|
||||||
|
return alternative;
|
||||||
} else {
|
} else {
|
||||||
for (Route route : triggerList) {
|
for (Route route : triggerList) {
|
||||||
if (this.isAtsTrigger(simulation, train, route, false, trainList)) {
|
if (this.isAtsTrigger(simulation, train, route, false, trainList)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user