21 package org.matsim.core.router;
23 import java.util.HashMap;
44 private final Map<Network, PreProcessEuclidean>
preProcessData =
new HashMap<>();
57 switch (fastRouterType) {
63 "PointerRoutingNetworks are no longer supported. Use ArrayRoutingNetworks instead. Aborting!");
75 if (routingNetwork == null) {
79 preProcessEuclidean.
run(network);
80 this.preProcessData.put(network, preProcessEuclidean);
83 node.setDeadEndData(preProcessEuclidean.
getNodeData(node.getNode()));
86 this.routingNetworks.put(network, routingNetwork);
90 return new FastAStarEuclidean(routingNetwork, preProcessEuclidean, travelCosts, travelTimes, overdoFactor,
synchronized LeastCostPathCalculator createPathCalculator(final Network network, final TravelDisutility travelCosts, final TravelTime travelTimes)
final Map< Network, RoutingNetwork > routingNetworks
final Map< Network, PreProcessEuclidean > preProcessData
void run(final Network network)
FastAStarEuclideanFactory()
FastAStarEuclideanFactory(double overdoFactor)
Map< Id< Node >, RoutingNetworkNode > getNodes()
FastAStarEuclideanFactory(final FastRouterType fastRouterType, double overdoFactor)
DeadEndData getNodeData(final Node n)
final double overdoFactor
RoutingNetwork createRoutingNetwork(final Network network)
final RoutingNetworkFactory routingNetworkFactory