annotate artifacts/src/main/java/org/dive4elements/river/artifacts/WaterlevelArtifact.java @ 8755:30b1ddadf275

(issue1801) Unify reference gauge finding code The basic way as described in the method comment of the determineRefGauge method is now used in the WINFOArtifact, MainValuesService and RiverUtils.getGauge method. RiverUtils.getGauge previously just returned the first gauge found. While this is now a behavior change I believe that it is always more correct then the undeterministic behavior of the previous implmenentation.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 24 Jun 2015 14:07:26 +0200
parents e4606eae8ea5
children 0a5239a1e46e
rev   line source
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
2 * Software engineering by Intevation GmbH
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
3 *
5994
af13ceeba52a Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5863
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
5994
af13ceeba52a Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5863
diff changeset
6 * documentation coming with Dive4Elements River for details.
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
7 */
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
8
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4613
diff changeset
9 package org.dive4elements.river.artifacts;
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
10
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4613
diff changeset
11 import org.dive4elements.artifactdatabase.state.DefaultFacet;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4613
diff changeset
12 import org.dive4elements.artifactdatabase.state.Facet;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4613
diff changeset
13 import org.dive4elements.artifactdatabase.state.FacetActivity;
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
14
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4613
diff changeset
15 import org.dive4elements.artifacts.Artifact;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4613
diff changeset
16 import org.dive4elements.artifacts.ArtifactFactory;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4613
diff changeset
17 import org.dive4elements.artifacts.CallMeta;
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
18
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4613
diff changeset
19 import org.dive4elements.river.artifacts.states.DefaultState;
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
20
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
21 import java.util.ArrayList;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
22 import java.util.List;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
23
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
24 import org.apache.log4j.Logger;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
25
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
26 import org.w3c.dom.Document;
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
27
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
28
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
29 /**
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
30 * Clone of an WINFOArtifact to expose exactly one waterlevel only.
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
31 * All Facets of the "longitudinal_section" output will be added to the
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
32 * "w_differences" output and filterFacets adjusted accordingly.
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
33 *
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
34 * @TODO Straighten inheritance-line (waterlevel-WINFO or vice versa).
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
35 */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
36 public class WaterlevelArtifact extends WINFOArtifact {
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
37
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7842
diff changeset
38 /** The log for this class. */
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7842
diff changeset
39 private static Logger log = Logger.getLogger(WaterlevelArtifact.class);
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
40
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
41 /** The name of the artifact. */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
42 public static final String ARTIFACT_NAME = "waterlevel";
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
43
3556
afc7bfb4800b Use the new infrastructure to figure out if a facet should
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3258
diff changeset
44 static {
afc7bfb4800b Use the new infrastructure to figure out if a facet should
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3258
diff changeset
45 // TODO: Move to configuration.
afc7bfb4800b Use the new infrastructure to figure out if a facet should
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3258
diff changeset
46 FacetActivity.Registry.getInstance()
afc7bfb4800b Use the new infrastructure to figure out if a facet should
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3258
diff changeset
47 .register(ARTIFACT_NAME, FacetActivity.INACTIVE);
afc7bfb4800b Use the new infrastructure to figure out if a facet should
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3258
diff changeset
48 }
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
49
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
50 /**
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
51 * The default constructor.
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
52 */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
53 public WaterlevelArtifact() {
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
54 }
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
55
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
56
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
57 /**
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
58 * Setup and restate longitudinal_section filterfacets to apply to the
3113
c04408ec4c9c Do not automatically load q-facets outside of w_differences.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3111
diff changeset
59 * w_differences output, too. Also, for w_differences, add respective q-
c04408ec4c9c Do not automatically load q-facets outside of w_differences.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3111
diff changeset
60 * filter facets.
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
61 */
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
62 public void setup(
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
63 String identifier,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
64 ArtifactFactory factory,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
65 Object context,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
66 CallMeta callMeta,
7842
8d5ca5175038 Updated signature of artifacts setup method; Removed unnecessary setup overrides.
Raimund Renkert <rrenkert@intevation.de>
parents: 5994
diff changeset
67 Document data,
8d5ca5175038 Updated signature of artifacts setup method; Removed unnecessary setup overrides.
Raimund Renkert <rrenkert@intevation.de>
parents: 5994
diff changeset
68 List<Class> loadFacets)
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
69 {
7842
8d5ca5175038 Updated signature of artifacts setup method; Removed unnecessary setup overrides.
Raimund Renkert <rrenkert@intevation.de>
parents: 5994
diff changeset
70 super.setup(identifier, factory, context, callMeta, data, loadFacets);
3113
c04408ec4c9c Do not automatically load q-facets outside of w_differences.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3111
diff changeset
71 // For w_differences, also allow q-facets.
1765
5d8b3880a553 Do not store association of states to facets, let artifacts keep facets in a pure list.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1709
diff changeset
72 if(filterFacets != null) {
3111
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
73 List<Facet> list = new ArrayList<Facet>();
4240
4774902b0389 Use static String from FacetTypes.ChartType instead of literal.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4234
diff changeset
74 List<Facet> wlist = filterFacets.get(ChartType.LS);
4613
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
75 if (wlist == null) {
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7842
diff changeset
76 log.warn("No matching filterfacets found");
4613
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
77 dumpFilterFacets();
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
78 } else {
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
79 for (Facet f: wlist) {
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
80 if (!f.getName().equals(LONGITUDINAL_Q)) {
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
81 DefaultFacet df = new DefaultFacet(f.getIndex(),
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
82 "longitudinal_section.q", "");
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
83 list.add(df);
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
84 }
3111
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
85 }
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
86
4613
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
87 list.addAll(wlist);
3111
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
88
4613
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
89 filterFacets.put("w_differences", list);
d440057b36f7 Fix differences/Waterlevelartifact.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4497
diff changeset
90 }
1765
5d8b3880a553 Do not store association of states to facets, let artifacts keep facets in a pure list.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1709
diff changeset
91 }
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
92 }
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
93
2017
e384d78ff78b Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1809
diff changeset
94
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
95 /**
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
96 * Clone important stuff of an WINFOArtifact.
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
97 * @param artifact the WINFOArtifact to clone stuff from.
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
98 */
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
99 protected void initialize(
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
100 Artifact artifact,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
101 Object context,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
102 CallMeta meta)
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
103 {
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
104 WINFOArtifact winfo = (WINFOArtifact) artifact;
3920
8483d190b2e7 Convert FKYSArtifact data member to a private variable
Bjoern Ricks <bjoern.ricks@intevation.de>
parents: 3556
diff changeset
105 setData(winfo.cloneData());
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7842
diff changeset
106 log.debug("Cloned data of winfo artifact.");
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
107 // Statically add Facets.
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
108 List<Facet> fs = new ArrayList<Facet>();
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
109 DefaultState state = (DefaultState) getCurrentState(context);
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
110 state.computeInit(this, hash(), context, meta, fs);
3076
5642a83420f2 FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2017
diff changeset
111 if (!fs.isEmpty()) {
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7842
diff changeset
112 log.debug("Facets to add in WaterlevelArtifact.initialize .");
4497
a2735a4bf75e Change facets member variable to private
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4240
diff changeset
113 addFacets(getCurrentStateId(), fs);
3076
5642a83420f2 FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2017
diff changeset
114 }
5642a83420f2 FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2017
diff changeset
115 else {
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7842
diff changeset
116 log.debug("No facets to add in WaterlevelArtifact.initialize ("
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
117 + state.getID() + ").");
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
118 }
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
119 }
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
120
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
121
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
122 /**
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
123 * Returns the name of the concrete artifact.
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
124 *
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
125 * @return the name of the concrete artifact.
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
126 */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
127 public String getName() {
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
128 return ARTIFACT_NAME;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
129 }
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
130 }
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
131 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org