From ae605b126a8037d6424e0d42649368f824cb9dee Mon Sep 17 00:00:00 2001 From: Gasson-Betuing Danyl Date: Fri, 9 May 2025 11:01:35 +0200 Subject: [PATCH] Label --- .../graphs/algorithm/shortestpath/Label.java | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/Label.java diff --git a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/Label.java b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/Label.java new file mode 100644 index 0000000..517ed07 --- /dev/null +++ b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/Label.java @@ -0,0 +1,45 @@ +package org.insa.graphs.algorithm.shortestpath; + +import org.insa.graphs.model.Node; +import org.insa.graphs.model.Arc; + +public class Label{ + + private Node currentNode; + private boolean mark; + private double computedCost; + private Arc father; + + public Label(Node currentNode, boolean mark, double computedCost, Arc father){ + + this.currentNode = currentNode; + this.mark = mark; + this.computedCost = computedCost; + this.father = father; + } + + public double getCost(){ + + return this.computedCost; + + } + + public Node getCurrentNode(){ + + return this.currentNode; + + } + + public boolean getMark(){ + + return this.mark; + + } + + public Arc getFather(){ + + return this.father; + + } + +} \ No newline at end of file