[PATCH 1 of 7] (issue1448) Add SQ Time interval select state

Wald Commits scm-commit at wald.intevation.org
Mon Sep 8 16:25:16 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1410185879 -7200
# Node ID e7ad8b7e66bc29f7a2231a50adf7dc7bf1bf7b90
# Parent  724081af301c0957d03d0a26ff39ee9258812766
(issue1448) Add SQ Time interval select state

diff -r 724081af301c -r e7ad8b7e66bc artifacts/doc/conf/artifacts/minfo.xml
--- a/artifacts/doc/conf/artifacts/minfo.xml	Mon Sep 08 16:14:43 2014 +0200
+++ b/artifacts/doc/conf/artifacts/minfo.xml	Mon Sep 08 16:17:59 2014 +0200
@@ -442,6 +442,30 @@
 
         <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
             <from state="state.minfo.sediment.load.location"/>
+            <to state="state.minfo.sediment.load.sq_interval"/>
+            <condition data="ye_select" value="year" operator="equal"/>
+        </transition>
+
+        <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
+            <from state="state.minfo.sediment.load.location"/>
+            <to state="state.minfo.sediment.load.sq_interval"/>
+            <condition data="ye_select" value="epoch" operator="equal"/>
+        </transition>
+
+        <state id="state.minfo.sediment.load.sq_interval" description="state.minfo.sediment.load.sq_interval"
+            state="org.dive4elements.river.artifacts.states.minfo.SedimentLoadSQTiSelect"
+            helpText="help.state.minfo.sediment.load.sq_interval">
+            <data name="sq_interval_id" type="Integer" />
+        </state>
+
+        <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
+            <from state="state.minfo.sediment.load.sq_interval"/>
+            <to state="state.minfo.sediment.load.epochs"/>
+            <condition data="ye_select" value="epoch" operator="equal"/>
+        </transition>
+
+        <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
+            <from state="state.minfo.sediment.load.sq_interval"/>
             <to state="state.minfo.sediment.load.period"/>
             <condition data="ye_select" value="year" operator="equal"/>
         </transition>
diff -r 724081af301c -r e7ad8b7e66bc artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadSQTiSelect.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadSQTiSelect.java	Mon Sep 08 16:17:59 2014 +0200
@@ -0,0 +1,33 @@
+/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU AGPL (>=v3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out the
+ * documentation coming with Dive4Elements River for details.
+ */
+
+package org.dive4elements.river.artifacts.states.minfo;
+
+import org.apache.log4j.Logger;
+
+import org.dive4elements.river.artifacts.states.DefaultState;
+
+
+public class SedimentLoadSQTiSelect
+extends DefaultState
+{
+    /** The logger used in this class. */
+    private static Logger logger = Logger.getLogger(SedimentLoadSQTiSelect.class);
+
+
+    /**
+     * The default constructor that initializes an empty State object.
+     */
+    public SedimentLoadSQTiSelect() {
+    }
+
+    @Override
+    protected String getUIProvider() {
+        return "minfo.sedimentload_sqti_select";
+    }
+}


More information about the Dive4Elements-commits mailing list