No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LabelStar.java 760B

123456789101112131415161718192021222324252627282930
  1. package org.insa.graphs.algorithm.shortestpath;
  2. import org.insa.graphs.model.Arc;
  3. import org.insa.graphs.model.Node;
  4. public class LabelStar extends Label implements Comparable<Label>{
  5. protected float estim;
  6. public LabelStar(Node sommet, Arc padre, float prix, float estimation) {
  7. super(sommet, padre, prix);
  8. this.estim=estimation;
  9. }
  10. public LabelStar(Node sommet,Arc padre, float prix, float estimation, boolean mark) {
  11. super(sommet, padre, prix, mark);
  12. this.estim=estimation;
  13. }
  14. public float getEstimation() {
  15. return this.estim;//même remarque que pour son pendant dans Label
  16. }
  17. public float getTotalCost() {
  18. return this.cout+this.estim;
  19. }
  20. //note: pourquoi l'icône de ce fichier dans eclipse est-elle un peu différente?
  21. }