运行线添加必经区段(逻辑未实现,只是添加数据)

This commit is contained in:
joylink_zhangsai 2021-03-23 16:52:41 +08:00
parent e5282d6c0d
commit e1dae1fa02
2 changed files with 10 additions and 1 deletions

View File

@ -550,6 +550,7 @@ public class InterlockBuilder2 {
Station rightStation = null;
Boolean leftFrontTurnBack = null;
Boolean rightFrontTurnBack = null;
Route route = null;
List<Section> runPath = null;
List<Route> routes = null;
@ -677,7 +678,7 @@ public class InterlockBuilder2 {
break;
}
DestinationCodeDefinition destinationCodeDefinition = new DestinationCodeDefinition(code, type, description, startSection, section,
right, necessarySections, leftStation, leftFrontTurnBack, rightStation, rightFrontTurnBack, runPath, routes);
right, necessarySections, leftStation, leftFrontTurnBack, rightStation, rightFrontTurnBack, route, runPath, routes);
destinationMap.put(code, destinationCodeDefinition);
}
}

View File

@ -65,6 +65,11 @@ public class MapDestinationCodeDefinitionVO {
*/
private Boolean stationBFrontTurnBack;
/**
* 必选进路
*/
private String necessaryRouteCode;
/**
* 目前仅用来生成目的地码数据
*/
@ -95,6 +100,9 @@ public class MapDestinationCodeDefinitionVO {
if (definition.getRightFrontTurnBack() != null) {
vo.stationBFrontTurnBack = definition.getRightFrontTurnBack();
}
if (definition.getNecessaryRoute() != null) {
vo.necessaryRouteCode = definition.getNecessaryRoute().getCode();
}
return vo;
}