【站台折返策略不生效】逻辑补全

This commit is contained in:
joylink_zhangsai 2021-12-14 17:33:55 +08:00
parent 4442223dfc
commit 4d14cd19fd

View File

@ -69,13 +69,16 @@ public abstract class AtsRouteSelectService {
public Route queryTriggerRoutes4TurnBack(Simulation simulation, Section standSection, Section tbSection, TrainInfo trainInfo) {
SimulationDataRepository repository = simulation.getRepository();
//根据站台折返策略处理
Stand stand = standSection.getStandList().get(0);
Stand.TurnBackType typeStrategy = stand.getTypeStrategy();
switch (typeStrategy) {
case NONE:
case AUTO:
return null;
MapConfig config = repository.getConfig();
if (!config.isStandTbStrategyIsInvalid()) {
//根据站台折返策略处理
Stand stand = standSection.getStandList().get(0);
Stand.TurnBackType typeStrategy = stand.getTypeStrategy();
switch (typeStrategy) {
case NONE:
case AUTO:
return null;
}
}
//根据车站折返策略处理
Station station = standSection.getStation();