Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthdev/FlowDepthDevelopmentCalculationResults.java @ 9150:23945061daec
gigantic refactoring: exporter, result, results
to support multiple jaspers -> collisions
author | gernotbelger |
---|---|
date | Thu, 14 Jun 2018 16:56:31 +0200 |
parents | c40db8e8dcae |
children | 9b2e46090099 |
comparison
equal
deleted
inserted
replaced
9149:5be112fba832 | 9150:23945061daec |
---|---|
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.sinfo.common.AbstractSInfoCalculationResults; | 15 import org.dive4elements.river.artifacts.common.AbstractCalculationExportableResult; |
16 import org.dive4elements.river.artifacts.common.AbstractCalculationListResults; | |
16 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | 17 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
17 | 18 |
18 /** | 19 /** |
19 * @author Gernot Belger | 20 * @author Gernot Belger |
20 */ | 21 */ |
21 final class FlowDepthDevelopmentCalculationResults extends AbstractSInfoCalculationResults<FlowDepthDevelopmentCalculationResult> { | 22 final class FlowDepthDevelopmentCalculationResults extends AbstractCalculationListResults<AbstractCalculationExportableResult<FlowDepthDevelopmentCalculationResults>> { |
22 | 23 |
23 private static final long serialVersionUID = 1L; | 24 private static final long serialVersionUID = 1L; |
24 | 25 |
25 public FlowDepthDevelopmentCalculationResults(final String calcModeLabel, final String user, final RiverInfo river, final DoubleRange calcRange) { | 26 public FlowDepthDevelopmentCalculationResults(final String calcModeLabel, final String user, final RiverInfo river, final DoubleRange calcRange) { |
26 super(calcModeLabel, user, river, calcRange); | 27 super(calcModeLabel, user, river, calcRange); |
28 | 29 |
29 /** | 30 /** |
30 * We know that this type of results only has one result member, so we can directly access it. | 31 * We know that this type of results only has one result member, so we can directly access it. |
31 */ | 32 */ |
32 public FlowDepthDevelopmentCalculationResult getResult() { | 33 public FlowDepthDevelopmentCalculationResult getResult() { |
33 final List<FlowDepthDevelopmentCalculationResult> results = getResults(); | 34 final List<AbstractCalculationExportableResult<FlowDepthDevelopmentCalculationResults>> results = getResults(); |
34 if (results.size() < 1) | 35 if (results.size() < 1) |
35 return null; | 36 return null; |
36 | 37 |
37 return results.get(0); | 38 return (FlowDepthDevelopmentCalculationResult) results.get(0); |
38 } | 39 } |
39 } | 40 } |