大铁CTC去掉ATS进路触发功能;修改CTC股道视图计划生成逻辑
This commit is contained in:
parent
67ac1683c4
commit
af36dd547d
@ -83,7 +83,9 @@ public class AtsTrainMonitorService {
|
||||
}
|
||||
}
|
||||
// ATS自动进路触发
|
||||
if (!simulation.getRepository().getConfig().isHasCTC()) {
|
||||
this.atsTriggerRouteService.tryTrigger(simulation, trainInfo);
|
||||
}
|
||||
// // PIS语音自动触发
|
||||
// if (trainInfo.isBeAbout2Arrival()) {
|
||||
// String estimatedArriveStandTrack = trainInfo.getEstimatedArriveStandTrack();
|
||||
|
@ -184,8 +184,9 @@ public class CTCLogicLoop {
|
||||
VirtualRealityTrain train = repository.getOnlineTrainBy(trainInfo.getGroupNumber());
|
||||
StationPlan stationPlan = tripPlan.queryStationPlanByStationCode(trainInfo.getStationCode());
|
||||
Section headSection = train.getHeadPosition().getSection();
|
||||
Section previousSection = headSection;
|
||||
while (stationPlan != null) {
|
||||
List<RoutePath> paths = repository.queryRoutePathsByEndAndContainsSection(stationPlan.getSection(), headSection);
|
||||
List<RoutePath> paths = repository.queryRoutePathsByEndAndContainsSection(stationPlan.getSection(), previousSection);
|
||||
if (!CollectionUtils.isEmpty(paths)) {
|
||||
paths = paths.stream().filter(routePath -> Objects.equals(routePath.isRight(), tripPlan.isRight())).collect(Collectors.toList());
|
||||
}
|
||||
@ -216,6 +217,7 @@ public class CTCLogicLoop {
|
||||
RoutePath routePath = selectRoutePath(routePaths);
|
||||
Route departureRoute = routePath.getFirstRoute();
|
||||
ctcStationPlan.setDepartureRoute(departureRoute);
|
||||
previousSection = stationPlan.getSection();
|
||||
}
|
||||
stationPlan = tripPlan.queryNextStationPlan(stationPlan.getStation());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user