début LabelStar
This commit is contained in:
parent
adad22dca4
commit
fc04ffa90b
1 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue