Сравнить коммиты
Нет общих коммитов. «bf7f8e231def20d459fa6538ba84781c9631daa8» и «853edfb344c7d96e37fd2c894fcb80a9e6eeea48» имеют совершенно разные истории.
bf7f8e231d
...
853edfb344
1 изменённых файлов: 6 добавлений и 5 удалений
|
|
@ -209,6 +209,8 @@ public class Path {
|
||||||
* Compute the length of this path (in meters).
|
* Compute the length of this path (in meters).
|
||||||
*
|
*
|
||||||
* @return Total length of the path (in meters).
|
* @return Total length of the path (in meters).
|
||||||
|
*
|
||||||
|
* @deprecated Need to be implemented.
|
||||||
*/
|
*/
|
||||||
public float getLength() {
|
public float getLength() {
|
||||||
float retour = 0 ;
|
float retour = 0 ;
|
||||||
|
|
@ -225,13 +227,12 @@ public class Path {
|
||||||
*
|
*
|
||||||
* @return Time (in seconds) required to travel this path at the given speed (in
|
* @return Time (in seconds) required to travel this path at the given speed (in
|
||||||
* kilometers-per-hour).
|
* kilometers-per-hour).
|
||||||
|
*
|
||||||
|
* @deprecated Need to be implemented.
|
||||||
*/
|
*/
|
||||||
public double getTravelTime(double speed) {
|
public double getTravelTime(double speed) {
|
||||||
double retour = 0 ;
|
// TODO:
|
||||||
for (Arc arc : arcs) {
|
return 0;
|
||||||
retour += arc.getTravelTime(speed);
|
|
||||||
}
|
|
||||||
return retour;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Загрузка…
Сослаться в новой задаче