Class 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 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.
    • 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 given taskId, transitVertices, pathsMap and shortestPaths.
        Parameters:
        taskId - id of this task
        transitVertices - transit vertices
        pathsMap - map for unpacked paths
        shortestPaths - paths to be unpacked
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable