From cdc2b5ad46a0de2580a1f0dc1ebd2a9cc8cfedec Mon Sep 17 00:00:00 2001 From: brunetto Date: Wed, 10 May 2023 10:05:28 +0200 Subject: [PATCH] Version Finale Fonctionnelle --- .../java/org/insa/graphs/algorithm/shortestpath/LabelStar.java | 2 +- .../src/test/java/org/insa/graphs/algorithm/utils/PCCTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/LabelStar.java b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/LabelStar.java index 1d9aebd..3d5504e 100644 --- a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/LabelStar.java +++ b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/LabelStar.java @@ -20,7 +20,7 @@ public class LabelStar extends Label{ if (leMode == AbstractInputData.Mode.LENGTH) { this.estimationCostDest = sommetCourant.getPoint().distanceTo(Dest.getPoint()); } else { - this.estimationCostDest = sommetCourant.getPoint().distanceTo(Dest.getPoint()) / Dest.getSuccessors().get(0).getMinimumTravelTime(); + this.estimationCostDest = sommetCourant.getPoint().distanceTo(Dest.getPoint()) / Dest.getSuccessors().get(0).getRoadInformation().getMaximumSpeed(); } } diff --git a/be-graphes-algos/src/test/java/org/insa/graphs/algorithm/utils/PCCTest.java b/be-graphes-algos/src/test/java/org/insa/graphs/algorithm/utils/PCCTest.java index 593359a..b14bf73 100644 --- a/be-graphes-algos/src/test/java/org/insa/graphs/algorithm/utils/PCCTest.java +++ b/be-graphes-algos/src/test/java/org/insa/graphs/algorithm/utils/PCCTest.java @@ -38,7 +38,7 @@ public class PCCTest{ @BeforeClass public static void initAll() throws Exception { - final String nomUser = "norgeux"; + final String nomUser = "brunetto"; // Visit these directory to see the list of available files on Commetud. //Récupération des cartes