21 package org.matsim.core.router.util;
23 import org.apache.logging.log4j.LogManager;
24 import org.apache.logging.log4j.Logger;
60 log.warn(
"There are links with stored length smaller than their Euclidean distance in this network. Thus, A* cannot guarantee to calculate the least-cost paths between two nodes.");
70 setMinTravelCostPerLength(minCost);
77 double linkLength = link.getLength();
79 if (linkLength < eucDist) {
80 if (log.isDebugEnabled()) {
81 log.debug(
"link " + link.getId() +
" has length " + linkLength +
" which is smaller than the euclidean distance " + eucDist);
89 void setMinTravelCostPerLength(
final double maxFreeSpeed) {
90 this.minTravelCostPerLength = maxFreeSpeed;
PreProcessEuclidean(final TravelDisutility costFunction)
void updateMinTravelCostPerLength(final Network network)
static double calcEuclideanDistance(Coord coord, Coord other)
TravelDisutility costFunction
void run(final Network network)
double minTravelCostPerLength
boolean checkLinkLengths(final Network network)
double getMinTravelCostPerLength()
TravelDisutility getCostFunction()
Map< Id< Link >, ? extends Link > getLinks()
double getLinkMinimumTravelDisutility(final Link link)