forked from lebotlan/BE-Graphes
Compare commits
2 commits
fcfa9e05eb
...
52a8945a91
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52a8945a91 | ||
|
|
f80f2a348c |
1 changed files with 13 additions and 4 deletions
|
|
@ -9,10 +9,16 @@ public class Label {
|
||||||
|
|
||||||
private Boolean marque;
|
private Boolean marque;
|
||||||
|
|
||||||
private int coutRealise;
|
private double coutRealise;
|
||||||
|
|
||||||
private Arc pere;
|
private Arc pere;
|
||||||
|
|
||||||
|
public Label(Node sommetCourant) {
|
||||||
|
this.sommetCourant = sommetCourant;
|
||||||
|
this.marque = false;
|
||||||
|
this.coutRealise = Double.POSITIVE_INFINITY;
|
||||||
|
}
|
||||||
|
|
||||||
public Node getSommetCourant() {
|
public Node getSommetCourant() {
|
||||||
return sommetCourant;
|
return sommetCourant;
|
||||||
}
|
}
|
||||||
|
|
@ -25,9 +31,12 @@ public class Label {
|
||||||
return pere;
|
return pere;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCost() {
|
public double getCoutRealise() {
|
||||||
return coutRealise;
|
return coutRealise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double getCost() {
|
||||||
|
return coutRealise;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue