|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
public double computeWeight(double distance)
distance - the length of the edge
public double computeWeight(double distance,
double speed)
distance - the length of the edgespeed - the speed on the edge
public double getWeight(Edge edge)
public double getWeight(Edge edge,
boolean forwards)
forwards - 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 | |||||||||