|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--routing.StandardWeightManager
Standard class for weighting the edges.
| Field Summary | |
protected Edges |
edges
Container for the edges. |
| Constructor Summary | |
StandardWeightManager(Edges edges)
Constructor. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Edges edges
| Constructor Detail |
public StandardWeightManager(Edges edges)
| Method Detail |
public double computeWeight(double distance)
computeWeight in interface WeightManagerdistance - the length of the edge
public double computeWeight(double distance,
double speed)
computeWeight in interface WeightManagerdistance - the length of the edgespeed - the speed on the edge
public double getWeight(Edge edge)
getWeight in interface WeightManager
public double getWeight(Edge edge,
boolean forwards)
getWeight in interface WeightManagerforwards - true: in direction of the edge; false: in the other direction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||