Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/TkhCalculation.java @ 9312:740d65e4aa14
Q [m³/s] one message
author | gernotbelger |
---|---|
date | Thu, 26 Jul 2018 15:54:20 +0200 |
parents | 3dae6b78e1da |
children | 7b2b086e45f0 |
comparison
equal
deleted
inserted
replaced
9311:7c7f73e5e01e | 9312:740d65e4aa14 |
---|---|
21 import org.apache.commons.lang.ArrayUtils; | 21 import org.apache.commons.lang.ArrayUtils; |
22 import org.apache.commons.lang.math.DoubleRange; | 22 import org.apache.commons.lang.math.DoubleRange; |
23 import org.apache.commons.lang.math.NumberRange; | 23 import org.apache.commons.lang.math.NumberRange; |
24 import org.dive4elements.artifacts.CallContext; | 24 import org.dive4elements.artifacts.CallContext; |
25 import org.dive4elements.river.artifacts.WINFOArtifact; | 25 import org.dive4elements.river.artifacts.WINFOArtifact; |
26 import org.dive4elements.river.artifacts.common.GeneralResultType; | |
26 import org.dive4elements.river.artifacts.common.ResultRow; | 27 import org.dive4elements.river.artifacts.common.ResultRow; |
27 import org.dive4elements.river.artifacts.model.Calculation; | 28 import org.dive4elements.river.artifacts.model.Calculation; |
28 import org.dive4elements.river.artifacts.model.Calculation.Problem; | 29 import org.dive4elements.river.artifacts.model.Calculation.Problem; |
29 import org.dive4elements.river.artifacts.model.CalculationResult; | 30 import org.dive4elements.river.artifacts.model.CalculationResult; |
30 import org.dive4elements.river.artifacts.model.WQKms; | 31 import org.dive4elements.river.artifacts.model.WQKms; |
180 | 181 |
181 final ResultRow row = ResultRow.create(); | 182 final ResultRow row = ResultRow.create(); |
182 | 183 |
183 row.putValue(SInfoResultType.waterlevelLabel, waterlevelLabel); | 184 row.putValue(SInfoResultType.waterlevelLabel, waterlevelLabel); |
184 row.putValue(SInfoResultType.gaugeLabel, riverInfoProvider.findGauge(station)); | 185 row.putValue(SInfoResultType.gaugeLabel, riverInfoProvider.findGauge(station)); |
185 row.putValue(SInfoResultType.location, riverInfoProvider.getLocation(station)); | 186 row.putValue(GeneralResultType.location, riverInfoProvider.getLocation(station)); |
186 | 187 |
187 if (tkhCalculator.calculateTkh(station, row)) | 188 if (tkhCalculator.calculateTkh(station, row)) |
188 rows.add(row); | 189 rows.add(row); |
189 } | 190 } |
190 | 191 |