Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstState.java @ 9495:bb278c927b66
Datenkorb bezugswasserstände längsschnitte + minor fixes
author | gernotbelger |
---|---|
date | Tue, 25 Sep 2018 16:43:51 +0200 |
parents | ecadc9ed0ba0 |
children |
comparison
equal
deleted
inserted
replaced
9494:879c902c4a2d | 9495:bb278c927b66 |
---|---|
87 | 87 |
88 int facetIndex = 0; | 88 int facetIndex = 0; |
89 | 89 |
90 if (!resultList.isEmpty()) { | 90 if (!resultList.isEmpty()) { |
91 final BezugswstMainCalculationResult result = (BezugswstMainCalculationResult) resultList.get(0); | 91 final BezugswstMainCalculationResult result = (BezugswstMainCalculationResult) resultList.get(0); |
92 facets.add(BezugswstHeightProcessor.createChannelminFacet(context, hash, this.id, facetIndex++, 0)); | 92 |
93 facets.add(BezugswstHeightProcessor.createBedheightFacet(context, hash, this.id, facetIndex++, 0, result.getBedHeightLabel())); | 93 final boolean hasSounding = results.hasSounding(); |
94 | |
94 final String nameQ = result.getWstLabel(); | 95 final String nameQ = result.getWstLabel(); |
95 final String nameW = "W(" + nameQ + ")"; | 96 final String nameW = "W(" + nameQ + ")"; |
96 facets.add(new BezugswstFixationFacet(0, LONGITUDINAL_W, nameW, ComputeType.ADVANCE, hash, this.id)); | 97 facets.add(new BezugswstFixationFacet(0, LONGITUDINAL_W, nameW, ComputeType.ADVANCE, hash, this.id)); |
97 facets.add(new BezugswstFixationFacet(0, LONGITUDINAL_Q, nameQ, ComputeType.ADVANCE, hash, this.id)); | 98 facets.add(new BezugswstFixationFacet(0, LONGITUDINAL_Q, nameQ, ComputeType.ADVANCE, hash, this.id)); |
98 for (int i = BedHeightValueType.FIELD_FIRST_INDEX; i <= BedHeightValueType.FIELD_LAST_INDEX; i++) | |
99 facets.add(BezugswstHeightProcessor.createFieldBedheightFacet(context, hash, this.id, facetIndex++, 0, i)); | |
100 | 99 |
101 facets.add(BezugswstDepthProcessor.createFlowdepthFilteredFacet(context, hash, this.id, facetIndex++, 0, result.getBedHeightLabel())); | 100 if (hasSounding) { |
102 facets.add(BezugswstDepthProcessor.createChanneldepthFacet(context, hash, this.id, facetIndex++, 0)); | 101 facets.add(BezugswstHeightProcessor.createChannelminFacet(context, hash, this.id, facetIndex++, 0)); |
103 for (int i = BedHeightValueType.FIELD_FIRST_INDEX; i <= BedHeightValueType.FIELD_LAST_INDEX; i++) | 102 facets.add(BezugswstHeightProcessor.createBedheightFacet(context, hash, this.id, facetIndex++, 0, result.getBedHeightLabel())); |
104 facets.add(BezugswstDepthProcessor.createFieldDepthFacet(context, hash, this.id, facetIndex++, 0, i)); | 103 |
104 for (int i = BedHeightValueType.FIELD_FIRST_INDEX; i <= BedHeightValueType.FIELD_LAST_INDEX; i++) | |
105 facets.add(BezugswstHeightProcessor.createFieldBedheightFacet(context, hash, this.id, facetIndex++, 0, i)); | |
106 | |
107 facets.add(BezugswstDepthProcessor.createFlowdepthFilteredFacet(context, hash, this.id, facetIndex++, 0, result.getBedHeightLabel())); | |
108 facets.add(BezugswstDepthProcessor.createChanneldepthFacet(context, hash, this.id, facetIndex++, 0)); | |
109 for (int i = BedHeightValueType.FIELD_FIRST_INDEX; i <= BedHeightValueType.FIELD_LAST_INDEX; i++) | |
110 facets.add(BezugswstDepthProcessor.createFieldDepthFacet(context, hash, this.id, facetIndex++, 0, i)); | |
111 } | |
105 | 112 |
106 final Facet csv = new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id); | 113 final Facet csv = new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id); |
107 final Facet pdf = new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id); | 114 final Facet pdf = new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id); |
108 | 115 |
109 facets.add(csv); | 116 facets.add(csv); |