Revision 35157 trunk/extensions/extGraph/src/org/gvsig/graph/core/GvNode.java
GvNode.java | ||
---|---|---|
42 | 42 |
|
43 | 43 |
import java.util.ArrayList; |
44 | 44 |
|
45 |
public class GvNode { |
|
45 |
import org.gvsig.fmap.algorithm.triangulation.visad.SetException; |
|
46 |
|
|
47 |
public class GvNode implements Comparable<GvNode> { |
|
46 | 48 |
public final static int statNotInList = 0; |
47 | 49 |
public final static int statNowInList = 1; |
48 | 50 |
public final static int statWasInList = 2; |
... | ... | |
485 | 487 |
|
486 | 488 |
// TODO: provisional. QUITAR bestCost como atributo |
487 | 489 |
// best_cost = 0; |
488 |
|
|
490 |
setStimation(0); |
|
489 | 491 |
} |
490 | 492 |
|
491 | 493 |
/** |
... | ... | |
571 | 573 |
turnCosts = new ArrayList<GvTurn>(); |
572 | 574 |
|
573 | 575 |
} |
576 |
|
|
577 |
public int compareTo(GvNode o) { |
|
578 |
return Double.compare(getStimation(), o.getStimation()); |
|
579 |
} |
|
580 |
|
|
574 | 581 |
} |
575 | 582 |
|
576 | 583 |
|
Also available in: Unified diff