forked from lebotlan/BE-Graphes
made getMinimumTravelTime()
This commit is contained in:
parent
2f523b12c3
commit
941ff07d89
1 changed files with 7 additions and 3 deletions
|
|
@ -222,11 +222,15 @@ public class Path {
|
|||
* every arc.
|
||||
*
|
||||
* @return Minimum travel time to travel this path (in seconds).
|
||||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public double getMinimumTravelTime() {
|
||||
// TODO:
|
||||
return 0;
|
||||
double ttime = 0;
|
||||
int maxSpeed;
|
||||
for (Arc thisArc : arcs) {
|
||||
maxSpeed = thisArc.getRoadInformation().getMaximumSpeed();
|
||||
ttime += thisArc.getTravelTime(maxSpeed);
|
||||
}
|
||||
return ttime;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue