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.
|
* @deprecated Need to be implemented.
|
||||||
*/
|
*/
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
if (!this.isEmpty()) {
|
// TODO:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.getArcs().size() != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute the length of this path (in meters).
|
* 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() {
|
public float getLength() {
|
||||||
float totalLength = 0.0f;
|
// TODO:
|
||||||
for(Arc arc : this.arcs) {
|
return 0;
|
||||||
totalLength += arc.getLength();
|
|
||||||
}
|
|
||||||
return totalLength;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -236,10 +228,8 @@ public class Path {
|
||||||
* @deprecated Need to be implemented.
|
* @deprecated Need to be implemented.
|
||||||
*/
|
*/
|
||||||
public double getTravelTime(double speed) {
|
public double getTravelTime(double speed) {
|
||||||
double temps = 0.0;
|
// TODO:
|
||||||
float longueur = getLength();
|
return 0;
|
||||||
temps = longueur/(speed*(1000.0/3600.0));
|
|
||||||
return temps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue