南京二 实训问题处理
This commit is contained in:
parent
8d540769cc
commit
002fca4c64
@ -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;
|
||||
}
|
||||
|
@ -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)) {
|
||||
|
@ -233,6 +233,7 @@ public class AtsRouteService {
|
||||
for (Route route : routeList) {
|
||||
if (route.isCiControl()) {
|
||||
route.setCiControl(false);
|
||||
route.setAtsControl(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user