diff flys-artifacts/doc/conf/artifacts/chart.xml @ 2132:e8fc770d2f8c

'New Chart' for computed discharge curve. flys-artifacts/trunk@3707 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Jan 2012 14:36:16 +0000
parents d109e7702995
children 024d986b4f5b
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/artifacts/chart.xml	Wed Jan 18 13:39:16 2012 +0000
+++ b/flys-artifacts/doc/conf/artifacts/chart.xml	Wed Jan 18 14:36:16 2012 +0000
@@ -14,36 +14,40 @@
             <data name="chart_type" type="String" />
          </state>
 
-         <transition transition="de.intevation.flys.artifacts.transitions.DefaultTransition">
+         <transition transition="de.intevation.flys.artifacts.transitions.ValueCompareTransition">
              <from state="state.chart.type"/>
              <to state="state.chart.w_differences"/>
-             <condition data="chart_type" value="new.chart.w_differences" operator="equals"/>
-         </transition>
-
-         <transition transition="de.intevation.flys.artifacts.transitions.DefaultTransition">
-             <from state="state.chart.type"/>
-             <to state="state.chart.durationcurve"/>
-             <condition data="chart_type" value="new.chart.durationcurve" operator="equals"/>
+             <condition data="chart_type" value="chart.new.w_differences" operator="equal"/>
          </transition>
 
-         <transition transition="de.intevation.flys.artifacts.transitions.DefaultTransition">
+         <transition transition="de.intevation.flys.artifacts.transitions.ValueCompareTransition">
              <from state="state.chart.type"/>
-             <to state="state.chart.computeddischargecurve"/>
-             <condition data="chart_type" value="new.chart.computeddischargecurve" operator="equals"/>
+             <to state="state.chart.durationcurve"/>
+             <condition data="chart_type" value="chart.new.durationcurve" operator="equal"/>
          </transition>
 
-         <transition transition="de.intevation.flys.artifacts.transitions.DefaultTransition">
+         <transition transition="de.intevation.flys.artifacts.transitions.ValueCompareTransition">
+             <from state="state.chart.type"/>
+             <to state="state.chart.km"/>
+             <condition data="chart_type" value="chart.new.computeddischargecurve" operator="equal"/>
+         </transition>
+
+         <transition transition="de.intevation.flys.artifacts.transitions.ValueCompareTransition">
              <from state="state.chart.type"/>
              <to state="state.chart.waterlevel"/>
-             <condition data="chart_type" value="new.chart.waterlevel" operator="equals"/>
+             <condition data="chart_type" value="chart.new.waterlevel" operator="equal"/>
          </transition>
 
-         <transition transition="de.intevation.flys.artifacts.transitions.DefaultTransition">
+         <transition transition="de.intevation.flys.artifacts.transitions.ValueCompareTransition">
              <from state="state.chart.type"/>
              <to state="state.chart.discharge_longitudinal_section"/>
-             <condition data="chart_type" value="new.chart.discharge_longitudinal_section" operator="equals"/>
+             <condition data="chart_type" value="chart.new.discharge_longitudinal_section" operator="equal"/>
          </transition>
 
+         <state id="state.chart.km" description="state.chart.km" state="de.intevation.flys.artifacts.states.LocationSelect">
+             <data name="ld_locations" type="Double[]"/>
+         </state>
+
          <state id="state.chart.w_differences" description="state.winfo.w_differences" state="de.intevation.flys.artifacts.states.WDifferencesState">
             <outputmodes>
                 <outputmode name="w_differences" description="output.w_differences" mime-type="image/png" type="chart">
@@ -73,22 +77,6 @@
             </outputmodes>
         </state>
 
-        <state id="state.chart.computeddischargecurve" description="state.winfo.computeddischargecurve" state="de.intevation.flys.artifacts.states.ComputedDischargeCurveState">
-            <outputmodes>
-                <outputmode name="computed_discharge_curve" description="output.computed_discharge_curve" mime-type="image/png" type="chart">
-                    <facets>
-                        <facet name="computed_discharge_curve.q" description="facet.computed_discharge_curve.q"/>
-                        <facet name="computed_discharge_curve.mainvalues.q" description="facet.computed_discharge_curve.mainvalues.q"/>
-                        <facet name="computed_discharge_curve.mainvalues.w" description="facet.computed_discharge_curve.mainvalues.w"/>
-                        <facet name="other.wqkms" description="facet.other.wqkms"/>
-                        <facet name="other.wq"    description="Point-like data like fixations"/>
-                        <facet name="other.wq"    description="Point-like data like fixations"/>
-                        <facet name="other.wkms.interpol" description="Height over km, like flood protections."/>
-                    </facets>
-                </outputmode>
-            </outputmodes>
-        </state>
-
         <state id="state.chart.waterlevel" description="state.winfo.waterlevel" state="de.intevation.flys.artifacts.states.WaterlevelState">
             <outputmodes>
                 <outputmode name="longitudinal_section" description="output.longitudinal_section" mime-type="image/png" type="chart">
@@ -122,5 +110,29 @@
                 </outputmode>
             </outputmodes>
         </state>
+
+        <transition transition="de.intevation.flys.artifacts.transitions.ValueCompareTransition">
+            <from state="state.chart.km"/>
+            <to state="state.chart.computeddischargecurve"/>
+            <condition data="chart_type" value="chart.new.computeddischargecurve" operator="equal"/>
+        </transition>
+
+        <state id="state.chart.computeddischargecurve" description="state.chart.computeddischargecurve" state="de.intevation.flys.artifacts.states.ComputedDischargeCurveState">
+            <outputmodes>
+                <outputmode name="computed_discharge_curve" description="output.computed_discharge_curve" mime-type="image/png" type="chart">
+                    <facets>
+                        <facet name="empty.facet" description="Empty"/>
+                        <facet name="computed_discharge_curve.q" description="facet.computed_discharge_curve.q"/>
+                        <facet name="computed_discharge_curve.mainvalues.q" description="facet.computed_discharge_curve.mainvalues.q"/>
+                        <facet name="computed_discharge_curve.mainvalues.w" description="facet.computed_discharge_curve.mainvalues.w"/>
+                        <facet name="other.wqkms" description="facet.other.wqkms"/>
+                        <facet name="other.wq" description="Point-like data like fixations"/>
+                        <facet name="other.wq" description="Point-like data like fixations"/>
+                        <facet name="other.wkms.interpol" description="Height over km, like flood protections."/>
+                    </facets>
+                </outputmode>
+            </outputmodes>
+        </state>
+
     </states>
 </artifact>

http://dive4elements.wald.intevation.org