Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/FlowDepthProcessor.java @ 8946:5d5d482da3e9
Implementing SINFO - FlowDepthMinMax calculation
author | gernotbelger |
---|---|
date | Tue, 13 Mar 2018 18:49:33 +0100 |
parents | a9950a3a71e5 |
children | a4f1ac81f26d |
comparison
equal
deleted
inserted
replaced
8945:4a6b6a3c279c | 8946:5d5d482da3e9 |
---|---|
16 import org.dive4elements.artifactdatabase.state.Facet; | 16 import org.dive4elements.artifactdatabase.state.Facet; |
17 import org.dive4elements.artifacts.CallContext; | 17 import org.dive4elements.artifacts.CallContext; |
18 import org.dive4elements.river.artifacts.resources.Resources; | 18 import org.dive4elements.river.artifacts.resources.Resources; |
19 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | 19 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; |
20 | 20 |
21 public final class FlowDepthProcessor extends AbstractSInfoLineProcessor { | 21 public final class FlowDepthProcessor extends AbstractSInfoLineProcessor<AbstractTkhCalculationResult<?>> { |
22 | 22 |
23 private static final String I18N_AXIS_LABEL = "sinfo.chart.flow_depth.section.yaxis.label"; | 23 private static final String I18N_AXIS_LABEL = "sinfo.chart.flow_depth.section.yaxis.label"; |
24 | 24 |
25 private static final String SINFO_CHART_FLOW_DEPTH_YAXIS_LABEL = "sinfo.chart.flow_depth.yaxis.label"; | 25 private static final String SINFO_CHART_FLOW_DEPTH_YAXIS_LABEL = "sinfo.chart.flow_depth.yaxis.label"; |
26 | 26 |
45 public FlowDepthProcessor() { | 45 public FlowDepthProcessor() { |
46 super(I18N_AXIS_LABEL, HANDLED_FACET_TYPES); | 46 super(I18N_AXIS_LABEL, HANDLED_FACET_TYPES); |
47 } | 47 } |
48 | 48 |
49 @Override | 49 @Override |
50 protected double[][] doGetPoints(final AbstractSInfoCalculationResult<?> data, final String facetName) { | 50 protected double[][] doGetPoints(final AbstractTkhCalculationResult<?> data, final String facetName) { |
51 | 51 |
52 if (FACET_FLOW_DEPTH_FILTERED.contentEquals(facetName)) | 52 if (FACET_FLOW_DEPTH_FILTERED.contentEquals(facetName)) |
53 return data.getFlowDepthPoints(); | 53 return data.getFlowDepthPoints(); |
54 | 54 |
55 if (FACET_FLOW_DEPTH_TKH_FILTERED.contentEquals(facetName)) | 55 if (FACET_FLOW_DEPTH_TKH_FILTERED.contentEquals(facetName)) |