From 8ab68ac6e75e8524f05bbb70b67fef98d7fb3acd Mon Sep 17 00:00:00 2001 From: Favary Pierre Date: Wed, 24 Mar 2021 17:19:58 +0100 Subject: [PATCH] Getlength --- .../src/main/java/org/insa/graphs/model/Path.java | 8 +++++--- pom.xml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/be-graphes-model/src/main/java/org/insa/graphs/model/Path.java b/be-graphes-model/src/main/java/org/insa/graphs/model/Path.java index 6ebdb73..92aa116 100644 --- a/be-graphes-model/src/main/java/org/insa/graphs/model/Path.java +++ b/be-graphes-model/src/main/java/org/insa/graphs/model/Path.java @@ -210,11 +210,13 @@ public class Path { * * @return Total length of the path (in meters). * - * @deprecated Need to be implemented. */ public float getLength() { - // TODO: - return 0; + float longeur=0; + for (int i=0;ibe-graphes-all - 1.8 + 1.11 ${jdk.version} ${jdk.version} UTF-8