refactore(path): rename variables
This commit is contained in:
parent
bf7f8e231d
commit
7deca4330c
1 changed files with 6 additions and 6 deletions
|
@ -211,11 +211,11 @@ public class Path {
|
||||||
* @return Total length of the path (in meters).
|
* @return Total length of the path (in meters).
|
||||||
*/
|
*/
|
||||||
public float getLength() {
|
public float getLength() {
|
||||||
float retour = 0 ;
|
float somme = 0 ;
|
||||||
for (Arc arc : arcs) {
|
for (Arc arc : arcs) {
|
||||||
retour += arc.getLength();
|
somme += arc.getLength();
|
||||||
}
|
}
|
||||||
return retour;
|
return somme;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -227,11 +227,11 @@ public class Path {
|
||||||
* kilometers-per-hour).
|
* kilometers-per-hour).
|
||||||
*/
|
*/
|
||||||
public double getTravelTime(double speed) {
|
public double getTravelTime(double speed) {
|
||||||
double retour = 0 ;
|
double somme = 0 ;
|
||||||
for (Arc arc : arcs) {
|
for (Arc arc : arcs) {
|
||||||
retour += arc.getTravelTime(speed);
|
somme += arc.getTravelTime(speed);
|
||||||
}
|
}
|
||||||
return retour;
|
return somme;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue