comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FlowVelocityAccess.java @ 3230:b888c5eb65b3

Added new *Access objects for bed height calculation and flow velocity calculation; removed methods for specific data access from MINFOArtifact. flys-artifacts/trunk@4859 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 03 Jul 2012 12:13:36 +0000
parents
children cdbc457e23e2
comparison
equal deleted inserted replaced
3229:ad9640211db3 3230:b888c5eb65b3
1 package de.intevation.flys.artifacts.access;
2
3 import de.intevation.flys.artifacts.FLYSArtifact;
4
5
6 public class FlowVelocityAccess extends Access {
7
8 private int[] mainChannels;
9 private int[] totalChannels;
10
11 private Double lowerKM;
12 private Double upperKM;
13
14
15 public FlowVelocityAccess(FLYSArtifact artifact) {
16 super(artifact);
17 }
18
19
20 public int[] getMainChannels() {
21 if (mainChannels == null) {
22 mainChannels = getIntArray("main.channel");
23 }
24
25 return mainChannels;
26 }
27
28
29 public int[] getTotalChannels() {
30 if (totalChannels == null) {
31 totalChannels = getIntArray("total.channel");
32 }
33
34 return totalChannels;
35 }
36
37
38 public Double getLowerKM() {
39 if (lowerKM == null) {
40 lowerKM = getDouble("ld_from");
41 }
42
43 return lowerKM;
44 }
45
46
47 public Double getUpperKM() {
48 if (upperKM == null) {
49 upperKM = getDouble("ld_to");
50 }
51
52 return upperKM;
53 }
54 }

http://dive4elements.wald.intevation.org