Schnittstelle EdgeEvaluator


public interface EdgeEvaluator
Computes the weight of edges in the routing graph.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    double
    computeWeight(Edge edge, Vehicle vehicle)
    Computes the weight of an edge in the routing graph.
    void
    Called when/after a computation of a routing graph is done.
    void
    Called when/before computation of a routing graph starts.
  • Methodendetails

    • onGraphComputationStart

      void onGraphComputationStart(@Nonnull Vehicle vehicle)
      Called when/before computation of a routing graph starts.
      Parameter:
      vehicle - The vehicle for which the routing graph is computed.
    • onGraphComputationEnd

      void onGraphComputationEnd(@Nonnull Vehicle vehicle)
      Called when/after a computation of a routing graph is done.
      Parameter:
      vehicle - The vehicle for which the routing graph is computed.
    • computeWeight

      double computeWeight(@Nonnull Edge edge, @Nonnull Vehicle vehicle)
      Computes the weight of an edge in the routing graph.
      Parameter:
      edge - The edge.
      vehicle - The vehicle for which to compute the edge's weight.
      Gibt zurück:
      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.