comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculator.java @ 9312:740d65e4aa14

Q [m³/s] one message
author gernotbelger
date Thu, 26 Jul 2018 15:54:20 +0200
parents d5802f22e4f5
children 7b2b086e45f0
comparison
equal deleted inserted replaced
9311:7c7f73e5e01e 9312:740d65e4aa14
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.GeneralResultType;
16 import org.dive4elements.river.artifacts.common.ResultRow; 17 import org.dive4elements.river.artifacts.common.ResultRow;
17 import org.dive4elements.river.artifacts.sinfo.common.RiverInfoProvider; 18 import org.dive4elements.river.artifacts.sinfo.common.RiverInfoProvider;
18
19 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; 19 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType;
20 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.TkhCalculator; 20 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.TkhCalculator;
21 import org.dive4elements.river.artifacts.sinfo.tkhstate.BedHeightsFinder; 21 import org.dive4elements.river.artifacts.sinfo.tkhstate.BedHeightsFinder;
22 import org.dive4elements.river.artifacts.sinfo.util.WstInfo; 22 import org.dive4elements.river.artifacts.sinfo.util.WstInfo;
23 23
74 final String gaugeLabel = this.riverInfoProvider.findGauge(station); 74 final String gaugeLabel = this.riverInfoProvider.findGauge(station);
75 row.putValue(SInfoResultType.gaugeLabel, gaugeLabel); 75 row.putValue(SInfoResultType.gaugeLabel, gaugeLabel);
76 76
77 // REMARK: access the location once only during calculation 77 // REMARK: access the location once only during calculation
78 final String location = this.riverInfoProvider.getLocation(station); 78 final String location = this.riverInfoProvider.getLocation(station);
79 row.putValue(SInfoResultType.location, location); 79 row.putValue(GeneralResultType.location, location);
80 80
81 if (this.tkhCalculator.calculateTkh(station, row)) 81 if (this.tkhCalculator.calculateTkh(station, row))
82 this.rows.add(row); 82 this.rows.add(row);
83 } 83 }
84 } 84 }

http://dive4elements.wald.intevation.org