优化loadDepotInOutRoutePath
This commit is contained in:
parent
76876c6818
commit
b9a550a6a5
@ -87,13 +87,13 @@ public class SimulationBuilder {
|
||||
/**
|
||||
* 加载进出depot的route path
|
||||
*/
|
||||
private static void loadDepotInOutRoutePath(Simulation simulation) {
|
||||
final Map<String, List<RoutePath>> srps = simulation.getRepository().getRoutePathMap();
|
||||
private static void loadDepotInOutRoutePath(Simulation simulation) {
|
||||
// 仿真车辆段站台停车轨列表
|
||||
Map<Station, List<Section>> parkingTracksMap = simulation.getRepository().getParkingTracksMap();
|
||||
if (CollectionUtils.isEmpty(parkingTracksMap)) {
|
||||
return;
|
||||
}
|
||||
final Map<String, List<RoutePath>> srps = simulation.getRepository().getRoutePathMap();
|
||||
parkingTracksMap.forEach((station, secs) -> {
|
||||
if (station.isDepot()) {// 车站为车辆段
|
||||
List<Section> transferList = station.getTransferList();// 转换轨列表
|
||||
|
Loading…
Reference in New Issue
Block a user