début LabelStar
This commit is contained in:
förälder
adad22dca4
incheckning
fc04ffa90b
1 ändrade filer med 16 tillägg och 0 borttagningar
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Laddar…
Referens i nytt ärende