feat(path): implement getMinimumTravelTime

This commit is contained in:
Paul Alnet 2024-03-25 09:11:03 +01:00
parent 7deca4330c
commit da70b6ea86

View file

@ -239,12 +239,13 @@ public class Path {
* on every arc.
*
* @return Minimum travel time to travel this path (in seconds).
*
* @deprecated Need to be implemented.
*/
public double getMinimumTravelTime() {
// TODO:
return 0;
double somme = 0 ;
for (Arc arc : arcs) {
somme += arc.getMinimumTravelTime();
}
return somme;
}
}