Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FlowVelocityAccess.java @ 3258:3c006a53e551
Replaced tabs with four spaces each.
flys-artifacts/trunk@4895 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 08 Jul 2012 08:43:13 +0000 |
parents | cdbc457e23e2 |
children | 9422b559b2d5 |
comparison
equal
deleted
inserted
replaced
3257:2aca387333d6 | 3258:3c006a53e551 |
---|---|
3 import de.intevation.flys.artifacts.FLYSArtifact; | 3 import de.intevation.flys.artifacts.FLYSArtifact; |
4 | 4 |
5 | 5 |
6 public class FlowVelocityAccess extends Access { | 6 public class FlowVelocityAccess extends Access { |
7 | 7 |
8 private int[] mainChannels; | 8 private int[] mainChannels; |
9 private int[] totalChannels; | 9 private int[] totalChannels; |
10 | 10 |
11 private Double lowerKM; | 11 private Double lowerKM; |
12 private Double upperKM; | 12 private Double upperKM; |
13 | 13 |
14 | 14 |
15 public FlowVelocityAccess(FLYSArtifact artifact) { | 15 public FlowVelocityAccess(FLYSArtifact artifact) { |
16 super(artifact); | 16 super(artifact); |
17 } | 17 } |
18 | 18 |
19 | 19 |
20 public int[] getMainChannels() { | 20 public int[] getMainChannels() { |
21 if (mainChannels == null) { | 21 if (mainChannels == null) { |
22 mainChannels = getIntArray("main.channel"); | 22 mainChannels = getIntArray("main.channel"); |
23 } | 23 } |
24 | 24 |
25 return mainChannels; | 25 return mainChannels; |
26 } | 26 } |
27 | 27 |
28 | 28 |
29 public int[] getTotalChannels() { | 29 public int[] getTotalChannels() { |
30 if (totalChannels == null) { | 30 if (totalChannels == null) { |
31 totalChannels = getIntArray("total.channel"); | 31 totalChannels = getIntArray("total.channel"); |
32 } | 32 } |
33 | 33 |
34 return totalChannels; | 34 return totalChannels; |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 public Double getLowerKM() { | 38 public Double getLowerKM() { |
39 if (lowerKM == null) { | 39 if (lowerKM == null) { |
40 lowerKM = getDouble("ld_from"); | 40 lowerKM = getDouble("ld_from"); |
41 } | 41 } |
42 | 42 |
43 return lowerKM; | 43 return lowerKM; |
44 } | 44 } |
45 | 45 |
46 | 46 |
47 public Double getUpperKM() { | 47 public Double getUpperKM() { |
48 if (upperKM == null) { | 48 if (upperKM == null) { |
49 upperKM = getDouble("ld_to"); | 49 upperKM = getDouble("ld_to"); |
50 } | 50 } |
51 | 51 |
52 return upperKM; | 52 return upperKM; |
53 } | 53 } |
54 } | 54 } |