Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java Wed Nov 02 11:15:00 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java Wed Nov 02 11:21:57 2011 +0000 @@ -139,9 +139,15 @@ /** * Called via setup. + * + * @param artifact The master-artifact. */ @Override - protected void initialize(Artifact artifact, Object context, CallMeta meta) { + protected void initialize( + Artifact artifact, + Object context, + CallMeta meta) + { logger.debug("StaticWKmsArtifact.initialize"); WINFOArtifact winfo = (WINFOArtifact) artifact; // TODO: The river is of no interest, so far. @@ -190,10 +196,9 @@ */ @Override protected State getState(Object context, String stateID) { - if (state != null) - return state; - else - return spawnState(); + return (state != null) + ? state + : spawnState(); } @@ -221,9 +226,13 @@ * * @return Always 0. Static Data will enter plots inactive. */ - public int getInitialFacetActivity(String facetName, int index) { + @Override + public int getInitialFacetActivity( + String outputName, + String facetName, + int index) + { return 0; } - } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :