Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthdev/FlowDepthDevelopmentCalculationResults.java @ 8953:c40db8e8dcae
SINFO - Flow depth development - implemented exporters
author | gernotbelger |
---|---|
date | Mon, 19 Mar 2018 14:01:21 +0100 |
parents | 322b0e6298ea |
children | 23945061daec |
comparison
equal
deleted
inserted
replaced
8952:1a8f19f3b776 | 8953:c40db8e8dcae |
---|---|
6 * This file is Free Software under the GNU AGPL (>=v3) | 6 * This file is Free Software under the GNU AGPL (>=v3) |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.sinfo.flowdepthdev; | 10 package org.dive4elements.river.artifacts.sinfo.flowdepthdev; |
11 | |
12 import java.util.List; | |
11 | 13 |
12 import org.apache.commons.lang.math.DoubleRange; | 14 import org.apache.commons.lang.math.DoubleRange; |
13 import org.dive4elements.river.artifacts.sinfo.common.AbstractSInfoCalculationResults; | 15 import org.dive4elements.river.artifacts.sinfo.common.AbstractSInfoCalculationResults; |
14 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | 16 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
15 | 17 |
21 private static final long serialVersionUID = 1L; | 23 private static final long serialVersionUID = 1L; |
22 | 24 |
23 public FlowDepthDevelopmentCalculationResults(final String calcModeLabel, final String user, final RiverInfo river, final DoubleRange calcRange) { | 25 public FlowDepthDevelopmentCalculationResults(final String calcModeLabel, final String user, final RiverInfo river, final DoubleRange calcRange) { |
24 super(calcModeLabel, user, river, calcRange); | 26 super(calcModeLabel, user, river, calcRange); |
25 } | 27 } |
28 | |
29 /** | |
30 * We know that this type of results only has one result member, so we can directly access it. | |
31 */ | |
32 public FlowDepthDevelopmentCalculationResult getResult() { | |
33 final List<FlowDepthDevelopmentCalculationResult> results = getResults(); | |
34 if (results.size() < 1) | |
35 return null; | |
36 | |
37 return results.get(0); | |
38 } | |
26 } | 39 } |