Mercurial > dive4elements > river
changeset 4466:4d856f11e527
FlowVelocityState: Create new discharge facet.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 09 Nov 2012 12:08:15 +0100 |
parents | ffed8687e2b1 |
children | 10e7bd292c47 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FlowVelocityState.java |
diffstat | 1 files changed, 21 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FlowVelocityState.java Fri Nov 09 12:07:14 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FlowVelocityState.java Fri Nov 09 12:08:15 2012 +0100 @@ -20,11 +20,11 @@ import de.intevation.flys.artifacts.resources.Resources; +/* State in which flow velocities can/will be calculated. */ public class FlowVelocityState extends DefaultState implements FacetTypes { private static Logger logger = Logger.getLogger(FlowVelocityState.class); - public static final String I18N_MAINCHANNEL_FACET = "facet.flow_velocity.mainchannel"; @@ -34,6 +34,9 @@ public static final String I18N_TAU_FACET = "facet.flow_velocity.tauchannel"; + public static final String I18N_DISCHARGE_FACET = + "facet.flow_velocity.discharge"; + @Override public Object computeAdvance( @@ -94,6 +97,15 @@ hash )); + newFacets.add(new FlowVelocityFacet( + idx, + FLOW_VELOCITY_DISCHARGE, + buildDischargeName(artifact, context, d), + ComputeType.ADVANCE, + id, + hash + )); + idx++; } @@ -148,6 +160,14 @@ } + protected String buildDischargeName( + FLYSArtifact flys, + CallContext cc, + FlowVelocityData data + ) { + return buildFacetName(flys, cc, data, I18N_DISCHARGE_FACET); + } + protected String buildTauName( FLYSArtifact flys, CallContext cc,