Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/BedHeightInfo.java @ 8882:f762fadc5313
Further work on SINFO-FlowDepth
author | gernotbelger |
---|---|
date | Fri, 09 Feb 2018 16:11:47 +0100 |
parents | 64ca63f79f6f |
children | 7a8c12706834 |
comparison
equal
deleted
inserted
replaced
8881:6b93a2498e06 | 8882:f762fadc5313 |
---|---|
22 | 22 |
23 private final String description; | 23 private final String description; |
24 | 24 |
25 private final String type; | 25 private final String type; |
26 | 26 |
27 private final String evaluationBy; | |
28 | |
27 private final String locationSystem; | 29 private final String locationSystem; |
28 | 30 |
29 private final String curElevationModelUnit; | 31 private final String curElevationModelUnit; |
30 | 32 |
31 private final String oldElevationModelUnit; | 33 private final String oldElevationModelUnit; |
32 | 34 |
35 | |
33 public static BedHeightInfo from(final BedHeight bedHeight) { | 36 public static BedHeightInfo from(final BedHeight bedHeight) { |
34 return new BedHeightInfo(bedHeight); | 37 return new BedHeightInfo(bedHeight); |
35 } | 38 } |
36 | 39 |
37 private BedHeightInfo(final BedHeight bedHeight) { | 40 private BedHeightInfo(final BedHeight bedHeight) { |
38 | |
39 this.year = bedHeight.getYear(); | 41 this.year = bedHeight.getYear(); |
40 | |
41 // private String evaluationBy; | |
42 this.description = bedHeight.getDescription(); | 42 this.description = bedHeight.getDescription(); |
43 | |
44 this.type = bedHeight.getType().getName(); | 43 this.type = bedHeight.getType().getName(); |
45 | 44 this.evaluationBy = bedHeight.getEvaluationBy(); |
46 this.locationSystem = bedHeight.getLocationSystem().getName(); | 45 this.locationSystem = bedHeight.getLocationSystem().getName(); |
47 | |
48 this.curElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); | 46 this.curElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); |
49 this.oldElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); | 47 this.oldElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); |
50 } | 48 } |
51 | 49 |
52 public Integer getYear() { | 50 public Integer getYear() { |
59 | 57 |
60 public String getType() { | 58 public String getType() { |
61 return this.type; | 59 return this.type; |
62 } | 60 } |
63 | 61 |
62 public String getEvaluationBy() { | |
63 return this.evaluationBy; | |
64 } | |
65 | |
64 public String getLocationSystem() { | 66 public String getLocationSystem() { |
65 return this.locationSystem; | 67 return this.locationSystem; |
66 } | 68 } |
67 | 69 |
68 public String getCurElevationModelUnit() { | 70 public String getCurElevationModelUnit() { |