Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/TkhCalculator.java @ 8997:d5802f22e4f5
Work on uinfo
author | gernotbelger |
---|---|
date | Thu, 12 Apr 2018 19:14:19 +0200 |
parents | b5600453bb8f |
children | 8675912c7f48 |
comparison
equal
deleted
inserted
replaced
8996:fb9430250899 | 8997:d5802f22e4f5 |
---|---|
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.sinfo.tkhcalculation; | 10 package org.dive4elements.river.artifacts.sinfo.tkhcalculation; |
11 | 11 |
12 import org.apache.commons.lang.math.DoubleRange; | 12 import org.apache.commons.lang.math.DoubleRange; |
13 import org.dive4elements.river.artifacts.common.GeneralResultType; | |
14 import org.dive4elements.river.artifacts.common.ResultRow; | |
13 import org.dive4elements.river.artifacts.model.Calculation; | 15 import org.dive4elements.river.artifacts.model.Calculation; |
14 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultRow; | |
15 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; | 16 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; |
16 import org.dive4elements.river.artifacts.sinfo.tkhstate.BedHeightsFinder; | 17 import org.dive4elements.river.artifacts.sinfo.tkhstate.BedHeightsFinder; |
17 import org.dive4elements.river.model.River; | 18 import org.dive4elements.river.model.River; |
18 | 19 |
19 /** | 20 /** |
106 | 107 |
107 private double getBedMeasurement(final double km) { | 108 private double getBedMeasurement(final double km) { |
108 return this.bedMeasurementsFinder.findD50(km); | 109 return this.bedMeasurementsFinder.findD50(km); |
109 } | 110 } |
110 | 111 |
111 public boolean calculateTkh(final double km, final SInfoResultRow row) { | 112 public boolean calculateTkh(final double km, final ResultRow row) { |
112 | 113 |
113 row.putValue(SInfoResultType.station, km); | 114 row.putValue(GeneralResultType.station, km); |
114 | 115 |
115 final SoilKind kind = getSoilKind(km); | 116 final SoilKind kind = getSoilKind(km); |
116 row.putValue(SInfoResultType.soilkind, kind); | 117 row.putValue(SInfoResultType.soilkind, kind); |
117 | 118 |
118 final double wst = this.waterlevelProvider.getWaterlevel(km); | 119 final double wst = this.waterlevelProvider.getWaterlevel(km); |