Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/BedHeightInfo.java @ 8877:9f7a285b0ee3
Some work on SINFO FlowDepth
author | gernotbelger |
---|---|
date | Thu, 08 Feb 2018 18:48:24 +0100 |
parents | |
children | 64ca63f79f6f |
comparison
equal
deleted
inserted
replaced
8876:23264d1a528f | 8877:9f7a285b0ee3 |
---|---|
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 | |
27 private final String locationSystem; | |
28 | |
29 private final String curElevationModelName; | |
30 | |
31 private final String oldElevationModelName; | |
32 | |
33 public static BedHeightInfo from(final BedHeight bedHeight) { | |
34 return new BedHeightInfo(bedHeight); | |
35 } | |
36 | |
37 private BedHeightInfo(final BedHeight bedHeight) { | |
38 | |
39 this.year = bedHeight.getYear(); | |
40 | |
41 // private String evaluationBy; | |
42 this.description = bedHeight.getDescription(); | |
43 | |
44 this.type = bedHeight.getType().getName(); | |
45 | |
46 this.locationSystem = bedHeight.getLocationSystem().getName(); | |
47 | |
48 this.curElevationModelName = bedHeight.getCurElevationModel().getName(); | |
49 this.oldElevationModelName = bedHeight.getCurElevationModel().getName(); | |
50 } | |
51 | |
52 public Integer getYear() { | |
53 return this.year; | |
54 } | |
55 | |
56 public String getDescription() { | |
57 return this.description; | |
58 } | |
59 | |
60 public String getType() { | |
61 return this.type; | |
62 } | |
63 | |
64 public String getLocationSystem() { | |
65 return this.locationSystem; | |
66 } | |
67 | |
68 public String getCurElevationModelName() { | |
69 return this.curElevationModelName; | |
70 } | |
71 | |
72 public String getOldElevationModelName() { | |
73 return this.oldElevationModelName; | |
74 } | |
75 } |