Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
926:659608128823 | 927:53a2be494765 |
---|---|
2 | 2 |
3 import java.util.List; | 3 import java.util.List; |
4 | 4 |
5 import org.apache.log4j.Logger; | 5 import org.apache.log4j.Logger; |
6 | 6 |
7 import de.intevation.artifacts.Artifact; | |
7 import de.intevation.artifacts.CallContext; | 8 import de.intevation.artifacts.CallContext; |
8 | 9 |
9 import de.intevation.artifactdatabase.state.Facet; | 10 import de.intevation.artifactdatabase.state.Facet; |
10 | 11 |
11 import de.intevation.flys.artifacts.FLYSArtifact; | 12 import de.intevation.flys.artifacts.FLYSArtifact; |
23 extends DefaultState | 24 extends DefaultState |
24 implements FacetTypes | 25 implements FacetTypes |
25 { | 26 { |
26 /** The logger that is used in this state.*/ | 27 /** The logger that is used in this state.*/ |
27 private static Logger logger = Logger.getLogger(WaterlevelState.class); | 28 private static Logger logger = Logger.getLogger(WaterlevelState.class); |
29 | |
30 | |
31 @Override | |
32 protected String getUIProvider() { | |
33 return "continue"; | |
34 } | |
35 | |
36 | |
37 /** | |
38 * This method returns always true, because there is no data to validate. | |
39 * | |
40 * @param artifact The Artifact. | |
41 * @param context The CallContext. | |
42 * | |
43 * @return always true. | |
44 */ | |
45 @Override | |
46 public boolean validate(Artifact artifact, CallContext context) | |
47 throws IllegalArgumentException | |
48 { | |
49 return true; | |
50 } | |
28 | 51 |
29 | 52 |
30 @Override | 53 @Override |
31 public Object computeAdvance( | 54 public Object computeAdvance( |
32 FLYSArtifact artifact, | 55 FLYSArtifact artifact, |