diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java @ 8559:6d8d7425a6b5

Bed heights are just bed heights since a while ('single' is obsolete).
author "Tom Gottfried <tom@intevation.de>"
date Mon, 16 Feb 2015 11:08:33 +0100
parents 2f640972ecf6
children cd5e0662f75c
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java	Mon Feb 16 10:12:12 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java	Mon Feb 16 11:08:33 2015 +0100
@@ -8,8 +8,8 @@
 import org.dive4elements.river.artifacts.access.BedHeightAccess;
 import org.dive4elements.river.artifacts.model.BlackboardDataFacet;
 import org.dive4elements.river.artifacts.model.FacetTypes;
-import org.dive4elements.river.model.BedHeightSingle;
-import org.dive4elements.river.model.BedHeightSingleValue;
+import org.dive4elements.river.model.BedHeight;
+import org.dive4elements.river.model.BedHeightValue;
 
 
 public class BedHeightSoundingWidthFacet
@@ -36,19 +36,19 @@
     public Object getData(Artifact artifact, CallContext context) {
         BedHeightAccess access = new BedHeightAccess((D4EArtifact)artifact);
         /* Former doc (from BedHeightAccess):
-         * Return a {@link List} of {@link BedHeightSingleValue}s
+         * Return a {@link List} of {@link BedHeightValue}s
          * at the range of the artifact
-         * @return List of {@link BedHeightSingleValue}s */
-        BedHeightSingle single = BedHeightSingle.getBedHeightSingleById(
+         * @return List of {@link BedHeightValue}s */
+        BedHeight single = BedHeight.getBedHeightById(
                 access.getHeightId());
-        List<BedHeightSingleValue> bedheightValues =
-            BedHeightSingleValue.getBedHeightSingleValues(
+        List<BedHeightValue> bedheightValues =
+            BedHeightValue.getBedHeightValues(
                 single,
                 access.getFrom(),
                 access.getTo());
         double[][] values = new double[2][bedheightValues.size()];
         int i = 0;
-        for (BedHeightSingleValue bedheightValue : bedheightValues) {
+        for (BedHeightValue bedheightValue : bedheightValues) {
             values[0][i] = bedheightValue.getStation();
             values[1][i] = bedheightValue.getSoundingWidth() != null
                 ? bedheightValue.getSoundingWidth() : Double.NaN;

http://dive4elements.wald.intevation.org