Schnittstelle EdgeEvaluator
public interface EdgeEvaluator
Computes the weight of edges in the routing graph.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdouble
computeWeight
(Edge edge, Vehicle vehicle) Computes the weight of an edge in the routing graph.void
onGraphComputationEnd
(Vehicle vehicle) Called when/after a computation of a routing graph is done.void
onGraphComputationStart
(Vehicle vehicle) Called when/before computation of a routing graph starts.
-
Methodendetails
-
onGraphComputationStart
Called when/before computation of a routing graph starts.- Parameter:
vehicle
- The vehicle for which the routing graph is computed.
-
onGraphComputationEnd
Called when/after a computation of a routing graph is done.- Parameter:
vehicle
- The vehicle for which the routing graph is computed.
-
computeWeight
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.
-