changeset 2465:ca40a5b1bb04

Added new model classes for gauges. flys-client/trunk@4172 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 20 Mar 2012 12:55:27 +0000
parents 7568d97d74ce
children 52a98e1653c1
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/shared/model/Gauge.java flys-client/src/main/java/de/intevation/flys/client/shared/model/GaugeImpl.java
diffstat 3 files changed, 70 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Mar 20 12:15:41 2012 +0000
+++ b/flys-client/ChangeLog	Tue Mar 20 12:55:27 2012 +0000
@@ -1,3 +1,9 @@
+2012-03-20  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/shared/model/GaugeImpl.java,
+	  src/main/java/de/intevation/flys/client/shared/model/Gauge.java: New
+	  model classes for gauges.
+
 2012-03-20	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Last step for fix flys/issue618.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/Gauge.java	Tue Mar 20 12:55:27 2012 +0000
@@ -0,0 +1,13 @@
+package de.intevation.flys.client.shared.model;
+
+import java.io.Serializable;
+
+
+public interface Gauge extends Serializable {
+
+    String getName();
+
+    double getLower();
+
+    double getUpper();
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/GaugeImpl.java	Tue Mar 20 12:55:27 2012 +0000
@@ -0,0 +1,51 @@
+package de.intevation.flys.client.shared.model;
+
+
+public class GaugeImpl implements Gauge {
+
+    private String name;
+
+    private double lower;
+    private double upper;
+
+
+    public GaugeImpl() {
+    }
+
+
+    public GaugeImpl(String name, double lower, double upper) {
+        this.name  = name;
+        this.lower = lower;
+        this.upper = upper;
+    }
+
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+
+    public String getName() {
+        return name;
+    }
+
+
+    public void setLower(double lower) {
+        this.lower = lower;
+    }
+
+
+    public double getLower() {
+        return lower;
+    }
+
+
+    public void setUpper(double upper) {
+        this.upper = upper;
+    }
+
+
+    public double getUpper() {
+        return upper;
+    }
+}

http://dive4elements.wald.intevation.org