Interface EdgeEvaluator


public interface EdgeEvaluator
Computes the weight of edges in the routing graph.
  • Method Summary

    Modifier and Type Method Description
    double computeWeight​(Edge edge, Vehicle vehicle)
    Computes the weight of an edge in the routing graph.
  • Method Details

    • computeWeight

      double computeWeight​(@Nonnull Edge edge, @Nonnull Vehicle vehicle)
      Computes the weight of an edge in the routing graph.
      Parameters:
      edge - The edge.
      vehicle - The vehicle for which to compute the edge's weight.
      Returns:
      The computed weight of the given edge. A value of Double.POSITIVE_INFINITY indicates that the edge is to be excluded from routing. Note that negative weights might not be handled well by the respective routing algorithm used.