From fc04ffa90b427f7d2b1516eef8f666a1713f4e33 Mon Sep 17 00:00:00 2001 From: Matteo Date: Tue, 13 May 2025 09:37:33 +0200 Subject: [PATCH] =?UTF-8?q?d=C3=A9but=20LabelStar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../graphs/algorithm/shortestpath/LabelStar.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/LabelStar.java 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 new file mode 100644 index 0000000..56f7ce4 --- /dev/null +++ b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/LabelStar.java @@ -0,0 +1,16 @@ +package org.insa.graphs.algorithm.shortestpath; + +import org.insa.graphs.model.Arc; +import org.insa.graphs.model.Node; + +public class LabelStar extends Label { + + public LabelStar(Node sommetCourant, Boolean marque, double coutRealise, Arc pere) { + super(sommetCourant, marque, coutRealise, pere); + } + + public double getCoutRealise() { + return (getCost()+); // getCost est pareil que coutRealise + } + +}