Mercurial > dive4elements > river
changeset 8226:e7ad8b7e66bc
(issue1448) Add SQ Time interval select state
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 16:17:59 +0200 |
parents | 724081af301c |
children | e5af9087f091 |
files | artifacts/doc/conf/artifacts/minfo.xml artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadSQTiSelect.java |
diffstat | 2 files changed, 57 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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>
--- /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"; + } +}