Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/08/12 14:12:50 (12 years ago)
Author:
spimming
Message:

#1894

  • renamed old Vertex<T> to OsmVertex<T>
  • added new Vertex class
File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph/OsmVertex.cs

    r8424 r8434  
    1 
    2 namespace HeuristicLab.Problems.RoutePlanning.Graph {
    3   public class Vertex<T> {
     1namespace HeuristicLab.Problems.RoutePlanning.Graph {
     2  public class OsmVertex<T> {
    43    private static long idCounter = 0;
    54
     
    1413    }
    1514
    16     public Vertex(T node) {
     15    public OsmVertex(T node) {
    1716      this.node = node;
    1817      this.id = idCounter++;
    1918    }
    2019
    21     public static bool operator ==(Vertex<T> v1, Vertex<T> v2) {
     20    public static bool operator ==(OsmVertex<T> v1, OsmVertex<T> v2) {
    2221      if ((object)v1 == null) {
    2322        if ((object)v2 == null) {
     
    3231    }
    3332
    34     public static bool operator !=(Vertex<T> v1, Vertex<T> v2) {
     33    public static bool operator !=(OsmVertex<T> v1, OsmVertex<T> v2) {
    3534      return !(v1 == v2);
    3635    }
    3736
    3837    public override bool Equals(object obj) {
    39       if (obj is Vertex<T>) {
    40         Vertex<T> graph = (obj as Vertex<T>);
     38      if (obj is OsmVertex<T>) {
     39        OsmVertex<T> graph = (obj as OsmVertex<T>);
    4140        return this.Equals(graph);
    4241      }
Note: See TracChangeset for help on using the changeset viewer.