added getTravelTime()
This commit is contained in:
parent
1d3673215b
commit
ca806aafff
1 changed files with 1 additions and 2 deletions
|
@ -228,8 +228,7 @@ public class Path {
|
|||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public double getTravelTime(double speed) {
|
||||
// TODO:
|
||||
return 0;
|
||||
return (this.getLength()/speed);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue