diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java @ 927:53a2be494765

Enhanced the transition model to continue the parameterization in the waterlevel state to compute flood maps. flys-artifacts/trunk@2281 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 05 Jul 2011 15:34:54 +0000
parents c09c9e05ecfa
children 960dc6328e70
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java	Mon Jul 04 13:23:54 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java	Tue Jul 05 15:34:54 2011 +0000
@@ -4,6 +4,7 @@
 
 import org.apache.log4j.Logger;
 
+import de.intevation.artifacts.Artifact;
 import de.intevation.artifacts.CallContext;
 
 import de.intevation.artifactdatabase.state.Facet;
@@ -28,6 +29,28 @@
 
 
     @Override
+    protected String getUIProvider() {
+        return "continue";
+    }
+
+
+    /**
+     * This method returns always true, because there is no data to validate.
+     *
+     * @param artifact The Artifact.
+     * @param context The CallContext.
+     *
+     * @return always true.
+     */
+    @Override
+    public boolean validate(Artifact artifact, CallContext context)
+    throws IllegalArgumentException
+    {
+        return true;
+    }
+
+
+    @Override
     public Object computeAdvance(
         FLYSArtifact artifact,
         String       hash,

http://dive4elements.wald.intevation.org