getTravelTime is done
This commit is contained in:
parent
c97fc51b94
commit
623774148d
1 changed files with 3 additions and 2 deletions
|
@ -213,8 +213,9 @@ public class Path {
|
||||||
* @deprecated Need to be implemented.
|
* @deprecated Need to be implemented.
|
||||||
*/
|
*/
|
||||||
public double getTravelTime(double speed) {
|
public double getTravelTime(double speed) {
|
||||||
// TODO:
|
double longueur = (double) this.getLength() / 1000;
|
||||||
return 0;
|
double temps = (double) (longueur / speed) * 3600;
|
||||||
|
return temps;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue