comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthState.java @ 9617:1d4262a68f1f

#12 Minuend/Subtrahend + MergeConflict #19 CollisionCalculation
author dnt_bjoernsen <d.tironi@bjoernsen.de>
date Thu, 10 Oct 2019 15:29:02 +0200
parents a4121ec450d6
children
comparison
equal deleted inserted replaced
9616:cedcee24a21a 9617:1d4262a68f1f
19 import org.dive4elements.river.artifacts.model.DataFacet; 19 import org.dive4elements.river.artifacts.model.DataFacet;
20 import org.dive4elements.river.artifacts.model.EmptyFacet; 20 import org.dive4elements.river.artifacts.model.EmptyFacet;
21 import org.dive4elements.river.artifacts.model.FacetTypes; 21 import org.dive4elements.river.artifacts.model.FacetTypes;
22 import org.dive4elements.river.artifacts.model.ReportFacet; 22 import org.dive4elements.river.artifacts.model.ReportFacet;
23 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; 23 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact;
24 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthDischargeProcessor;
24 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthProcessor; 25 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthProcessor;
26 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthWaterlevelProcessor;
25 import org.dive4elements.river.artifacts.sinfo.common.TkhProcessor; 27 import org.dive4elements.river.artifacts.sinfo.common.TkhProcessor;
26 import org.dive4elements.river.artifacts.states.DefaultState; 28 import org.dive4elements.river.artifacts.states.DefaultState;
27 29
28 /** State in which a waterlevel has been calculated. */ 30 /** State in which a waterlevel has been calculated. */
29 public class FlowDepthState extends DefaultState { 31 public class FlowDepthState extends DefaultState {
79 final List<FlowDepthCalculationResult> resultList = results.getResults(); 81 final List<FlowDepthCalculationResult> resultList = results.getResults();
80 for (int index = 0; index < resultList.size(); index++) { 82 for (int index = 0; index < resultList.size(); index++) {
81 83
82 final FlowDepthCalculationResult result = resultList.get(index); 84 final FlowDepthCalculationResult result = resultList.get(index);
83 85
86 /* Discharge */
87 facets.add(FlowDepthDischargeProcessor.createFlowDepthDischargeFacet(context, hash, this.id, result, index, result.getWstLabel()));
88 /* Result Type Wasserspiegellage, Mittl. Sohlhöhe */
89 final String unit = results.getRiver().getWstUnit();
90 facets.add(FlowDepthWaterlevelProcessor.createFlowDepthWaterlevelFacet(context, hash, this.id, result, index, unit, result.getWstLabel()));
91 facets.add(FlowDepthWaterlevelProcessor.createFlowDepthMeanBedheightFacet(context, hash, this.id, result, index, unit, result.getSoundingLabel()));
84 /* filtered (zoom dependent mean) flow depth */ 92 /* filtered (zoom dependent mean) flow depth */
85 facets.add(FlowDepthProcessor.createFlowDepthFilteredFacet(context, hash, this.id, result, index)); 93 facets.add(FlowDepthProcessor.createFlowDepthFilteredFacet(context, hash, this.id, result, index));
86 facets.add(FlowDepthProcessor.createFlowDepthRawFacet(context, hash, this.id, result, index)); 94 facets.add(FlowDepthProcessor.createFlowDepthRawFacet(context, hash, this.id, result, index));
87 95
88 if (results.isUseTkh()) { 96 if (results.isUseTkh()) {

http://dive4elements.wald.intevation.org