changeset 6952:e6a8255d0764

SedimentLoad: Allow to set range of total load.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 30 Aug 2013 12:32:29 +0200
parents f5f60b3d9180
children 733c35239fe7
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoad.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }
     }

http://dive4elements.wald.intevation.org