[PATCH 1 of 3] (issue1448) Add Sq time interval to sediment load accessor

Wald Commits scm-commit at wald.intevation.org
Mon Sep 8 19:01:31 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1410195550 -7200
# Node ID 90727aa9913d9181f0e5f58d2883c7b9e723997a
# Parent  c0da2514f4ce99be6228ed485fbffcc66218f2dd
(issue1448) Add Sq time interval to sediment load accessor

diff -r c0da2514f4ce -r 90727aa9913d artifacts/src/main/java/org/dive4elements/river/artifacts/access/SedimentLoadAccess.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/access/SedimentLoadAccess.java	Mon Sep 08 18:31:17 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/access/SedimentLoadAccess.java	Mon Sep 08 18:59:10 2014 +0200
@@ -27,6 +27,8 @@
 
     private int [] period;
 
+    private int sqTiId;
+
     public SedimentLoadAccess(D4EArtifact artifact) {
         super(artifact);
     }
@@ -111,5 +113,15 @@
         }
         return unit;
     }
+
+    /** Returns the selected time interval id */
+    public int getSQTiId () {
+        if (sqTiId == 0) {
+            Integer obj = getInteger("sq_ti_id");
+            sqTiId = obj == null ? 0 : obj;
+        }
+        return sqTiId;
+    }
+
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :


More information about the Dive4Elements-commits mailing list