站台设置折返策略操作逻辑
This commit is contained in:
parent
7ef0be2c82
commit
1b1eadb370
@ -820,7 +820,7 @@ public class AtsRouteSettingService {
|
||||
}
|
||||
|
||||
@Getter
|
||||
private class TrainRoute {
|
||||
private static class TrainRoute {
|
||||
private TrainInfo train;
|
||||
|
||||
private SectionPosition headPosition;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user