/[projects]/dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/afstandandenrute/BKConstants.java
ViewVC logotype

Annotation of /dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/afstandandenrute/BKConstants.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2927 - (hide annotations) (download)
Fri Feb 5 11:01:48 2016 UTC (8 years, 4 months ago) by torben
File size: 741 byte(s)
Implement incremental and full distance calculations
1 torben 2878 package dk.daoas.adressevedligehold.afstandandenrute;
2    
3     public class BKConstants extends Constants {
4    
5     protected final static double MAX_DISTANCE = 30.0;
6    
7    
8     @Override
9     public double getMaxDistance() {
10     return MAX_DISTANCE;
11     }
12    
13     @Override
14     public int getMinPostnr() {
15     return 1000;
16     }
17    
18     @Override
19     public int getMaxPostnr() {
20     return 4999;
21     }
22    
23     @Override
24     public String getTableExtension() {
25     return "_bk";
26     }
27    
28    
29     @Override
30     public boolean doCheckHO() {
31     return true;
32     }
33 torben 2927
34     @Override
35     public boolean validatePostnr(short postnr) {
36     if (postnr>=3900 && postnr<=3999) { // grønland
37     return false;
38     }
39    
40     if (postnr == 2412) { // julemanden
41     return false;
42     }
43    
44     return true;
45     }
46 torben 2878 }

  ViewVC Help
Powered by ViewVC 1.1.20