Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/GaugeDischargeState.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 7cb55659646d |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
68 TimeInterval validity = gauge.fetchMasterDischargeTable() | 68 TimeInterval validity = gauge.fetchMasterDischargeTable() |
69 .getTimeInterval(); | 69 .getTimeInterval(); |
70 Date stopTime = validity.getStopTime(); | 70 Date stopTime = validity.getStopTime(); |
71 String name = Resources.getMsg( | 71 String name = Resources.getMsg( |
72 meta, | 72 meta, |
73 "chart.discharge.curve.model" + (stopTime != null ? "" : ".nostop"), | 73 "chart.discharge.curve.model" |
74 + (stopTime != null ? "" : ".nostop"), | |
74 new Object[] {gauge.getName(), | 75 new Object[] {gauge.getName(), |
75 validity.getStartTime(), | 76 validity.getStartTime(), |
76 stopTime | 77 stopTime |
77 } | 78 } |
78 ); | 79 ); |
124 List<Facet> facets, | 125 List<Facet> facets, |
125 Object old | 126 Object old |
126 ) { | 127 ) { |
127 if (artifact instanceof GaugeDischargeArtifact) { | 128 if (artifact instanceof GaugeDischargeArtifact) { |
128 log.debug("GaugeDischargeState.computeAdvance()"); | 129 log.debug("GaugeDischargeState.computeAdvance()"); |
129 GaugeDischargeArtifact dischargeArtifact = (GaugeDischargeArtifact) artifact; | 130 GaugeDischargeArtifact dischargeArtifact = |
131 (GaugeDischargeArtifact)artifact; | |
130 | 132 |
131 CalculationResult res; | 133 CalculationResult res; |
132 | 134 |
133 | 135 |
134 if (old instanceof CalculationResult) { | 136 if (old instanceof CalculationResult) { |
139 } | 141 } |
140 | 142 |
141 WQKms[] wqkms = (WQKms[]) res.getData(); | 143 WQKms[] wqkms = (WQKms[]) res.getData(); |
142 | 144 |
143 if (wqkms != null && facets != null) { | 145 if (wqkms != null && facets != null) { |
144 log.debug("GaugeDischargeState.computeAdvance(): create facets"); | 146 log.debug( |
147 "GaugeDischargeState.computeAdvance(): create facets"); | |
145 | 148 |
146 GaugeDischargeFacet facet = new GaugeDischargeFacet( | 149 GaugeDischargeFacet facet = new GaugeDischargeFacet( |
147 0, | 150 0, |
148 DISCHARGE_CURVE, | 151 DISCHARGE_CURVE, |
149 createFacetName(dischargeArtifact, context.getMeta())); | 152 createFacetName(dischargeArtifact, context.getMeta())); |
154 facets.add(new ReportFacet()); | 157 facets.add(new ReportFacet()); |
155 } | 158 } |
156 } | 159 } |
157 else { | 160 else { |
158 if (wqkms == null) | 161 if (wqkms == null) |
159 log.debug("GaugeDischargeState.computeAdvance(): wqkms 0"); | 162 log.debug( |
163 "GaugeDischargeState.computeAdvance(): wqkms 0"); | |
160 else | 164 else |
161 log.debug("GaugeDischargeState.computeAdvance(): facets 0"); | 165 log.debug( |
166 "GaugeDischargeState.computeAdvance(): facets 0"); | |
162 } | 167 } |
163 | 168 |
164 return res; | 169 return res; |
165 } | 170 } |
166 else if (artifact instanceof ChartArtifact) { | 171 else if (artifact instanceof ChartArtifact) { |