comparison flys-aft/src/main/java/de/intevation/aft/DIPSGauge.java @ 4082:d13011e53022

Make DIPS check more verbose flys-aft/trunk@3496 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 20 Dec 2011 14:36:36 +0000
parents fd6d0bc84117
children 067341e86375
comparison
equal deleted inserted replaced
4081:7a7b0f0cb653 4082:d13011e53022
63 } 63 }
64 } // class datum 64 } // class datum
65 65
66 protected double aeo; 66 protected double aeo;
67 67
68 protected String name;
69
68 protected List<Datum> datums; 70 protected List<Datum> datums;
69 71
70 public DIPSGauge() { 72 public DIPSGauge() {
71 } 73 }
72 74
73 public DIPSGauge(Element element) { 75 public DIPSGauge(Element element) {
76
77 name = element.getAttribute("NAME");
78
74 String aeoString = element.getAttribute("EINZUGSGEBIET_AEO"); 79 String aeoString = element.getAttribute("EINZUGSGEBIET_AEO");
75 if (aeoString.length() == 0) { 80 if (aeoString.length() == 0) {
76 log.warn("WARN: setting AEO to zero"); 81 log.warn("DIPS: Setting AEO of gauge '" + name + "' to zero.");
77 aeoString = "0"; 82 aeoString = "0";
78 } 83 }
79 aeo = Double.parseDouble(aeoString); 84 aeo = Double.parseDouble(aeoString);
80 85
81 datums = new ArrayList<Datum>(); 86 datums = new ArrayList<Datum>();
89 } 94 }
90 95
91 public List<Datum> getDatums() { 96 public List<Datum> getDatums() {
92 return datums; 97 return datums;
93 } 98 }
99
100 public String getName() {
101 return name;
102 }
94 } 103 }
95 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 104 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org