changeset 8236:90727aa9913d

(issue1448) Add Sq time interval to sediment load accessor
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 08 Sep 2014 18:59:10 +0200
parents c0da2514f4ce
children 25c3a62863d2
files artifacts/src/main/java/org/dive4elements/river/artifacts/access/SedimentLoadAccess.java
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 :

http://dive4elements.wald.intevation.org