9145
|
1 /* Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
|
2 * Software engineering by |
|
3 * Björnsen Beratende Ingenieure GmbH |
|
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
|
5 * |
|
6 * This file is Free Software under the GNU AGPL (>=v3) |
|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
|
8 * documentation coming with Dive4Elements River for details. |
|
9 */ |
|
10 package org.dive4elements.river.artifacts.sinfo.flood_duration; |
|
11 |
|
12 import java.util.Collection; |
|
13 |
|
14 import org.dive4elements.river.artifacts.common.ResultRow; |
|
15 import org.dive4elements.river.artifacts.sinfo.common.AbstractSInfoCalculationResult; |
|
16 import org.dive4elements.river.artifacts.sinfo.util.WstInfo; |
|
17 |
|
18 /** |
|
19 * Contains the results of a {@link FloodDurationCalculation}. |
|
20 * |
|
21 * @author Gernot Belger |
|
22 */ |
|
23 final class FloodDurationCalculationResult extends AbstractSInfoCalculationResult { |
|
24 |
|
25 private static final long serialVersionUID = 1L; |
|
26 private final int waterlevelCount; |
|
27 |
|
28 public FloodDurationCalculationResult(final String label, final WstInfo wstInfo, final Collection<ResultRow> rows, final int waterlevelCount) { |
|
29 super(label, wstInfo, rows); |
|
30 this.waterlevelCount = waterlevelCount; |
|
31 |
|
32 } |
|
33 |
|
34 public int getWaterlevelCount() { |
|
35 return this.waterlevelCount; |
|
36 } |
|
37 |
|
38 } |