[Dive4elements-commits] [PATCH 2 of 2] Add fields, getters and setters for ranges in SedimentLoadFraction

Wald Commits scm-commit at wald.intevation.org
Thu Jun 20 08:51:51 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1371653607 -7200
# Node ID be283f9bc0791ba8f269b4ee866a61fc133b3d8c
# Parent  01073acf6735b05c296a384c7be410acc0c8093a
Add fields, getters and setters for ranges in SedimentLoadFraction.

diff -r 01073acf6735 -r be283f9bc079 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java	Wed Jun 19 09:40:38 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java	Wed Jun 19 16:53:27 2013 +0200
@@ -9,8 +9,9 @@
 package org.dive4elements.river.artifacts.model.minfo;
 
 import org.dive4elements.river.artifacts.model.NamedObjectImpl;
+import org.dive4elements.river.artifacts.model.Range;
 
-
+/** One part of sedimentload. */
 public class SedimentLoadFraction
 extends NamedObjectImpl
 {
@@ -22,6 +23,16 @@
     double susp_sediment;
     double loadTotal;
     double total;
+    /** Values are valid within this km range. */
+    Range sandRange = null;
+    Range fineMiddleRange = null;
+    Range coarseRange = null;
+    Range suspSandRange = null;
+    Range suspSandBedRange = null;
+    Range suspSedimentRange = null;
+    Range loadTotalRange = null;
+    Range totalRange = null;
+
 
     public SedimentLoadFraction() {
         sand = 0d;
@@ -41,6 +52,14 @@
         this.sand = sand;
     }
 
+    public void setSandRange(Range range) {
+        this.sandRange = range;
+    }
+
+    public Range getSandRange() {
+        return this.sandRange;
+    }
+
     public double getFine_middle() {
         return fine_middle;
     }
@@ -49,6 +68,14 @@
         this.fine_middle = fine_middle;
     }
 
+    public void setFineMiddleRange(Range range) {
+        this.fineMiddleRange = range;
+    }
+
+    public Range getFineMiddleRange() {
+        return this.fineMiddleRange;
+    }
+
     public double getCoarse() {
         return coarse;
     }
@@ -57,6 +84,14 @@
         this.coarse = coarse;
     }
 
+    public Range getCoarseRange() {
+        return this.coarseRange;
+    }
+
+    public void setCoarseRange(Range range) {
+        this.coarseRange = range;
+    }
+
     public double getSusp_sand() {
         return susp_sand;
     }
@@ -65,6 +100,14 @@
         this.susp_sand = susp_sand;
     }
 
+    public void setSuspSandRange(Range range) {
+        this.suspSandRange = range;
+    }
+
+    public Range getSuspSandRange() {
+        return this.suspSandRange;
+    }
+
     public double getSusp_sand_bed() {
         return susp_sand_bed;
     }
@@ -73,6 +116,14 @@
         this.susp_sand_bed = susp_sand_bed;
     }
 
+    public void setSuspSandBedRange(Range range) {
+        this.suspSandRange = range;
+    }
+
+    public Range getSuspSandBedRange() {
+        return this.suspSandRange;
+    }
+
     public double getSusp_sediment() {
         return susp_sediment;
     }
@@ -81,6 +132,14 @@
         this.susp_sediment = susp_sediment;
     }
 
+    public void setSuspSedimentRange(Range range) {
+        this.suspSedimentRange = range;
+    }
+
+    public Range getSuspSedimentRange() {
+        return this.suspSedimentRange;
+    }
+
     public double getTotal() {
         return total;
     }
@@ -89,6 +148,14 @@
         this.total = total;
     }
 
+    public void setTotalRange(Range range) {
+        this.totalRange = range;
+    }
+
+    public Range getTotalRange() {
+        return this.totalRange;
+    }
+
     public double getLoadTotal() {
         return loadTotal;
     }
@@ -96,4 +163,9 @@
     public void setLoadTotal(double total) {
         this.loadTotal = total;
     }
+
+    public void setLoadTotalRange(Range range) {
+        this.loadTotalRange = range;
+    }
 }
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :


More information about the Dive4elements-commits mailing list