Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java @ 9585:aa6ee96071b7
Punkt 6.2.1 Sprünge auf vollen HM
author | gernotbelger |
---|---|
date | Wed, 09 Jan 2019 18:07:51 +0100 |
parents | 10530f1d7dd5 |
children | f8308db94634 |
comparison
equal
deleted
inserted
replaced
9584:1a7cfeb1ff89 | 9585:aa6ee96071b7 |
---|---|
51 | 51 |
52 return row.getValue(SInfoResultType.riverside) == this.riverside; | 52 return row.getValue(SInfoResultType.riverside) == this.riverside; |
53 } | 53 } |
54 } | 54 } |
55 | 55 |
56 private final static class HasInfrastructurePredicate implements Predicate { | |
57 | |
58 @Override | |
59 public boolean evaluate(final Object object) { | |
60 final ResultRow row = (ResultRow) object; | |
61 | |
62 return row.getValue(SInfoResultType.riverside) != null; | |
63 } | |
64 } | |
65 | |
56 private static final long serialVersionUID = 1L; | 66 private static final long serialVersionUID = 1L; |
57 | 67 |
58 private final boolean isUseWspl; | 68 private final boolean isUseWspl; |
59 | 69 |
60 private final String[] waterlevelLabels; | 70 private final String[] waterlevelLabels; |
187 | 197 |
188 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()])); | 198 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()])); |
189 } | 199 } |
190 | 200 |
191 public List<Double> getValidDurationChartKilometers() { | 201 public List<Double> getValidDurationChartKilometers() { |
192 return getValues(GeneralResultType.station); | 202 |
203 // Wunsch BfG (Testung MS3): nur stationen mit infrastruktur | |
204 final Predicate filter = new HasInfrastructurePredicate(); | |
205 return getValues(GeneralResultType.station, filter); | |
193 } | 206 } |
194 | 207 |
195 @Override | 208 @Override |
196 protected String[] formatCSVRow(final ExportContextCSV exportContextCSV, final ResultRow row) { | 209 protected String[] formatCSVRow(final ExportContextCSV exportContextCSV, final ResultRow row) { |
197 | 210 |