[PATCH 3 of 4] SedimentLoad: Allow to set range of total load

Wald Commits scm-commit at wald.intevation.org
Fri Aug 30 12:23:41 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1377858749 -7200
# Node ID e6a8255d076446aea6971013c7caf7a6cf0f6bcc
# Parent  f5f60b3d91801ed5e1d9fbab0f9ae5edec9c9932
SedimentLoad: Allow to set range of total load.

diff -r f5f60b3d9180 -r e6a8255d0764 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoad.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoad.java	Fri Aug 30 12:31:33 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoad.java	Fri Aug 30 12:32:29 2013 +0200
@@ -172,12 +172,18 @@
     }
 
     public void setLoadTotal(double km, double total) {
+        setLoadTotal(km, total, null);
+    }
+
+    public void setLoadTotal(double km, double total, Range range) {
         if (kms.containsKey(km)) {
             kms.get(km).setLoadTotal(total);
+            kms.get(km).setLoadTotalRange(range);
         }
         else {
             SedimentLoadFraction f = new SedimentLoadFraction();
             f.setLoadTotal(total);
+            f.setLoadTotalRange(range);
             kms.put(km, f);
         }
     }


More information about the Dive4elements-commits mailing list