Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/predefinedflowdepth/PredefinedFlowDepthColumnAccess.java @ 9070:611a523fc42f
VegetationZoneAccessHelper, VegetationTablePanels verbessert
author | gernotbelger |
---|---|
date | Tue, 15 May 2018 18:04:36 +0200 |
parents | c16e90a0baf7 |
children | 189cc8ededbd |
comparison
equal
deleted
inserted
replaced
9069:1ffd38826175 | 9070:611a523fc42f |
---|---|
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 | 10 |
11 package org.dive4elements.river.artifacts.sinfo.predefinedflowdepth; | 11 package org.dive4elements.river.artifacts.sinfo.predefinedflowdepth; |
12 | 12 |
13 import org.apache.commons.lang.math.DoubleRange; | |
14 import org.dive4elements.river.artifacts.D4EArtifact; | 13 import org.dive4elements.river.artifacts.D4EArtifact; |
15 import org.dive4elements.river.artifacts.access.RangeAccess; | 14 import org.dive4elements.river.artifacts.access.RangeAccess; |
16 | 15 |
17 /** | 16 /** |
18 * Access to the database loaded flow depth column artifact data | 17 * Access to the database loaded flow depth column artifact data |
27 | 26 |
28 private Integer seriesId; | 27 private Integer seriesId; |
29 | 28 |
30 private String name; | 29 private String name; |
31 | 30 |
32 | |
33 /***** CONSTRUCTORS *****/ | 31 /***** CONSTRUCTORS *****/ |
34 | 32 |
35 public PredefinedFlowDepthColumnAccess(final D4EArtifact artifact) { | 33 public PredefinedFlowDepthColumnAccess(final D4EArtifact artifact) { |
36 super(artifact); | 34 super(artifact); |
37 } | 35 } |
38 | 36 |
39 | |
40 /***** METHDOS *****/ | 37 /***** METHDOS *****/ |
41 | |
42 public DoubleRange getRange() { | |
43 final double from = getFrom(); | |
44 final double to = getTo(); | |
45 return new DoubleRange(from, to); | |
46 } | |
47 | 38 |
48 public Integer getSeriesId() { | 39 public Integer getSeriesId() { |
49 if (this.seriesId == null) { | 40 if (this.seriesId == null) { |
50 this.seriesId = getInteger("flowdepth_id"); | 41 this.seriesId = getInteger("flowdepth_id"); |
51 } | 42 } |