refactore(path): rename variables

This commit is contained in:
Paul Alnet 2024-03-25 09:07:43 +01:00
parent bf7f8e231d
commit 7deca4330c

View file

@ -211,11 +211,11 @@ public class Path {
* @return Total length of the path (in meters).
*/
public float getLength() {
float retour = 0 ;
float somme = 0 ;
for (Arc arc : arcs) {
retour += arc.getLength();
somme += arc.getLength();
}
return retour;
return somme;
}
/**
@ -227,11 +227,11 @@ public class Path {
* kilometers-per-hour).
*/
public double getTravelTime(double speed) {
double retour = 0 ;
double somme = 0 ;
for (Arc arc : arcs) {
retour += arc.getTravelTime(speed);
somme += arc.getTravelTime(speed);
}
return retour;
return somme;
}
/**