Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculator.java @ 8997:d5802f22e4f5
Work on uinfo
author | gernotbelger |
---|---|
date | Thu, 12 Apr 2018 19:14:19 +0200 |
parents | b5600453bb8f |
children | 740d65e4aa14 |
comparison
equal
deleted
inserted
replaced
8996:fb9430250899 | 8997:d5802f22e4f5 |
---|---|
11 | 11 |
12 import java.util.ArrayList; | 12 import java.util.ArrayList; |
13 import java.util.Collection; | 13 import java.util.Collection; |
14 | 14 |
15 import org.apache.commons.lang.math.DoubleRange; | 15 import org.apache.commons.lang.math.DoubleRange; |
16 import org.dive4elements.river.artifacts.common.ResultRow; | |
16 import org.dive4elements.river.artifacts.sinfo.common.RiverInfoProvider; | 17 import org.dive4elements.river.artifacts.sinfo.common.RiverInfoProvider; |
17 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultRow; | 18 |
18 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; | 19 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; |
19 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.TkhCalculator; | 20 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.TkhCalculator; |
20 import org.dive4elements.river.artifacts.sinfo.tkhstate.BedHeightsFinder; | 21 import org.dive4elements.river.artifacts.sinfo.tkhstate.BedHeightsFinder; |
21 import org.dive4elements.river.artifacts.sinfo.util.WstInfo; | 22 import org.dive4elements.river.artifacts.sinfo.util.WstInfo; |
22 | 23 |
23 /** | 24 /** |
24 * @author Gernot Belger | 25 * @author Gernot Belger |
25 */ | 26 */ |
26 final class FlowDepthCalculator { | 27 final class FlowDepthCalculator { |
27 | 28 |
28 private final Collection<SInfoResultRow> rows = new ArrayList<>(); | 29 private final Collection<ResultRow> rows = new ArrayList<>(); |
29 | 30 |
30 private final BedHeightsFinder bedHeight; | 31 private final BedHeightsFinder bedHeight; |
31 | 32 |
32 private final TkhCalculator tkhCalculator; | 33 private final TkhCalculator tkhCalculator; |
33 | 34 |
62 return new FlowDepthCalculationResult(label, wstInfo, this.bedHeight.getInfo(), hasTkh, this.rows); | 63 return new FlowDepthCalculationResult(label, wstInfo, this.bedHeight.getInfo(), hasTkh, this.rows); |
63 } | 64 } |
64 | 65 |
65 private void calculateResultRow(final double station) { | 66 private void calculateResultRow(final double station) { |
66 | 67 |
67 final SInfoResultRow row = SInfoResultRow.create(); | 68 final ResultRow row = ResultRow.create(); |
68 | 69 |
69 row.putValue(SInfoResultType.waterlevelLabel, this.wstLabel); | 70 row.putValue(SInfoResultType.waterlevelLabel, this.wstLabel); |
70 row.putValue(SInfoResultType.soundingLabel, this.bedHeightLabel); | 71 row.putValue(SInfoResultType.soundingLabel, this.bedHeightLabel); |
71 | 72 |
72 // REMARK: access the gauge once only during calculation | 73 // REMARK: access the gauge once only during calculation |