Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/util/WstInfo.java @ 9362:392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
author | gernotbelger |
---|---|
date | Wed, 01 Aug 2018 18:40:57 +0200 |
parents | d9dbf0b74bc2 |
children |
rev | line source |
---|---|
8877 | 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 */ | |
8894 | 10 package org.dive4elements.river.artifacts.sinfo.util; |
8877 | 11 |
8884 | 12 import java.io.Serializable; |
13 | |
8877 | 14 /** |
15 * @author Gernot Belger | |
16 */ | |
8894 | 17 public final class WstInfo implements Serializable { |
8884 | 18 |
19 private static final long serialVersionUID = 1L; | |
8877 | 20 |
21 private final String label; | |
8884 | 22 |
8877 | 23 private final int year; |
8884 | 24 |
8879 | 25 private final String gauge; |
8877 | 26 |
9362
392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
gernotbelger
parents:
8915
diff
changeset
|
27 private boolean showRefGauges; |
392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
gernotbelger
parents:
8915
diff
changeset
|
28 |
392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
gernotbelger
parents:
8915
diff
changeset
|
29 public WstInfo(final String label, final int year, final String refGauge, boolean showRefGauges) { |
8877 | 30 this.label = label; |
31 this.year = year; | |
8915
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8894
diff
changeset
|
32 this.gauge = refGauge; |
9362
392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
gernotbelger
parents:
8915
diff
changeset
|
33 this.showRefGauges = showRefGauges; |
8877 | 34 } |
35 | |
36 public String getLabel() { | |
37 return this.label; | |
38 } | |
39 | |
40 public int getYear() { | |
41 return this.year; | |
42 } | |
8879 | 43 |
44 public String getGauge() { | |
45 return this.gauge; | |
46 } | |
9362
392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
gernotbelger
parents:
8915
diff
changeset
|
47 |
392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
gernotbelger
parents:
8915
diff
changeset
|
48 public boolean isShowRefGauges() { |
392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
gernotbelger
parents:
8915
diff
changeset
|
49 return this.showRefGauges; |
392745cccede
Fixed: waterlevels from database should not get the "Bezugspegel" column in the result output.
gernotbelger
parents:
8915
diff
changeset
|
50 } |
8877 | 51 } |