站台设置折返策略操作逻辑

This commit is contained in:
walker-sheng 2021-06-24 16:47:45 +08:00
parent 7ef0be2c82
commit 1b1eadb370
2 changed files with 3 additions and 3 deletions

View File

@ -820,7 +820,7 @@ public class AtsRouteSettingService {
}
@Getter
private class TrainRoute {
private static class TrainRoute {
private TrainInfo train;
private SectionPosition headPosition;

View File

@ -17,7 +17,6 @@ import club.joylink.rtss.simulation.cbtc.onboard.ATP.OnboardAtpApiService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import java.util.List;
@ -258,7 +257,8 @@ public class AtsStandService {
*/
public void setTurnBackStrategy(Simulation simulation, String standCode, String standReentryStrategy) {
Stand stand = getStand(simulation, standCode);
stand.setTypeStrategy(Stand.TurnBackType.DEFAULT);
Stand.TurnBackType tbType = Stand.TurnBackType.valueOf(standReentryStrategy);
stand.setTypeStrategy(tbType);
}
/**