/[projects]/dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/Adresse.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/Adresse.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Adresse.java revision 2597 by torben, Mon Jul 13 10:16:41 2015 UTC dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/Adresse.java revision 2725 by torben, Tue Sep 29 07:48:48 2015 UTC
# Line 1  Line 1 
1  package dk.daoas.fulddaekning;  package dk.daoas.fulddaekning;
2    
3  import geocode.GeoPoint;  import com.jwetherell.algorithms.data_structures.KdTree;
4    
5  public class Adresse extends GeoPoint {  public class Adresse extends KdTree.XYZPoint {
6          public int id;          public int id;
7          public short postnr;          public short postnr;
8          public String adresse;          public String adresse;
# Line 12  public class Adresse extends GeoPoint { Line 12  public class Adresse extends GeoPoint {
12          public String rute;          public String rute;
13          public short ho;          public short ho;
14                    
15            public double latitude;
16            public double longitude;
17            
18          public Adresse(Double latitude, Double longitude) {          public Adresse(Double latitude, Double longitude) {
19                  super(latitude, longitude);                  super(latitude, longitude);
20                    
21                    this.latitude = latitude;
22                    this.longitude = longitude;
23          }          }
24                    
25                    
# Line 22  public class Adresse extends GeoPoint { Line 28  public class Adresse extends GeoPoint {
28                  return "Adresse id=" + id+ " postnr=" + postnr + " adresse=" + adresse + " ho=" + ho;                  return "Adresse id=" + id+ " postnr=" + postnr + " adresse=" + adresse + " ho=" + ho;
29          }          }
30                    
     /*@Override //Fra KDNodeComparator  
     protected boolean isNodeCompatible(GeoPoint other) {  
         if (! (other instanceof Adresse) ) {  
                 System.out.print("How the hell did this happen?");  
                 System.exit(1);  
                 return false;  
         }  
         Adresse addr = (Adresse) other;  
           
         return (this.ho == addr.ho);  
     }*/  
           
31  }  }

Legend:
Removed from v.2597  
changed lines
  Added in v.2725

  ViewVC Help
Powered by ViewVC 1.1.20