Added constructor for label and changed coutRealise to double
This commit is contained in:
parent
f80f2a348c
commit
52a8945a91
1 changed files with 9 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,13 +31,12 @@ public class Label {
|
||||||
return pere;
|
return pere;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCoutRealise() {
|
public double getCoutRealise() {
|
||||||
return coutRealise;
|
return coutRealise;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCost() {
|
public double getCost() {
|
||||||
return coutRealise;
|
return coutRealise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue