Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxState.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.states.DefaultState; | 27 import org.dive4elements.river.artifacts.states.DefaultState; |
26 | 28 |
27 /** State in which a waterlevel has been calculated. */ | 29 /** State in which a waterlevel has been calculated. */ |
28 public class FlowDepthMinMaxState extends DefaultState { | 30 public class FlowDepthMinMaxState extends DefaultState { |
29 | 31 |
79 final List<FlowDepthMinMaxCalculationResult> resultList = results.getResults(); | 81 final List<FlowDepthMinMaxCalculationResult> 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 FlowDepthMinMaxCalculationResult result = resultList.get(index); | 84 final FlowDepthMinMaxCalculationResult result = resultList.get(index); |
83 | 85 |
86 final String unit = results.getRiver().getWstUnit(); | |
87 | |
88 final String wstLabel = result.getWstLabel(); | |
89 facets.add(FlowDepthWaterlevelProcessor.createFlowDepthMinBedheightFacet(context, hash, this.id, result, index, unit, result.getSoundingLabel())); | |
90 facets.add(FlowDepthWaterlevelProcessor.createFlowDepthMaxBedheightFacet(context, hash, this.id, result, index, unit, result.getSoundingLabel())); | |
91 | |
92 facets.add(FlowDepthWaterlevelProcessor.createFlowDepthWaterlevelFacet(context, hash, this.id, result, index, unit, wstLabel)); | |
93 /* Discharge */ | |
94 facets.add(FlowDepthDischargeProcessor.createFlowDepthDischargeFacet(context, hash, this.id, result, index, wstLabel)); | |
84 /* filtered (zoom dependent mean) flow depth */ | 95 /* filtered (zoom dependent mean) flow depth */ |
85 facets.add(FlowDepthProcessor.createFlowDepthMinFilteredFacet(context, hash, this.id, result, index)); | 96 facets.add(FlowDepthProcessor.createFlowDepthMinFilteredFacet(context, hash, this.id, result, index)); |
86 facets.add(FlowDepthProcessor.createFlowDepthMinRawFacet(context, hash, this.id, result, index)); | 97 facets.add(FlowDepthProcessor.createFlowDepthMinRawFacet(context, hash, this.id, result, index)); |
87 facets.add(FlowDepthProcessor.createFlowDepthMaxFilteredFacet(context, hash, this.id, result, index)); | 98 facets.add(FlowDepthProcessor.createFlowDepthMaxFilteredFacet(context, hash, this.id, result, index)); |
88 facets.add(FlowDepthProcessor.createFlowDepthMaxRawFacet(context, hash, this.id, result, index)); | 99 facets.add(FlowDepthProcessor.createFlowDepthMaxRawFacet(context, hash, this.id, result, index)); |