comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/SedimentLoadAccess.java @ 4826:a3dc382bc1ca

BedHeightAccess, FlowVelocityAccess, SedimentLoadAccess: Inherit from RangeAccess. Update callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 21 Jan 2013 17:26:08 +0100
parents de4832ffde2a
children
comparison
equal deleted inserted replaced
4825:f8217f1fef2e 4826:a3dc382bc1ca
2 2
3 import gnu.trove.TIntArrayList; 3 import gnu.trove.TIntArrayList;
4 4
5 import org.apache.log4j.Logger; 5 import org.apache.log4j.Logger;
6 6
7 import de.intevation.artifacts.CallContext;
8
7 import de.intevation.flys.artifacts.FLYSArtifact; 9 import de.intevation.flys.artifacts.FLYSArtifact;
8 10
9 11
10 public class SedimentLoadAccess 12 public class SedimentLoadAccess
11 extends RiverAccess 13 extends RangeAccess
12 { 14 {
13 private static final Logger logger = Logger.getLogger(BedHeightAccess.class); 15 private static final Logger logger = Logger.getLogger(BedHeightAccess.class);
14 16
15 private int[] singleIDs; 17 private int[] singleIDs;
16 private int[] epochIDs; 18 private int[] epochIDs;
17 19
18 private Double lowerKM;
19 private Double upperKM;
20
21 private String time; 20 private String time;
22 private String unit; 21 private String unit;
23 22
24 public SedimentLoadAccess(FLYSArtifact artifact) { 23 public SedimentLoadAccess(FLYSArtifact artifact, CallContext context) {
25 super(artifact); 24 super(artifact, context);
26 } 25 }
27 26
28 public Double getLowerKM() { 27 public Double getLowerKM() {
29 if (lowerKM == null) { 28 // TODO update callers
30 lowerKM = getDouble("ld_from"); 29 return getFrom();
31 }
32
33 return lowerKM;
34 } 30 }
35 31
36 public Double getUpperKM() { 32 public Double getUpperKM() {
37 if (upperKM == null) { 33 // TODO update callers
38 upperKM = getDouble("ld_to"); 34 return getTo();
39 }
40
41 return upperKM;
42 } 35 }
43 36
44 public String getYearEpoch() { 37 public String getYearEpoch() {
45 if (time == null) { 38 if (time == null) {
46 time = getString("ye_select"); 39 time = getString("ye_select");

http://dive4elements.wald.intevation.org