重启令解实训,背景给车站设置站控;列车经过【ARB】【进路锁闭】的区段之后,取消进路锁闭

This commit is contained in:
joylink_zhangsai 2021-12-02 12:59:54 +08:00
parent a7acb9929d
commit 09d423a3f4
2 changed files with 6 additions and 1 deletions

View File

@ -277,6 +277,11 @@ public class StationGeneratorNew implements GeneratorNew {
param.put("stationCode", station.getCode());
atsOperationDispatcher.execute(simulation, member, operate, param);
station.setInterlockMachineStarting(true);
if(station.isCentralized()) {
station.setControlMode(Station.ControlMode.Local);
}else{
station.getDeviceStation().setControlMode(Station.ControlMode.Local);
}
break;
}
case Station_Release: {

View File

@ -462,7 +462,7 @@ public class CiRouteService {
Collections.reverse(logicList);
}
for (Section logic : logicList) {
if (!logic.isOccupied() && !logic.isInvalid() && logic.isRouteLockOn(right)) {
if (!logic.isOccupied() && /*!logic.isInvalid() &&*/ logic.isRouteLockOn(right)) {
logic.routeUnlocking(route);
logic.overlapUnlocking();
} else if(logic.isOccupied() || logic.isInvalid()) {