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;