Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/BedHeightsFinder.java @ 9573:b9c87bbff6a4
mean bed height -> mean bed LEVEL
author | gernotbelger |
---|---|
date | Tue, 06 Nov 2018 10:56:22 +0100 |
parents | 7228bd10a8cc |
children | 5395c6d4ca50 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/BedHeightsFinder.java Mon Nov 05 18:30:24 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/BedHeightsFinder.java Tue Nov 06 10:56:22 2018 +0100 @@ -28,7 +28,7 @@ import org.dive4elements.river.utils.RiverUtils; /** - * Provides bed heights for various calculations. + * Provides bed levels for various calculations. * * @author Gernot Belger */ @@ -45,7 +45,7 @@ private final boolean isNull; /** - * Create bed height finders from a collection of bed heights. + * Create bed level finders from a collection of bed levels. */ public static Collection<BedHeightsFinder> createTkhBedHeights(final Calculation problems, final DoubleRange range, final Collection<BedHeight> bedHeights) { @@ -102,7 +102,7 @@ /** * Creates a {@link BedHeightsFinder} for a dataset from the database, specified by its id. * - * @return <code>null</code> if no bed height with the given id exists. + * @return <code>null</code> if no bed level with the given id exists. */ public static BedHeightsFinder forId(final Calculation problems, final int id, final DoubleRange range) { @@ -122,7 +122,7 @@ } /** - * Create a finder for a given bed height. + * Create a finder for a given bed level. * */ private static BedHeightsFinder createBedHeights(final Calculation problems, final BedHeight bedHeight, final DoubleRange range) { @@ -154,7 +154,7 @@ /** * Whether this is a null (always NaN) finder. - * + * * @return */ public boolean isNull() { @@ -196,8 +196,7 @@ } private double interpolateBedHeights(final double km, final BedHeightValueType type) { - if (this.values.containsKey(km)) - { + if (this.values.containsKey(km)) { final Double value = type.getValue(this.values.get(km)); return value == null ? Double.NaN : value.doubleValue(); }