diff 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
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/aft/DIPSGauge.java	Fri Dec 16 19:25:31 2011 +0000
+++ b/flys-aft/src/main/java/de/intevation/aft/DIPSGauge.java	Tue Dec 20 14:36:36 2011 +0000
@@ -65,15 +65,20 @@
 
     protected double aeo;
 
+    protected String name;
+
     protected List<Datum> datums;
 
     public DIPSGauge() {
     }
 
     public DIPSGauge(Element element) {
+
+        name = element.getAttribute("NAME");
+
         String aeoString = element.getAttribute("EINZUGSGEBIET_AEO");
         if (aeoString.length() == 0) {
-            log.warn("WARN: setting AEO to zero");
+            log.warn("DIPS: Setting AEO of gauge '" + name + "' to zero.");
             aeoString = "0";
         }
         aeo = Double.parseDouble(aeoString);
@@ -91,5 +96,9 @@
     public List<Datum> getDatums() {
         return datums;
     }
+
+    public String getName() {
+        return name;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org