Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FlowVelocityAccess.java @ 3468:f37e7e8907cb
merged flys-artifacts/2.8.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:39 +0200 |
parents | 9422b559b2d5 |
children | e54f8dc222cf |
comparison
equal
deleted
inserted
replaced
3387:5ffad8bde8ad | 3468:f37e7e8907cb |
---|---|
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 } | |
55 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |