This commit is contained in:
Gasson-Betuing Danyl 2025-05-09 11:01:35 +02:00
parent 40ac23a8c1
commit ae605b126a

View file

@ -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;
}
}