优化车辆段路径搜索
This commit is contained in:
parent
ce26b80e6a
commit
3ebab8ed31
@ -100,7 +100,7 @@ public class SimulationBuilder {
|
||||
// 停车轨到转换轨
|
||||
secs.forEach(parkSec -> {
|
||||
final String rpKey = RoutePath.buildKey(parkSec, transSec);
|
||||
List<RoutePath> nrp = tryFindRoutePathForOutByDirection(parkSec, transSec, 20);
|
||||
List<RoutePath> nrp = tryFindRoutePathForOutByDirection(parkSec, transSec, 5);
|
||||
List<RoutePath> srp = srps.get(rpKey);
|
||||
if (null == srp) {
|
||||
srp = new ArrayList<RoutePath>();
|
||||
@ -113,7 +113,7 @@ public class SimulationBuilder {
|
||||
// 转换轨到停车轨
|
||||
secs.forEach(parkSec -> {
|
||||
final String rpKey = RoutePath.buildKey(transSec, parkSec);
|
||||
List<RoutePath> nrp = tryFindRoutePathByDirection(transSec, parkSec, 20);
|
||||
List<RoutePath> nrp = tryFindRoutePathByDirection(transSec, parkSec, 1);
|
||||
List<RoutePath> srp = srps.get(rpKey);
|
||||
if (null == srp) {
|
||||
srp = new ArrayList<RoutePath>();
|
||||
|
Loading…
Reference in New Issue
Block a user