Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/util/BedHeightInfo.java @ 8942:11bf13cf0463
Minor changes to tkh calculation. Loading default bed heights form config file.
author | gernotbelger |
---|---|
date | Fri, 09 Mar 2018 18:47:06 +0100 |
parents | a66f2a7c4f84 |
children | 5d5d482da3e9 |
comparison
equal
deleted
inserted
replaced
8941:a9950a3a71e5 | 8942:11bf13cf0463 |
---|---|
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.sinfo.util; | 10 package org.dive4elements.river.artifacts.sinfo.util; |
11 | 11 |
12 import java.io.Serializable; | 12 import java.io.Serializable; |
13 import java.math.BigDecimal; | |
13 | 14 |
14 import org.dive4elements.river.model.BedHeight; | 15 import org.dive4elements.river.model.BedHeight; |
15 | 16 |
16 /** | 17 /** |
17 * Basic infos about a {@link BedHeight}. | 18 * Basic infos about a {@link BedHeight}. |
34 | 35 |
35 private final String curElevationModelUnit; | 36 private final String curElevationModelUnit; |
36 | 37 |
37 private final String oldElevationModelUnit; | 38 private final String oldElevationModelUnit; |
38 | 39 |
40 private final BigDecimal from; | |
41 | |
42 private final BigDecimal to; | |
39 | 43 |
40 public static BedHeightInfo from(final BedHeight bedHeight) { | 44 public static BedHeightInfo from(final BedHeight bedHeight) { |
41 return new BedHeightInfo(bedHeight); | 45 return new BedHeightInfo(bedHeight); |
42 } | 46 } |
43 | 47 |
47 this.type = bedHeight.getType().getName(); | 51 this.type = bedHeight.getType().getName(); |
48 this.evaluationBy = bedHeight.getEvaluationBy(); | 52 this.evaluationBy = bedHeight.getEvaluationBy(); |
49 this.locationSystem = bedHeight.getLocationSystem().getName(); | 53 this.locationSystem = bedHeight.getLocationSystem().getName(); |
50 this.curElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); | 54 this.curElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); |
51 this.oldElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); | 55 this.oldElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName(); |
56 | |
57 this.from = bedHeight.getRange().getA(); | |
58 this.to = bedHeight.getRange().getB(); | |
52 } | 59 } |
53 | 60 |
54 public Integer getYear() { | 61 public Integer getYear() { |
55 return this.year; | 62 return this.year; |
56 } | 63 } |
76 } | 83 } |
77 | 84 |
78 public String getOldElevationModelUnit() { | 85 public String getOldElevationModelUnit() { |
79 return this.oldElevationModelUnit; | 86 return this.oldElevationModelUnit; |
80 } | 87 } |
88 | |
89 public BigDecimal getFrom() { | |
90 return this.from; | |
91 } | |
92 | |
93 public BigDecimal getTo() { | |
94 return this.to; | |
95 } | |
81 } | 96 } |