comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/predefineddepthevol/PredefinedDepthEvolAccess.java @ 9070:611a523fc42f

VegetationZoneAccessHelper, VegetationTablePanels verbessert
author gernotbelger
date Tue, 15 May 2018 18:04:36 +0200
parents 384eee4b4135
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.predefineddepthevol; 11 package org.dive4elements.river.artifacts.sinfo.predefineddepthevol;
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 depth evolution artifact data 17 * Access to the database loaded depth evolution artifact data
25 24
26 private Integer id; 25 private Integer id;
27 26
28 private String name; 27 private String name;
29 28
30
31 /***** CONSTRUCTORS *****/ 29 /***** CONSTRUCTORS *****/
32 30
33 public PredefinedDepthEvolAccess(final D4EArtifact artifact) { 31 public PredefinedDepthEvolAccess(final D4EArtifact artifact) {
34 super(artifact); 32 super(artifact);
35 } 33 }
36 34
37
38 /***** METHDOS *****/ 35 /***** METHDOS *****/
39
40 public DoubleRange getRange() {
41 final double from = getFrom();
42 final double to = getTo();
43 return new DoubleRange(from, to);
44 }
45 36
46 public Integer getId() { 37 public Integer getId() {
47 if (this.id == null) { 38 if (this.id == null) {
48 this.id = getInteger("depthevol_id"); 39 this.id = getInteger("depthevol_id");
49 } 40 }

http://dive4elements.wald.intevation.org