Module org.jgrapht.core
Package org.jgrapht.alg.shortestpath
Class TransitNodeRoutingPrecomputation.PathsUnpackingTask
- java.lang.Object
-
- org.jgrapht.alg.shortestpath.TransitNodeRoutingPrecomputation.PathsUnpackingTask
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- TransitNodeRoutingPrecomputation<V,E>
private class TransitNodeRoutingPrecomputation.PathsUnpackingTask extends java.lang.Object implements java.lang.Runnable
Task which is used to unpack contracted many-to-many shortest paths between transit vertices.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<V,java.util.Map<V,GraphPath<V,E>>>
pathsMap
Map where the unpacked paths will be stored.private ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E>
shortestPaths
Many-to-many shortest paths to be unpacked.private int
taskId
Id of this task.private java.util.List<V>
transitVertices
Selected transit vertices.
-
Constructor Summary
Constructors Constructor Description PathsUnpackingTask(int taskId, java.util.List<V> transitVertices, java.util.Map<V,java.util.Map<V,GraphPath<V,E>>> pathsMap, ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E> shortestPaths)
Constructs a new instance for the giventaskId
,transitVertices
,pathsMap
andshortestPaths
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
-
-
Field Detail
-
taskId
private int taskId
Id of this task.
-
transitVertices
private java.util.List<V> transitVertices
Selected transit vertices.
-
pathsMap
private java.util.Map<V,java.util.Map<V,GraphPath<V,E>>> pathsMap
Map where the unpacked paths will be stored.
-
shortestPaths
private ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E> shortestPaths
Many-to-many shortest paths to be unpacked.
-
-
Constructor Detail
-
PathsUnpackingTask
public PathsUnpackingTask(int taskId, java.util.List<V> transitVertices, java.util.Map<V,java.util.Map<V,GraphPath<V,E>>> pathsMap, ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E> shortestPaths)
Constructs a new instance for the giventaskId
,transitVertices
,pathsMap
andshortestPaths
.- Parameters:
taskId
- id of this tasktransitVertices
- transit verticespathsMap
- map for unpacked pathsshortestPaths
- paths to be unpacked
-
-