Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthdev/FlowDepthDevelopmentCalculationResults.java @ 9195:a4121ec450d6
'ca.'-issue
ExportContextCSV+PDF separated
uinfo.inundationduration url export
author | gernotbelger |
---|---|
date | Fri, 29 Jun 2018 14:52:54 +0200 |
parents | 9b2e46090099 |
children |
comparison
equal
deleted
inserted
replaced
9191:f692f5a0536a | 9195:a4121ec450d6 |
---|---|
10 package org.dive4elements.river.artifacts.sinfo.flowdepthdev; | 10 package org.dive4elements.river.artifacts.sinfo.flowdepthdev; |
11 | 11 |
12 import java.util.List; | 12 import java.util.List; |
13 | 13 |
14 import org.apache.commons.lang.math.DoubleRange; | 14 import org.apache.commons.lang.math.DoubleRange; |
15 import org.dive4elements.river.artifacts.common.AbstractCalculationExportableResult; | |
16 import org.dive4elements.river.artifacts.common.AbstractCalculationResults; | 15 import org.dive4elements.river.artifacts.common.AbstractCalculationResults; |
17 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | 16 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
18 | 17 |
19 /** | 18 /** |
20 * @author Gernot Belger | 19 * @author Gernot Belger |
21 */ | 20 */ |
22 final class FlowDepthDevelopmentCalculationResults extends AbstractCalculationResults<AbstractCalculationExportableResult<FlowDepthDevelopmentCalculationResults>> { | 21 final class FlowDepthDevelopmentCalculationResults extends AbstractCalculationResults<FlowDepthDevelopmentCalculationResult> { |
23 | 22 |
24 private static final long serialVersionUID = 1L; | 23 private static final long serialVersionUID = 1L; |
25 | 24 |
26 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) { |
27 super(calcModeLabel, user, river, calcRange); | 26 super(calcModeLabel, user, river, calcRange); |
29 | 28 |
30 /** | 29 /** |
31 * We know that this type of results only has one result member, so we can directly access it. | 30 * We know that this type of results only has one result member, so we can directly access it. |
32 */ | 31 */ |
33 public FlowDepthDevelopmentCalculationResult getResult() { | 32 public FlowDepthDevelopmentCalculationResult getResult() { |
34 final List<AbstractCalculationExportableResult<FlowDepthDevelopmentCalculationResults>> results = getResults(); | 33 final List<FlowDepthDevelopmentCalculationResult> results = getResults(); |
35 if (results.size() < 1) | 34 if (results.size() < 1) |
36 return null; | 35 return null; |
37 | 36 |
38 return (FlowDepthDevelopmentCalculationResult) results.get(0); | 37 return results.get(0); |
39 } | 38 } |
40 } | 39 } |