comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java @ 9298:0b1a51b0c42e

Included the infrastructure-less stations in the S-Info flood duration long. sections, and the selected wspls in their w/q duration curves
author mschaefer
date Wed, 25 Jul 2018 11:33:48 +0200
parents 7100a555607c
children 740d65e4aa14
comparison
equal deleted inserted replaced
9297:7100a555607c 9298:0b1a51b0c42e
87 infrasOnlyRows.add(row); 87 infrasOnlyRows.add(row);
88 } 88 }
89 return Collections.unmodifiableCollection(infrasOnlyRows); 89 return Collections.unmodifiableCollection(infrasOnlyRows);
90 } 90 }
91 91
92 /**
93 * Collection of all result rows
94 */
95 public Collection<ResultRow> getAllRows() {
96
97 return super.getRows();
98 }
99
92 @Override 100 @Override
93 protected void writeCSVResultMetadata(final ExportContextCSV exportContextCSV) { 101 protected void writeCSVResultMetadata(final ExportContextCSV exportContextCSV) {
94 /* nothing to do, as we never have several results, everything is written into the general header */ 102 /* nothing to do, as we never have several results, everything is written into the general header */
95 } 103 }
96 104
234 /** 242 /**
235 * Gets a longitudinal section of W, Q, or flood duration of one of the waterlevels 243 * Gets a longitudinal section of W, Q, or flood duration of one of the waterlevels
236 */ 244 */
237 public final double[][] getMainValueDurationPoints(final ValueGetter valuegetter, final int dataIndex) { 245 public final double[][] getMainValueDurationPoints(final ValueGetter valuegetter, final int dataIndex) {
238 246
239 final Collection<ResultRow> rows = getRows(); 247 final Collection<ResultRow> rows = getAllRows();
240 248
241 final TDoubleArrayList xPoints = new TDoubleArrayList(rows.size()); 249 final TDoubleArrayList xPoints = new TDoubleArrayList(rows.size());
242 final TDoubleArrayList yPoints = new TDoubleArrayList(rows.size()); 250 final TDoubleArrayList yPoints = new TDoubleArrayList(rows.size());
243 251
244 for (final ResultRow row : rows) { 252 for (final ResultRow row : rows) {

http://dive4elements.wald.intevation.org