annotate flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java @ 3468:f37e7e8907cb

merged flys-artifacts/2.8.1
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:39 +0200
parents 3c006a53e551
children afc7bfb4800b
rev   line source
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.artifacts;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
2
3111
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
3 import de.intevation.artifactdatabase.state.DefaultFacet;
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
4 import de.intevation.artifactdatabase.state.Facet;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
5
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
6 import de.intevation.artifacts.Artifact;
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
7 import de.intevation.artifacts.ArtifactFactory;
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
8 import de.intevation.artifacts.CallMeta;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
9
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
10 import de.intevation.flys.artifacts.states.DefaultState;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
11
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
12 import java.util.ArrayList;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
13 import java.util.List;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
14
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
15 import org.apache.log4j.Logger;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
16
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
17 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
18
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
19
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
20 /**
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
21 * 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
22 * 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
23 * "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
24 *
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
25 * @TODO Straighten inheritance-line (waterlevel-WINFO or vice versa).
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
26 */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
27 public class WaterlevelArtifact extends WINFOArtifact {
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 /** The logger for this class. */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
30 private static Logger logger = Logger.getLogger(WaterlevelArtifact.class);
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
31
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
32 /** The name of the artifact. */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
33 public static final String ARTIFACT_NAME = "waterlevel";
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
34
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 /**
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
37 * The default constructor.
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
38 */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
39 public WaterlevelArtifact() {
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
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
42
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
43 /**
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
44 * 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
45 * 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
46 * filter facets.
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
47 */
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
48 public void setup(
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
49 String identifier,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
50 ArtifactFactory factory,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
51 Object context,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
52 CallMeta callMeta,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
53 Document data)
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
54 {
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
55 super.setup(identifier, factory, context, callMeta, data);
3113
c04408ec4c9c Do not automatically load q-facets outside of w_differences.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3111
diff changeset
56 // 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
57 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
58 List<Facet> list = new ArrayList<Facet>();
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
59 List<Facet> wlist = filterFacets.get("longitudinal_section");
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
60 for (Facet f: wlist) {
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
61 if (!f.getName().equals("longitudinal_section.q")) {
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
62 DefaultFacet df = new DefaultFacet(f.getIndex(),
3152
368d1837ce5d Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3113
diff changeset
63 "longitudinal_section.q", "");
3113
c04408ec4c9c Do not automatically load q-facets outside of w_differences.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3111
diff changeset
64 list.add(df);
3111
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
65 }
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
66 }
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
67
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
68 list.addAll(wlist);
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
69
a5fb0a2dfe2f Load q-type facets with w-facets for differences' base data.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3076
diff changeset
70 filterFacets.put("w_differences", list);
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
71 }
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
72 }
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
73
2017
e384d78ff78b Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1809
diff changeset
74
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
75 /**
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
76 * 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
77 * @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
78 */
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
79 protected void initialize(
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
80 Artifact artifact,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
81 Object context,
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
82 CallMeta meta)
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
83 {
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
84 WINFOArtifact winfo = (WINFOArtifact) artifact;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
85 this.data = winfo.cloneData();
3258
3c006a53e551 Replaced tabs with four spaces each.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3152
diff changeset
86 logger.debug("Cloned data of winfo artifact.");
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
87 // Statically add Facets.
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
88 List<Facet> fs = new ArrayList<Facet>();
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
89 DefaultState state = (DefaultState) getCurrentState(context);
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
90 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
91 if (!fs.isEmpty()) {
5642a83420f2 FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2017
diff changeset
92 logger.debug("Facets to add in WaterlevelArtifact.initialize .");
5642a83420f2 FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2017
diff changeset
93 facets.put(getCurrentStateId(), fs);
5642a83420f2 FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2017
diff changeset
94 }
5642a83420f2 FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2017
diff changeset
95 else {
1703
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
96 logger.debug("No facets to add in WaterlevelArtifact.initialize ("
71d369ab789d Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1629
diff changeset
97 + state.getID() + ").");
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
98 }
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
99 }
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
100
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
101
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
102 /**
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
103 * Returns the name of the concrete artifact.
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
104 *
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
105 * @return the name of the concrete artifact.
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
106 */
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
107 public String getName() {
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
108 return ARTIFACT_NAME;
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
109 }
1709
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
110
2017
e384d78ff78b Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1809
diff changeset
111
1709
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
112 /**
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
113 * Determines Facets initial disposition regarding activity (think of
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
114 * selection in Client ThemeList GUI).
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
115 * WaterlevelArtifact Facets should come to live "inactive" (always
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
116 * return 0).
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
117 *
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
118 * @param facetName name of the facet.
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
119 * @param index index of the facet.
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
120 *
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
121 * @return Always 0 to have Facets initial predisposition to "inactive".
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
122 */
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
123 @Override
1809
f6a190f6aaff Give outputname to artifacts getInitialFacetActivity, generate second pair of MainvalueFacets for discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1771
diff changeset
124 public int getInitialFacetActivity(
f6a190f6aaff Give outputname to artifacts getInitialFacetActivity, generate second pair of MainvalueFacets for discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1771
diff changeset
125 String outputName,
f6a190f6aaff Give outputname to artifacts getInitialFacetActivity, generate second pair of MainvalueFacets for discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1771
diff changeset
126 String facetName,
f6a190f6aaff Give outputname to artifacts getInitialFacetActivity, generate second pair of MainvalueFacets for discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1771
diff changeset
127 int index)
f6a190f6aaff Give outputname to artifacts getInitialFacetActivity, generate second pair of MainvalueFacets for discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1771
diff changeset
128 {
1709
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
129 return 0;
f643ea084213 Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1708
diff changeset
130 }
1629
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
131 }
4aec853a2f85 Added WaterlevelArtifact and respective infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
132 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org