made getMinimumTravelTime()

This commit is contained in:
Sebastien Moll 2026-04-15 16:36:31 +02:00
parent 2f523b12c3
commit 941ff07d89

View file

@ -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;
}
}