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