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

Annotation of /dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/afstandandenrute/DaoConstants.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: 724 byte(s)
Implement incremental and full distance calculations
1 torben 2878 package dk.daoas.adressevedligehold.afstandandenrute;
2    
3     public class DaoConstants extends Constants{
4    
5     final static double MAX_DISTANCE = 5.0;
6    
7    
8     @Override
9     public double getMaxDistance() {
10     return MAX_DISTANCE; // vi gemmer ikke afstande over MAX_DISTANCE km
11     }
12    
13     @Override
14     public int getMinPostnr() {
15     return 6000;
16     }
17     @Override
18     public int getMaxPostnr() {
19     return 9550;
20     }
21    
22     @Override
23     public String getTableExtension() {
24     return "";
25     }
26    
27     @Override
28     public boolean doCheckHO() {
29     return false;
30     }
31    
32 torben 2927 @Override
33     public boolean validatePostnr(short postnr) {
34     if (postnr >= 9000 && postnr <=9499) { // Aalborg, sæby / nr. sundby
35     return false;
36     }
37     return true;
38     }
39    
40 torben 2878 }

  ViewVC Help
Powered by ViewVC 1.1.20