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.
|
* every arc.
|
||||||
*
|
*
|
||||||
* @return Minimum travel time to travel this path (in seconds).
|
* @return Minimum travel time to travel this path (in seconds).
|
||||||
* @deprecated Need to be implemented.
|
|
||||||
*/
|
*/
|
||||||
public double getMinimumTravelTime() {
|
public double getMinimumTravelTime() {
|
||||||
// TODO:
|
double ttime = 0;
|
||||||
return 0;
|
int maxSpeed;
|
||||||
|
for (Arc thisArc : arcs) {
|
||||||
|
maxSpeed = thisArc.getRoadInformation().getMaximumSpeed();
|
||||||
|
ttime += thisArc.getTravelTime(maxSpeed);
|
||||||
|
}
|
||||||
|
return ttime;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue