Compare commits
No commits in common. "fcf385ba21728e4022ad771495afd91dfff51d81" and "2914df4a370230205ab5f2fae96655fd1dace807" have entirely different histories.
fcf385ba21
...
2914df4a37
1 changed files with 8 additions and 18 deletions
|
|
@ -201,28 +201,20 @@ public class Path {
|
|||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public boolean isValid() {
|
||||
if (!this.isEmpty()) {
|
||||
// TODO:
|
||||
return false;
|
||||
}
|
||||
if (this.getArcs().size() != 0) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue