comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java @ 1809:f6a190f6aaff

Give outputname to artifacts getInitialFacetActivity, generate second pair of MainvalueFacets for discharge curves. flys-artifacts/trunk@3138 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 02 Nov 2011 11:21:57 +0000
parents f3be8fa1ec62
children a97764363ba2
comparison
equal deleted inserted replaced
1808:36de4e32631c 1809:f6a190f6aaff
137 } 137 }
138 138
139 139
140 /** 140 /**
141 * Called via setup. 141 * Called via setup.
142 */ 142 *
143 @Override 143 * @param artifact The master-artifact.
144 protected void initialize(Artifact artifact, Object context, CallMeta meta) { 144 */
145 @Override
146 protected void initialize(
147 Artifact artifact,
148 Object context,
149 CallMeta meta)
150 {
145 logger.debug("StaticWKmsArtifact.initialize"); 151 logger.debug("StaticWKmsArtifact.initialize");
146 WINFOArtifact winfo = (WINFOArtifact) artifact; 152 WINFOArtifact winfo = (WINFOArtifact) artifact;
147 // TODO: The river is of no interest, so far. 153 // TODO: The river is of no interest, so far.
148 addData("river", winfo.getData("river")); 154 addData("river", winfo.getData("river"));
149 } 155 }
188 * @param stateID ignored. 194 * @param stateID ignored.
189 * @return the state. 195 * @return the state.
190 */ 196 */
191 @Override 197 @Override
192 protected State getState(Object context, String stateID) { 198 protected State getState(Object context, String stateID) {
193 if (state != null) 199 return (state != null)
194 return state; 200 ? state
195 else 201 : spawnState();
196 return spawnState();
197 } 202 }
198 203
199 204
200 /** 205 /**
201 * Get WKms from factory. 206 * Get WKms from factory.
219 * @param facetName name of the facet. 224 * @param facetName name of the facet.
220 * @param index index of the facet. 225 * @param index index of the facet.
221 * 226 *
222 * @return Always 0. Static Data will enter plots inactive. 227 * @return Always 0. Static Data will enter plots inactive.
223 */ 228 */
224 public int getInitialFacetActivity(String facetName, int index) { 229 @Override
230 public int getInitialFacetActivity(
231 String outputName,
232 String facetName,
233 int index)
234 {
225 return 0; 235 return 0;
226 } 236 }
227
228 } 237 }
229 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : 238 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org