Compare commits

..

No commits in common. "fcf385ba21728e4022ad771495afd91dfff51d81" and "2914df4a370230205ab5f2fae96655fd1dace807" have entirely different histories.

View file

@ -201,28 +201,20 @@ public class Path {
* @deprecated Need to be implemented.
*/
public boolean isValid() {
if (!this.isEmpty()) {
return false;
}
if (this.getArcs().size() != 0) {
return false;
}
return true;
// TODO:
return false;
}
/**
* Compute the length of this path (in meters).
*
* Total length of the path (in meters).
* @return Total length of the path (in meters).
*
* Need to be implemented.
* @deprecated Need to be implemented.
*/
public float getLength() {
float totalLength = 0.0f;
for(Arc arc : this.arcs) {
totalLength += arc.getLength();
}
return totalLength;
// TODO:
return 0;
}
/**
@ -236,10 +228,8 @@ public class Path {
* @deprecated Need to be implemented.
*/
public double getTravelTime(double speed) {
double temps = 0.0;
float longueur = getLength();
temps = longueur/(speed*(1000.0/3600.0));
return temps;
// TODO:
return 0;
}
/**