routing
Interface WeightManager

All Known Implementing Classes:
StandardWeightManager, WeightManagerForDataGenerator

public interface WeightManager

Interface for classes that weight the edges.


Method Summary
 double computeWeight(double distance)
          Computation of the weight of an edge of class 0.
 double computeWeight(double distance, double speed)
          Computation of the weight of an edge for a given speed.
 double getWeight(Edge edge)
          Computation of the weight of an edge.
 double getWeight(Edge edge, boolean forwards)
          Computation of the weight of an edge in a given direction.
 

Method Detail

computeWeight

public double computeWeight(double distance)
Computation of the weight of an edge of class 0.

Parameters:
distance - the length of the edge
Returns:
the weight

computeWeight

public double computeWeight(double distance,
                            double speed)
Computation of the weight of an edge for a given speed.

Parameters:
distance - the length of the edge
speed - the speed on the edge
Returns:
the weight

getWeight

public double getWeight(Edge edge)
Computation of the weight of an edge.

Returns:
the weight

getWeight

public double getWeight(Edge edge,
                        boolean forwards)
Computation of the weight of an edge in a given direction.

Parameters:
forwards - true: in direction of the edge; false: in the other direction
Returns:
the weight