comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WQFixing.java @ 6060:0a200ba54461

Fix WQ input validation for fixing analysis It is basically the same as the other WQ inputs but here all positive numbers are valid.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 22 May 2013 17:08:06 +0200
parents
children 1a169e10c0f3
comparison
equal deleted inserted replaced
6059:5f52a8079625 6060:0a200ba54461
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU AGPL (>=v3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
6 * documentation coming with Dive4Elements River for details.
7 */
8 package org.dive4elements.river.artifacts.states;
9
10 import org.dive4elements.artifacts.Artifact;
11
12 import org.apache.log4j.Logger;
13
14 /**
15 * State to input W/Q data for fixings
16 * @author <a href="mailto:aheinecke@intevation.de">Andre Heinecke</a>
17 */
18 public class WQFixing extends WQAdapted {
19
20 /** The logger used in this state.*/
21 private static Logger logger = Logger.getLogger(WQFixing.class);
22
23 @Override
24 public boolean validate(Artifact artifact)
25 throws IllegalArgumentException
26 {
27 logger.debug("WQFixing.validate");
28 // A check for positive values is already done by the client
29 // all positive values are valid
30 return true;
31 }
32
33 @Override
34 protected String getUIProvider() {
35 return "wq_panel_adapted_fixing";
36 }
37 }

http://dive4elements.wald.intevation.org