Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxAccess.java @ 9070:611a523fc42f
VegetationZoneAccessHelper, VegetationTablePanels verbessert
author | gernotbelger |
---|---|
date | Tue, 15 May 2018 18:04:36 +0200 |
parents | 0adc6d04de95 |
children |
comparison
equal
deleted
inserted
replaced
9069:1ffd38826175 | 9070:611a523fc42f |
---|---|
10 | 10 |
11 package org.dive4elements.river.artifacts.sinfo.flowdepthminmax; | 11 package org.dive4elements.river.artifacts.sinfo.flowdepthminmax; |
12 | 12 |
13 import java.util.Collection; | 13 import java.util.Collection; |
14 | 14 |
15 import org.apache.commons.lang.math.DoubleRange; | |
16 import org.dive4elements.river.artifacts.access.RangeAccess; | 15 import org.dive4elements.river.artifacts.access.RangeAccess; |
17 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; | 16 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; |
18 import org.dive4elements.river.artifacts.sinfo.SinfoCalcMode; | 17 import org.dive4elements.river.artifacts.sinfo.SinfoCalcMode; |
19 import org.dive4elements.river.artifacts.sinfo.flowdepth.WstSoundingIdPair; | 18 import org.dive4elements.river.artifacts.sinfo.flowdepth.WstSoundingIdPair; |
20 | 19 |
36 /* assert calculation mode */ | 35 /* assert calculation mode */ |
37 final SinfoCalcMode calculationMode = artifact.getCalculationMode(); | 36 final SinfoCalcMode calculationMode = artifact.getCalculationMode(); |
38 assert (calculationMode == SinfoCalcMode.sinfo_calc_flow_depth_minmax); | 37 assert (calculationMode == SinfoCalcMode.sinfo_calc_flow_depth_minmax); |
39 } | 38 } |
40 | 39 |
41 public DoubleRange getRange() { | |
42 final double from = getFrom(); | |
43 final double to = getTo(); | |
44 return new DoubleRange(from, to); | |
45 } | |
46 | |
47 public Collection<WstSoundingIdPair> getMinMaxPairs() { | 40 public Collection<WstSoundingIdPair> getMinMaxPairs() { |
48 final String diffids = getString(FIELD_DIFFIDS); | 41 final String diffids = getString(FIELD_DIFFIDS); |
49 return WstSoundingIdPair.parsePairs(diffids); | 42 return WstSoundingIdPair.parsePairs(diffids); |
50 } | 43 } |
51 } | 44 } |