45 wiersze
No EOL
762 B
Java
45 wiersze
No EOL
762 B
Java
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;
|
|
|
|
}
|
|
|
|
} |