diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java @ 3421:c44ff50f4970

FixA: Added a list of gauges to the output of the fixings overview service which intersect the selected fixings. flys-artifacts/trunk@5075 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 19 Jul 2012 21:12:57 +0000
parents 08230c76cd92
children 05eeedc5b156
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java	Thu Jul 19 16:57:44 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java	Thu Jul 19 21:12:57 2012 +0000
@@ -25,6 +25,8 @@
         }
     } // class Sector
 
+    protected String name;
+
     protected int gaugeId;
 
     protected Map<String, Double> mainValues;
@@ -34,7 +36,17 @@
     }
 
     public GaugeRange(double start, double end, int gaugeId) {
+        this(start, end, null, gaugeId);
+    }
+
+    public GaugeRange(
+        double start,
+        double end,
+        String name,
+        int    gaugeId
+    ) {
         super(start, end);
+        this.name = name;
         this.gaugeId = gaugeId;
         mainValues = new HashMap<String, Double>();
         sectors = new ArrayList<Sector>(3);
@@ -95,6 +107,14 @@
         return sectors.size();
     }
 
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
     public String toString() {
         StringBuilder sb = new StringBuilder("sectors: [");
 

http://dive4elements.wald.intevation.org