ajout: Implémentation de Path#getMinimumTravelTime()

This commit is contained in:
Brendan Saint Germes 2026-04-10 14:30:54 +02:00
parent 4f95b5539b
commit 370fe10947

View file

@ -239,11 +239,13 @@ 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 time = 0;
for(Arc arc : this.arcs){
time += arc.getLength()/arc.getRoadInformation().getMaximumSpeed();
}
return time*3.6;
}
}