Label
This commit is contained in:
parent
40ac23a8c1
commit
ae605b126a
1 changed files with 45 additions and 0 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue