南京二 实训问题处理

This commit is contained in:
Jade 2021-11-24 09:20:46 +08:00
parent 8d540769cc
commit 002fca4c64
3 changed files with 8 additions and 2 deletions

View File

@ -147,8 +147,10 @@ public class SectionGeneratorNew implements GeneratorNew {
}
break;
case Stand_Set_Reentry_Strategy:
if (section.isStandTrack()) {
section.getStandList().get(0).setTypeStrategy(Stand.TurnBackType.AUTO);
if (section.isStandTrack() && section.isTurnBackTrack()) {
Stand stand = section.getStandList().get(0);
stand.setTypeStrategy(Stand.TurnBackType.AUTO);
deviceStatusModifyTool.loadManualTrainOfGroup(simulation, "001", section, stand.isRight());
} else {
continue;
}

View File

@ -40,6 +40,9 @@ public class StationGeneratorNew implements GeneratorNew {
if (MapPrdTypeEnum.LOCAL.equals(MapPrdTypeEnum.getMapPrdTypeEnumByCode(config.getPrdType()))) {
station.setControlMode(Station.ControlMode.Local);
}
simulation.getRepository().getRouteList().stream()
.filter(route -> route.getInterlockStation().equals(station))
.forEach(route -> route.setAtsControl(false));
// List<Route> routeList1 = simulation.getRepository().getRouteList();
// for (Route route : routeList1) {
// if (Objects.equals(route.getInterlockStation(), station)) {

View File

@ -233,6 +233,7 @@ public class AtsRouteService {
for (Route route : routeList) {
if (route.isCiControl()) {
route.setCiControl(false);
route.setAtsControl(false);
}
}
}