【运行方向初始化处理】
This commit is contained in:
parent
8499b22642
commit
6bfb45f109
@ -1686,6 +1686,9 @@ public class InterlockBuilder2 {
|
||||
model.setSectionList(sectionList);
|
||||
}
|
||||
model.modifyRunStatus();
|
||||
if (model.getCurrentRouteList() != null) { // 获取默认方向
|
||||
model.setRight(model.getCurrentRouteList().stream().anyMatch(Route::isRight));
|
||||
}
|
||||
Station station = (Station) elementMap.get(stationDirection.getStationCode());
|
||||
model.setStation(station);
|
||||
station.getStationDirectionMap().put(model.getLabelEnum(), model);
|
||||
|
@ -167,9 +167,6 @@ public class StationDirection extends MapNamedElement {
|
||||
this.runStatus = this.getDefaultReceiveAndDeliver();
|
||||
this.defaultRunStatus = this.getDefaultReceiveAndDeliver();
|
||||
this.currentRouteList = getNowRouteList();
|
||||
if (DirectionRunModel.A.equals(this.runModel)) {
|
||||
this.right = this.currentRouteList.stream().anyMatch(Route::isRight);
|
||||
}
|
||||
}
|
||||
|
||||
public StationDirection(DraftMapStationDirection draftMapStationDirection) {
|
||||
@ -180,9 +177,6 @@ public class StationDirection extends MapNamedElement {
|
||||
this.defaultRunStatus = draftMapStationDirection.getRunStatus();
|
||||
this.currentRouteList = getNowRouteList();
|
||||
this.isDataConfig = true;
|
||||
if (DirectionRunModel.A.equals(this.runModel)) {
|
||||
this.right = this.currentRouteList.stream().anyMatch(Route::isRight);
|
||||
}
|
||||
}
|
||||
|
||||
public StationDirection(String code, String name) {
|
||||
|
Loading…
Reference in New Issue
Block a user