| | |
| | | return normalizeCandidatePaths(orderedPathList); |
| | | } |
| | | |
| | | public synchronized Map<Integer, Set<Integer>> loadUndirectedStationGraphSnapshot() { |
| | | Map<Integer, Set<Integer>> graph = loadUndirectedStationGraph(); |
| | | Map<Integer, Set<Integer>> snapshot = new HashMap<>(); |
| | | for (Map.Entry<Integer, Set<Integer>> entry : graph.entrySet()) { |
| | | Integer stationId = entry.getKey(); |
| | | if (stationId == null) { |
| | | continue; |
| | | } |
| | | snapshot.put(stationId, new LinkedHashSet<>(entry.getValue() == null ? Collections.emptySet() : entry.getValue())); |
| | | } |
| | | return snapshot; |
| | | } |
| | | |
| | | private synchronized List<NavigateNode> calcByStationId(Integer startStationId, |
| | | Integer endStationId, |
| | | Integer currentTaskNo, |