Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixLineCalculationResult.java @ 9443:515643b2c49a
Added computation of uinfo salix line vegetation zone height (not yet connected to the cross section facet)
author | mschaefer |
---|---|
date | Mon, 20 Aug 2018 18:50:33 +0200 |
parents | e8b1255fc89e |
children | 853f2dafc16e |
comparison
equal
deleted
inserted
replaced
9442:173f188569c6 | 9443:515643b2c49a |
---|---|
20 import org.dive4elements.river.artifacts.common.ExportContextPDF; | 20 import org.dive4elements.river.artifacts.common.ExportContextPDF; |
21 import org.dive4elements.river.artifacts.common.GeneralResultType; | 21 import org.dive4elements.river.artifacts.common.GeneralResultType; |
22 import org.dive4elements.river.artifacts.common.IExportContext; | 22 import org.dive4elements.river.artifacts.common.IExportContext; |
23 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; | 23 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; |
24 import org.dive4elements.river.artifacts.common.ResultRow; | 24 import org.dive4elements.river.artifacts.common.ResultRow; |
25 import org.dive4elements.river.artifacts.model.Calculation; | |
25 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | 26 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
26 import org.dive4elements.river.artifacts.uinfo.common.UInfoResultType; | 27 import org.dive4elements.river.artifacts.uinfo.common.UInfoResultType; |
27 import org.dive4elements.river.artifacts.uinfo.salix.SalixLineCrossSectionIndexData.SalixWaterlevel; | 28 import org.dive4elements.river.artifacts.uinfo.salix.SalixLineCrossSectionIndexData.SalixWaterlevel; |
28 | 29 |
29 import gnu.trove.TDoubleArrayList; | 30 import gnu.trove.TDoubleArrayList; |
221 | 222 |
222 default: | 223 default: |
223 throw new UnsupportedOperationException(); | 224 throw new UnsupportedOperationException(); |
224 } | 225 } |
225 } | 226 } |
227 | |
228 /** | |
229 * Computes the height of a vegetation zone type for a station and a salix calculation result | |
230 */ | |
231 public double computeVegetationZoneHeight(final double station, final int vegetationZoneType, final SalixLineCalculationResult result) { | |
232 | |
233 final Calculation problems = new Calculation(); | |
234 | |
235 final SalixLineCalculator calculator = new SalixLineCalculator(null); | |
236 return calculator.computeVegetationZoneHeight(problems, station, vegetationZoneType, result); | |
237 } | |
226 } | 238 } |