From d203e569888c6757e5c3898147ab1533bd7bff4d Mon Sep 17 00:00:00 2001 From: moll Date: Tue, 12 May 2026 16:10:51 +0200 Subject: [PATCH] Update again LabelStar --- .../org/insa/graphs/algorithm/shortestpath/LabelStar.java | 8 ++------ 1 file changed, 2 insertions(+), 6 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 c773c1e..6f6019b 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 @@ -7,14 +7,10 @@ public class LabelStar extends Label { private double volOiseau; - public LabelStar(Node sommetCourant) { + public LabelStar(Node sommetCourant, Node sommetDestination) { super(sommetCourant); - volOiseau = Double.POSITIVE_INFINITY; - } - - public void setVolOiseau(Node sommetDestination) { volOiseau = Point.distance(this.getSommetCourant().getPoint(), sommetDestination.getPoint()); - } + } public double getVolOiseau() { return volOiseau;