Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/AbstractTkhCalculationResult.java @ 9585:aa6ee96071b7
Punkt 6.2.1 Sprünge auf vollen HM
author | gernotbelger |
---|---|
date | Wed, 09 Jan 2019 18:07:51 +0100 |
parents | 392745cccede |
children | 1d4262a68f1f |
comparison
equal
deleted
inserted
replaced
9584:1a7cfeb1ff89 | 9585:aa6ee96071b7 |
---|---|
10 package org.dive4elements.river.artifacts.sinfo.common; | 10 package org.dive4elements.river.artifacts.sinfo.common; |
11 | 11 |
12 import java.util.Collection; | 12 import java.util.Collection; |
13 import java.util.List; | 13 import java.util.List; |
14 | 14 |
15 import org.apache.commons.collections.PredicateUtils; | |
15 import org.dive4elements.river.artifacts.common.AbstractCalculationExportableResult; | 16 import org.dive4elements.river.artifacts.common.AbstractCalculationExportableResult; |
16 import org.dive4elements.river.artifacts.common.ResultRow; | 17 import org.dive4elements.river.artifacts.common.ResultRow; |
17 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.SoilKind; | 18 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.SoilKind; |
18 import org.dive4elements.river.artifacts.sinfo.util.WstInfo; | 19 import org.dive4elements.river.artifacts.sinfo.util.WstInfo; |
19 | 20 |
37 } | 38 } |
38 | 39 |
39 public final boolean hasTkh() { | 40 public final boolean hasTkh() { |
40 return this.hasTkh; | 41 return this.hasTkh; |
41 } | 42 } |
42 | 43 |
43 public boolean isShowRefGauges() { | 44 public boolean isShowRefGauges() { |
44 return this.wst.isShowRefGauges(); | 45 return this.wst.isShowRefGauges(); |
45 } | 46 } |
46 | 47 |
47 public final double[][] getTkhUpPoints() { | 48 public final double[][] getTkhUpPoints() { |
48 | 49 |
49 final double[][] points = getStationPoints(SInfoResultType.tkhup); | 50 final double[][] points = getStationPoints(SInfoResultType.tkhup); |
50 final List<SoilKind> kinds = getValues(SInfoResultType.soilkind); | 51 final List<SoilKind> kinds = getValues(SInfoResultType.soilkind, PredicateUtils.truePredicate()); |
51 | 52 |
52 final double[] xPoints = points[0]; | 53 final double[] xPoints = points[0]; |
53 final double[] yPoints = points[1]; | 54 final double[] yPoints = points[1]; |
54 | 55 |
55 return adjustTkhVisualization(xPoints, yPoints, kinds); | 56 return adjustTkhVisualization(xPoints, yPoints, kinds); |
56 } | 57 } |
57 | 58 |
58 public final double[][] getTkhDownPoints() { | 59 public final double[][] getTkhDownPoints() { |
59 | 60 |
60 final double[][] points = getStationPoints(SInfoResultType.tkhdown); | 61 final double[][] points = getStationPoints(SInfoResultType.tkhdown); |
61 final List<SoilKind> kinds = getValues(SInfoResultType.soilkind); | 62 final List<SoilKind> kinds = getValues(SInfoResultType.soilkind, PredicateUtils.truePredicate()); |
62 | 63 |
63 final double[] xPoints = points[0]; | 64 final double[] xPoints = points[0]; |
64 final double[] yPoints = points[1]; | 65 final double[] yPoints = points[1]; |
65 | 66 |
66 return adjustTkhVisualization(xPoints, yPoints, kinds); | 67 return adjustTkhVisualization(xPoints, yPoints, kinds); |