【站台折返策略不生效】逻辑补全
This commit is contained in:
parent
4442223dfc
commit
4d14cd19fd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user