comparison 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
comparison
equal deleted inserted replaced
8981:2e27061d9a93 8993:0adc6d04de95
23 */ 23 */
24 final class FlowDepthMinMaxCalculationResult extends AbstractSInfoCalculationResult { 24 final class FlowDepthMinMaxCalculationResult extends AbstractSInfoCalculationResult {
25 25
26 private static final long serialVersionUID = 1L; 26 private static final long serialVersionUID = 1L;
27 27
28 private final BedHeightInfo minSounding; 28 private final BedHeightInfo sounding;
29 29
30 private final BedHeightInfo maxSounding; 30 public FlowDepthMinMaxCalculationResult(final String label, final WstInfo wst, final BedHeightInfo sounding,
31
32 public FlowDepthMinMaxCalculationResult(final String label, final WstInfo wst, final BedHeightInfo minSounding, final BedHeightInfo maxSounding,
33 final Collection<SInfoResultRow> rows) { 31 final Collection<SInfoResultRow> rows) {
34 super(label, wst, rows); 32 super(label, wst, rows);
35 33
36 this.minSounding = minSounding; 34 this.sounding = sounding;
37 this.maxSounding = maxSounding;
38 } 35 }
39 36
40 public BedHeightInfo getMinSounding() { 37 public BedHeightInfo getSounding() {
41 return this.minSounding; 38 return this.sounding;
42 }
43
44 public BedHeightInfo getMaxSounding() {
45 return this.maxSounding;
46 }
47
48 public BedHeightInfo getAnySounding() {
49 if (this.minSounding != null)
50 return this.minSounding;
51
52 return this.maxSounding;
53 }
54
55 public boolean hasMin() {
56 return this.minSounding != null;
57 }
58
59 public boolean hasMax() {
60 return this.maxSounding != null;
61 } 39 }
62 } 40 }

http://dive4elements.wald.intevation.org