feat(path): implement getMinimumTravelTime
This commit is contained in:
parent
7deca4330c
commit
da70b6ea86
1 changed files with 5 additions and 4 deletions
|
@ -239,12 +239,13 @@ public class Path {
|
|||
* on every arc.
|
||||
*
|
||||
* @return Minimum travel time to travel this path (in seconds).
|
||||
*
|
||||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public double getMinimumTravelTime() {
|
||||
// TODO:
|
||||
return 0;
|
||||
double somme = 0 ;
|
||||
for (Arc arc : arcs) {
|
||||
somme += arc.getMinimumTravelTime();
|
||||
}
|
||||
return somme;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue