diff gnv-artifacts/doc/conf/products/verticalprofile/conf_mesh.xml @ 337:a887074460b6

Last Step of the Refactoring Work on the Transition Model. Splitted Businesslogic between States and Transitions. Splitted the ConfigurationElements of State and Transition in several XML-Fragments. gnv-artifacts/trunk@403 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 08 Dec 2009 13:38:21 +0000
parents e964a3d8f7bc
children ca5162aa644d
line wrap: on
line diff
--- a/gnv-artifacts/doc/conf/products/verticalprofile/conf_mesh.xml	Tue Dec 08 11:18:27 2009 +0000
+++ b/gnv-artifacts/doc/conf/products/verticalprofile/conf_mesh.xml	Tue Dec 08 13:38:21 2009 +0000
@@ -6,23 +6,28 @@
            <dataname>areaid</dataname>
            <data-multiselect>false</data-multiselect>
             <data-noselect>true</data-noselect>
-           <reachablestates>
-                  <state>verticalprofile_mesh_subarea</state>
-                  <state>verticalprofile_mesh_without_geom</state>
-           </reachablestates>
            <inputvalues>
                <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="0"/>
                <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
                <inputvalue name="areaid" type="Integer" multiselect="false" usedinquery="0"/>
            </inputvalues>
        </state>
+       
+       <transition transition="de.intevation.gnv.transition.ValueCompareTransition">
+           <from state="verticalprofile_mesh_area"/>
+           <to state="verticalprofile_mesh_subarea"/>
+           <condition inputvalue="areaid" value="n/n" operator="notequal"/>
+       </transition>
+       <transition transition="de.intevation.gnv.transition.ValueCompareTransition">
+           <from state="verticalprofile_mesh_area"/>
+           <to state="verticalprofile_mesh_without_geom"/>
+           <condition inputvalue="areaid" value="n/n" operator="equal"/>
+       </transition>
+       
        <state id="verticalprofile_mesh_subarea" description="verticalprofile_mesh_subaera" state="de.intevation.gnv.state.DefaultState">
            <queryID>subarea_filter</queryID>
            <dataname>subareaid</dataname>
            <data-multiselect>false</data-multiselect>
-           <reachablestates>
-                  <state>verticalprofile_mesh</state>
-           </reachablestates>
            <inputvalues>
                <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="0"/>
                <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
@@ -31,27 +36,31 @@
            </inputvalues>
        </state>
        
+       <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_mesh_subarea"/>
+           <to state="verticalprofile_mesh"/>
+       </transition>
+       
         <state id="verticalprofile_mesh_without_geom" description="timeseries_mesh_without_geom" state="de.intevation.gnv.state.DefaultState">
             <queryID>verticalprofile_mesh</queryID>
             <dataname>meshid</dataname>
             <data-multiselect>false</data-multiselect>
-            <reachablestates>
-                   <state>verticalprofile_mesh_coordinate</state>
-            </reachablestates>
             <inputvalues>
                 <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="1"/>
                 <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
                 <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="0"/>
             </inputvalues>
         </state>
-               
+       
+       <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_mesh_without_geom"/>
+           <to state="verticalprofile_mesh_coordinate"/>
+       </transition>
+       
        <state id="verticalprofile_mesh" description="verticalprofile_mesh" state="de.intevation.gnv.state.DefaultState">
            <queryID>verticalprofile_mesh_with_area</queryID>
            <dataname>meshid</dataname>
            <data-multiselect>false</data-multiselect>
-           <reachablestates>
-                  <state>verticalprofile_mesh_coordinate</state>
-           </reachablestates>
            <inputvalues>
                <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="1"/>
                <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
@@ -60,12 +69,14 @@
            </inputvalues>
        </state>
        
+       <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_mesh"/>
+           <to state="verticalprofile_mesh_coordinate"/>
+       </transition>
+       
        <state id="verticalprofile_mesh_coordinate" description="verticalprofile_mesh_coordinate" state="de.intevation.gnv.state.SingleInputState">
            <dataname>mesh_coordinate</dataname>
            <data-multiselect>false</data-multiselect>
-           <reachablestates>
-                  <state>verticalprofile_mesh_point</state>
-           </reachablestates>
            <inputvalues>
                 <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/>
                 <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
@@ -73,13 +84,15 @@
            </inputvalues>
        </state>
        
+       <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_mesh_coordinate"/>
+           <to state="verticalprofile_mesh_point"/>
+       </transition>
+       
        <state id="verticalprofile_mesh_point" description="verticalprofile_mesh_point" state="de.intevation.gnv.state.CoordinateSelectionState">
            <queryID>verticalprofile_mesh_point</queryID>
            <dataname>mesh_point</dataname>
            <data-multiselect>false</data-multiselect>
-           <reachablestates>
-               <state>verticalprofile_mesh_mindepth</state>
-           </reachablestates>
            <inputvalues>
                 <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/>
                 <inputvalue name="mesh_coordinate" type="Coordinate" multiselect="false" usedinquery="1"/>
@@ -88,13 +101,15 @@
            </inputvalues>
        </state>
        
+       <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_mesh_point"/>
+           <to state="verticalprofile_mesh_mindepth"/>
+       </transition>
+       
         <state id="verticalprofile_mesh_mindepth" description="verticalprofile_mesh_mindepth" state="de.intevation.gnv.state.DefaultState">
             <queryID>verticalprofile_mesh_mindepth</queryID>
             <dataname>mindepthid</dataname>
             <data-multiselect>false</data-multiselect>
-            <reachablestates>
-                <state>verticalprofile_mesh_maxdepth</state>
-            </reachablestates>
             <inputvalues>
                 <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/>
                 <inputvalue name="mesh_point" type="Integer" multiselect="false" usedinquery="2"/>
@@ -103,6 +118,11 @@
             </inputvalues>
         </state>
         
+        <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_mesh_mindepth"/>
+           <to state="verticalprofile_mesh_maxdepth"/>
+        </transition>
+        
         <state id="verticalprofile_mesh_maxdepth" description="verticalprofile_mesh_maxdepth" state="de.intevation.gnv.state.DefaultState">
             <queryID>verticalprofile_mesh_maxdepth</queryID>
             <dataname>maxdepthid</dataname>
@@ -118,13 +138,16 @@
                 <inputvalue name="maxdepthid" type="Double" multiselect="false" usedinquery="0"/>
             </inputvalues>
         </state>
-       <state id="verticalprofile_meshpoint_parameter" description="verticalprofile_meshpoint_parameter" state="de.intevation.gnv.state.DefaultState">
+        
+        <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_mesh_maxdepth"/>
+           <to state="verticalprofile_meshpoint_parameter"/>
+        </transition>
+        
+        <state id="verticalprofile_meshpoint_parameter" description="verticalprofile_meshpoint_parameter" state="de.intevation.gnv.state.DefaultState">
            <queryID>verticalprofile_mesh_parameter</queryID>
            <dataname>parameterid</dataname>
            <data-multiselect>true</data-multiselect>
-           <reachablestates>
-               <state>verticalprofile_mesh_date</state>
-           </reachablestates>
            <inputvalues>
                 <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/>
                 <inputvalue name="mesh_point" type="Integer" multiselect="false" usedinquery="0"/>
@@ -135,13 +158,15 @@
            </inputvalues>
        </state>
        
+       <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_meshpoint_parameter"/>
+           <to state="verticalprofile_mesh_date"/>
+        </transition>
+       
        <state id="verticalprofile_mesh_date" description="verticalprofile_mesh_date" state="de.intevation.gnv.state.DefaultState">
            <queryID>verticalprofile_mesh_date</queryID>
            <dataname>dateid</dataname>
            <data-multiselect>true</data-multiselect>
-           <reachablestates>
-                <state>verticalprofile_mesh_calculate_results</state>
-           </reachablestates>
            <inputvalues>
                <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/>
                <inputvalue name="mesh_point" type="Integer" multiselect="false" usedinquery="0"/>
@@ -153,6 +178,11 @@
            </inputvalues>
        </state>
        
+       <transition transition="de.intevation.gnv.transition.DefaultTransition">
+           <from state="verticalprofile_mesh_date"/>
+           <to state="verticalprofile_mesh_calculate_results"/>
+        </transition>
+       
        <state id="verticalprofile_mesh_calculate_results" description="verticalprofile_mesh_calculate_results" state="de.intevation.gnv.state.profile.vertical.VerticalProfileOutputState">
            <queryID>verticalprofile_mesh_chart_data</queryID>
            <queryID-odv>verticalprofile_mesh_odv_data</queryID-odv>

http://dive4elements.wald.intevation.org