Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/InundationDurationCalculation.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 | 431f1c269be5 |
children | 2f5052835b76 |
comparison
equal
deleted
inserted
replaced
9149:5be112fba832 | 9150:23945061daec |
---|---|
14 import java.util.List; | 14 import java.util.List; |
15 | 15 |
16 import org.apache.commons.lang.math.DoubleRange; | 16 import org.apache.commons.lang.math.DoubleRange; |
17 import org.dive4elements.artifacts.CallContext; | 17 import org.dive4elements.artifacts.CallContext; |
18 import org.dive4elements.river.artifacts.access.RiverAccess; | 18 import org.dive4elements.river.artifacts.access.RiverAccess; |
19 import org.dive4elements.river.artifacts.common.GeneralResultType; | |
19 import org.dive4elements.river.artifacts.common.ResultRow; | 20 import org.dive4elements.river.artifacts.common.ResultRow; |
20 import org.dive4elements.river.artifacts.model.Calculation; | 21 import org.dive4elements.river.artifacts.model.Calculation; |
21 import org.dive4elements.river.artifacts.model.CalculationResult; | 22 import org.dive4elements.river.artifacts.model.CalculationResult; |
22 import org.dive4elements.river.artifacts.resources.Resources; | 23 import org.dive4elements.river.artifacts.resources.Resources; |
23 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; | 24 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; |
61 final InundationDurationCalculationResults results = new InundationDurationCalculationResults(calcModeLabel, user, riverInfo, calcRange); | 62 final InundationDurationCalculationResults results = new InundationDurationCalculationResults(calcModeLabel, user, riverInfo, calcRange); |
62 | 63 |
63 final Collection<ResultRow> rows = new ArrayList<>(); | 64 final Collection<ResultRow> rows = new ArrayList<>(); |
64 | 65 |
65 final ResultRow row1 = ResultRow.create(). // | 66 final ResultRow row1 = ResultRow.create(). // |
67 putValue(GeneralResultType.station, 88). // | |
66 putValue(SInfoResultType.discharge, 100). // | 68 putValue(SInfoResultType.discharge, 100). // |
67 putValue(SInfoResultType.waterlevel, 2). // | 69 putValue(SInfoResultType.waterlevel, 2). // |
68 putValue(SInfoResultType.gaugeLabel, "Torgau"); | 70 putValue(SInfoResultType.gaugeLabel, "Torgau"); |
69 | 71 |
70 rows.add(row1); | 72 rows.add(row1); |