diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/BedHeightInfo.java @ 8877:9f7a285b0ee3

Some work on SINFO FlowDepth
author gernotbelger
date Thu, 08 Feb 2018 18:48:24 +0100
parents
children 64ca63f79f6f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/BedHeightInfo.java	Thu Feb 08 18:48:24 2018 +0100
@@ -0,0 +1,75 @@
+/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
+ * Software engineering by
+ *  Björnsen Beratende Ingenieure GmbH
+ *  Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
+ *
+ * This file is Free Software under the GNU AGPL (>=v3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out the
+ * documentation coming with Dive4Elements River for details.
+ */
+package org.dive4elements.river.artifacts.sinfo.flowdepth;
+
+import org.dive4elements.river.model.BedHeight;
+
+/**
+ * Basic infos about a {@link BedHeight}.
+ *
+ * @author Gernot Belger
+ */
+final class BedHeightInfo {
+
+    private final Integer year;
+
+    private final String description;
+
+    private final String type;
+
+    private final String locationSystem;
+
+    private final String curElevationModelName;
+
+    private final String oldElevationModelName;
+
+    public static BedHeightInfo from(final BedHeight bedHeight) {
+        return new BedHeightInfo(bedHeight);
+    }
+
+    private BedHeightInfo(final BedHeight bedHeight) {
+
+        this.year = bedHeight.getYear();
+
+        // private String evaluationBy;
+        this.description = bedHeight.getDescription();
+
+        this.type = bedHeight.getType().getName();
+
+        this.locationSystem = bedHeight.getLocationSystem().getName();
+
+        this.curElevationModelName = bedHeight.getCurElevationModel().getName();
+        this.oldElevationModelName = bedHeight.getCurElevationModel().getName();
+    }
+
+    public Integer getYear() {
+        return this.year;
+    }
+
+    public String getDescription() {
+        return this.description;
+    }
+
+    public String getType() {
+        return this.type;
+    }
+
+    public String getLocationSystem() {
+        return this.locationSystem;
+    }
+
+    public String getCurElevationModelName() {
+        return this.curElevationModelName;
+    }
+
+    public String getOldElevationModelName() {
+        return this.oldElevationModelName;
+    }
+}

http://dive4elements.wald.intevation.org