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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2597 - (hide annotations) (download)
Mon Jul 13 10:16:41 2015 UTC (8 years, 10 months ago) by torben
Original Path: dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Adresse.java
File size: 863 byte(s)
Beregn hvert HO for sig
1 torben 2145 package dk.daoas.fulddaekning;
2    
3 torben 2585 import geocode.GeoPoint;
4    
5 torben 2211 public class Adresse extends GeoPoint {
6 torben 2145 public int id;
7 torben 2575 public short postnr;
8 torben 2145 public String adresse;
9     public int gadeid;
10 torben 2575 public short husnr;
11 torben 2145 public String husnrbogstav;
12     public String rute;
13 torben 2575 public short ho;
14 torben 2145
15 torben 2585 public Adresse(Double latitude, Double longitude) {
16     super(latitude, longitude);
17     }
18 torben 2145
19 torben 2585
20 torben 2145 @Override
21     public String toString() {
22 torben 2231 return "Adresse id=" + id+ " postnr=" + postnr + " adresse=" + adresse + " ho=" + ho;
23 torben 2145 }
24    
25 torben 2597 /*@Override //Fra KDNodeComparator
26 torben 2585 protected boolean isNodeCompatible(GeoPoint other) {
27     if (! (other instanceof Adresse) ) {
28     System.out.print("How the hell did this happen?");
29     System.exit(1);
30     return false;
31     }
32     Adresse addr = (Adresse) other;
33    
34     return (this.ho == addr.ho);
35 torben 2597 }*/
36 torben 2585
37 torben 2145 }

  ViewVC Help
Powered by ViewVC 1.1.20