Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/GaugeDischargeArtifact.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 | 95fd15ece1ef |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
189 * so that a specific discharge table can be selected */ | 189 * so that a specific discharge table can be selected */ |
190 int tableId = 0; | 190 int tableId = 0; |
191 try { | 191 try { |
192 tableId = Integer.parseInt(ids[1]); | 192 tableId = Integer.parseInt(ids[1]); |
193 } catch (NumberFormatException e) { | 193 } catch (NumberFormatException e) { |
194 log.error("Discharge tables ids string is wrong." + | 194 log.error("Discharge tables ids string is wrong. " |
195 " Fromat is <gauge_name>;<discharge_table_id>;<facet_desc>" + | 195 + "Format is " |
196 " Fix your Datacage!"); | 196 + "<gauge_name>;<discharge_table_id>;<facet_desc>" |
197 + " Fix your Datacage!"); | |
197 // Let's rather break down completly then show the wrong data. | 198 // Let's rather break down completly then show the wrong data. |
198 return null; | 199 return null; |
199 } | 200 } |
200 DischargeTable table = DischargeTable.getDischargeTableById(tableId); | 201 DischargeTable table = DischargeTable.getDischargeTableById( |
202 tableId); | |
201 map = new HashMap<String, double [][]>(); | 203 map = new HashMap<String, double [][]>(); |
202 map.put(getGaugeName(), DischargeTables.loadDischargeTableValues(table)); | 204 map.put(getGaugeName(), DischargeTables.loadDischargeTableValues( |
205 table)); | |
203 } else { | 206 } else { |
204 DischargeTables dt = new DischargeTables(river.getName(), getGaugeName()); | 207 DischargeTables dt = new DischargeTables( |
208 river.getName(), getGaugeName()); | |
205 map = dt.getValues(); | 209 map = dt.getValues(); |
206 } | 210 } |
207 | 211 |
208 ArrayList<WQKms> res = new ArrayList<WQKms>(); | 212 ArrayList<WQKms> res = new ArrayList<WQKms>(); |
209 | 213 |