Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthdev/FlowDepthDevelopmentState.java @ 8956:ee5ce13016ed
Work on SINFO-Fließtiefenentwicklung
author | gernotbelger |
---|---|
date | Tue, 20 Mar 2018 13:30:07 +0100 |
parents | c40db8e8dcae |
children | b194fa64506a |
comparison
equal
deleted
inserted
replaced
8955:798d9dcbccdd | 8956:ee5ce13016ed |
---|---|
20 import org.dive4elements.river.artifacts.model.DataFacet; | 20 import org.dive4elements.river.artifacts.model.DataFacet; |
21 import org.dive4elements.river.artifacts.model.EmptyFacet; | 21 import org.dive4elements.river.artifacts.model.EmptyFacet; |
22 import org.dive4elements.river.artifacts.model.FacetTypes; | 22 import org.dive4elements.river.artifacts.model.FacetTypes; |
23 import org.dive4elements.river.artifacts.model.ReportFacet; | 23 import org.dive4elements.river.artifacts.model.ReportFacet; |
24 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; | 24 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; |
25 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthDevelopmentPerYearProcessor; | |
26 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthDevelopmentProcessor; | |
27 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthProcessor; | |
25 import org.dive4elements.river.artifacts.states.DefaultState; | 28 import org.dive4elements.river.artifacts.states.DefaultState; |
26 | 29 |
27 /** | 30 /** |
28 * @author Gernot Belger | 31 * @author Gernot Belger |
29 */ | 32 */ |
75 final FlowDepthDevelopmentCalculationResults results = (FlowDepthDevelopmentCalculationResults) res.getData(); | 78 final FlowDepthDevelopmentCalculationResults results = (FlowDepthDevelopmentCalculationResults) res.getData(); |
76 final FlowDepthDevelopmentCalculationResult result = results.getResult(); | 79 final FlowDepthDevelopmentCalculationResult result = results.getResult(); |
77 if (result == null) | 80 if (result == null) |
78 return res; | 81 return res; |
79 | 82 |
80 // /* add themes for chart, for each result */ | 83 /* add themes for chart, for each result */ |
81 // final List<FlowDepthCalculationResult> resultList = results.getResults(); | 84 final int index = 0; |
82 // for (int index = 0; index < resultList.size(); index++) { | 85 |
83 // | 86 // /* filtered (zoom dependent mean) flow depth development */ |
84 // final FlowDepthCalculationResult result = resultList.get(index); | 87 facets.add(FlowDepthDevelopmentProcessor.createFlowDepthDevelopmentFacet(context, hash, this.id, result, index)); |
85 // | 88 facets.add(FlowDepthDevelopmentProcessor.createWaterlevelDifferenceFacet(context, hash, this.id, result, index)); |
86 // /* filtered (zoom dependent mean) flow depth */ | 89 facets.add(FlowDepthDevelopmentProcessor.createBedHeightDifferenceFacet(context, hash, this.id, result, index)); |
87 // facets.add(FlowDepthProcessor.createFlowDepthFacet(context, hash, this.id, result, index)); | 90 |
88 // | 91 facets.add(FlowDepthDevelopmentPerYearProcessor.createFlowDepthDevelopmentFacet(context, hash, this.id, result, index)); |
89 // if (results.isUseTkh()) { | 92 |
90 // /* filtered (zoom dependent mean) flow depth including tkh */ | 93 facets.add(FlowDepthProcessor.createFlowDepthCurrentFacet(context, hash, this.id, result, index)); |
91 // facets.add(FlowDepthProcessor.createFlowDepthTkhFacet(context, hash, this.id, result, index)); | 94 facets.add(FlowDepthProcessor.createFlowDepthHistoricalFacet(context, hash, this.id, result, index)); |
92 // | |
93 // facets.add(TkhProcessor.createTkhFacet(context, hash, this.id, result, index)); | |
94 // } | |
95 // } | |
96 | 95 |
97 facets.add(new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id)); | 96 facets.add(new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id)); |
98 facets.add(new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id)); | 97 facets.add(new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id)); |
99 | 98 |
100 final Calculation report = res.getReport(); | 99 final Calculation report = res.getReport(); |