Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResults.java @ 9602:6b2496d71936
Reimplemented baseline for tkh. Extended area-dataset to be able to draw baseline.
author | gernotbelger |
---|---|
date | Tue, 12 Feb 2019 14:08:16 +0100 |
parents | ba1e2e8f05d1 |
children |
rev | line source |
---|---|
8854 | 1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
8882 | 2 * Software engineering by |
3 * Björnsen Beratende Ingenieure GmbH | |
8854 | 4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
5 * | |
6 * This file is Free Software under the GNU AGPL (>=v3) | |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
8 * documentation coming with Dive4Elements River for details. | |
9 */ | |
10 package org.dive4elements.river.artifacts.sinfo.flowdepth; | |
11 | |
8894 | 12 import org.apache.commons.lang.math.DoubleRange; |
9170 | 13 import org.dive4elements.river.artifacts.common.AbstractCalculationResults; |
8894 | 14 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
8854 | 15 |
16 /** | |
17 * @author Gernot Belger | |
18 */ | |
9170 | 19 |
9195 | 20 final class FlowDepthCalculationResults extends AbstractCalculationResults<FlowDepthCalculationResult> { |
8916 | 21 |
8884 | 22 private static final long serialVersionUID = 1L; |
23 | |
8894 | 24 private final boolean useTkh; |
25 | |
26 public FlowDepthCalculationResults(final String calcModeLabel, final String user, final RiverInfo river, final DoubleRange calcRange, | |
27 final boolean useTkh) { | |
8916 | 28 super(calcModeLabel, user, river, calcRange); |
8882 | 29 |
8916 | 30 this.useTkh = useTkh; |
8882 | 31 } |
32 | |
33 public boolean isUseTkh() { | |
34 return this.useTkh; | |
35 } | |
9150
23945061daec
gigantic refactoring: exporter, result, results
gernotbelger
parents:
8948
diff
changeset
|
36 |
9351 | 37 public boolean hasTkh() { |
38 for (final FlowDepthCalculationResult result : getResults()) { | |
39 if (result.hasTkh()) | |
40 return true; | |
41 } | |
42 | |
43 return false; | |
44 } | |
9365
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
45 |
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
46 public boolean isShowRefGauges() { |
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
47 for (final FlowDepthCalculationResult result : getResults()) { |
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
48 if (result.isShowRefGauges()) |
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
49 return true; |
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
50 } |
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
51 |
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
52 return false; |
ba1e2e8f05d1
sinfo.flowdepth Results.isShowRefGauge==false->spalte ausblenden; result.isShowRefGauge==false&&results.isShowRefGauge==true->result.refGauge=""
gernotbelger
parents:
9351
diff
changeset
|
53 } |
8894 | 54 } |