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. * 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;
} }
} }