diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxCalculationResult.java @ 8993:0adc6d04de95

SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
author gernotbelger
date Wed, 11 Apr 2018 14:09:13 +0200
parents b0aeed4c97c1
children d5802f22e4f5
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxCalculationResult.java	Fri Apr 06 11:55:36 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxCalculationResult.java	Wed Apr 11 14:09:13 2018 +0200
@@ -25,38 +25,16 @@
 
     private static final long serialVersionUID = 1L;
 
-    private final BedHeightInfo minSounding;
+    private final BedHeightInfo sounding;
 
-    private final BedHeightInfo maxSounding;
-
-    public FlowDepthMinMaxCalculationResult(final String label, final WstInfo wst, final BedHeightInfo minSounding, final BedHeightInfo maxSounding,
+    public FlowDepthMinMaxCalculationResult(final String label, final WstInfo wst, final BedHeightInfo sounding,
             final Collection<SInfoResultRow> rows) {
         super(label, wst, rows);
 
-        this.minSounding = minSounding;
-        this.maxSounding = maxSounding;
-    }
-
-    public BedHeightInfo getMinSounding() {
-        return this.minSounding;
-    }
-
-    public BedHeightInfo getMaxSounding() {
-        return this.maxSounding;
+        this.sounding = sounding;
     }
 
-    public BedHeightInfo getAnySounding() {
-        if (this.minSounding != null)
-            return this.minSounding;
-
-        return this.maxSounding;
-    }
-
-    public boolean hasMin() {
-        return this.minSounding != null;
-    }
-
-    public boolean hasMax() {
-        return this.maxSounding != null;
+    public BedHeightInfo getSounding() {
+        return this.sounding;
     }
 }
\ No newline at end of file

http://dive4elements.wald.intevation.org