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 */ |
|
10 package org.dive4elements.river.artifacts.sinfo.flowdepth; |
|
11 |
|
12 import org.dive4elements.river.model.BedHeight; |
|
13 |
|
14 /** |
|
15 * Basic infos about a {@link BedHeight}. |
|
16 * |
|
17 * @author Gernot Belger |
|
18 */ |
|
19 final class BedHeightInfo { |
|
20 |
|
21 private final Integer year; |
|
22 |
|
23 private final String description; |
|
24 |
|
25 private final String type; |
|
26 |
8882
|
27 private final String evaluationBy; |
|
28 |
8877
|
29 private final String locationSystem; |
|
30 |
8879
|
31 private final String curElevationModelUnit; |
8877
|
32 |
8879
|
33 private final String oldElevationModelUnit; |
8877
|
34 |
8882
|
35 |
8877
|
36 public static BedHeightInfo from(final BedHeight bedHeight) { |
|
37 return new BedHeightInfo(bedHeight); |
|
38 } |
|
39 |
|
40 private BedHeightInfo(final BedHeight bedHeight) { |
|
41 this.year = bedHeight.getYear(); |
|
42 this.description = bedHeight.getDescription(); |
|
43 this.type = bedHeight.getType().getName(); |
8882
|
44 this.evaluationBy = bedHeight.getEvaluationBy(); |
8877
|
45 this.locationSystem = bedHeight.getLocationSystem().getName(); |
8879
|
46 this.curElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); |
|
47 this.oldElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); |
8877
|
48 } |
|
49 |
|
50 public Integer getYear() { |
|
51 return this.year; |
|
52 } |
|
53 |
|
54 public String getDescription() { |
|
55 return this.description; |
|
56 } |
|
57 |
|
58 public String getType() { |
|
59 return this.type; |
|
60 } |
|
61 |
8882
|
62 public String getEvaluationBy() { |
|
63 return this.evaluationBy; |
|
64 } |
|
65 |
8877
|
66 public String getLocationSystem() { |
|
67 return this.locationSystem; |
|
68 } |
|
69 |
8879
|
70 public String getCurElevationModelUnit() { |
|
71 return this.curElevationModelUnit; |
8877
|
72 } |
|
73 |
8879
|
74 public String getOldElevationModelUnit() { |
|
75 return this.oldElevationModelUnit; |
8877
|
76 } |
|
77 } |