avancement problemeOuvert
This commit is contained in:
parent
7086e32f6e
commit
e617ccd5f2
3 changed files with 17 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// ce fichier n'est qu'en pseudo code
|
||||
|
||||
|
||||
|
||||
/* je considère que les 200km d'autonomie atteint (200km avec le 22 kWh - Q90 Renault ZOE chargé à 90%)
|
||||
|
|
@ -95,5 +95,14 @@ Autres types de voies
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
normalement juste faut faire le verif de newcost avec l'autonomie
|
||||
|
||||
avoir une option chemin impossible (trop éloigné des stations de recharges)
|
||||
|
||||
|
||||
*/
|
||||
gérer le problème de la recharge, quand la faire ?
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
/*
|
||||
public class LabelBattery extends Label {
|
||||
/*public class LabelProblemeOuvert extends Label {
|
||||
private double autonomieRestante;
|
||||
|
||||
public LabelBattery(Node sommet, boolean marque, double cout, Arc pere, double autonomieRestante) {
|
||||
public LabelProblemeOuvert(Node sommet, boolean marque, double cout, Arc pere, double autonomieRestante) {
|
||||
super(sommet, marque, cout, pere);
|
||||
this.autonomieRestante = autonomieRestante;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* package org.insa.graphs.algorithm.shortestpath;
|
||||
/*package org.insa.graphs.algorithm.shortestpath;
|
||||
|
||||
import org.insa.graphs.model.Arc;
|
||||
import org.insa.graphs.model.Node;
|
||||
|
|
@ -9,7 +9,7 @@ public class LabelStar extends Label {
|
|||
private Node destination;
|
||||
public LabelStar(Node sommetCourant, Boolean marque, double coutRealise, Arc pere,Node destination) {
|
||||
super(sommetCourant, marque, coutRealise, pere);
|
||||
this.destination=destination;
|
||||
this.destination=destination; //ou alors on le met juste en paramètre
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -17,5 +17,5 @@ public class LabelStar extends Label {
|
|||
return (getCoutRealise()+distance(getSommetCourant().getPoint(),this.destination.getPoint()));
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
}*/
|
||||
|
||||
Loading…
Reference in a new issue