Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/org/dive4elements/river/artifacts/access/FlowVelocityAccess.java @ 5831:bd047b71ab37
Repaired internal references
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:06:39 +0200 |
parents | flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FlowVelocityAccess.java@a3dc382bc1ca |
children |
comparison
equal
deleted
inserted
replaced
5830:160f53ee0870 | 5831:bd047b71ab37 |
---|---|
1 package org.dive4elements.river.artifacts.access; | |
2 | |
3 import org.dive4elements.artifacts.CallContext; | |
4 | |
5 import org.dive4elements.river.artifacts.FLYSArtifact; | |
6 | |
7 | |
8 /** Access to data that deals with flow velocity stuff. */ | |
9 public class FlowVelocityAccess | |
10 extends RangeAccess | |
11 { | |
12 | |
13 private int[] mainChannels; | |
14 private int[] totalChannels; | |
15 | |
16 public FlowVelocityAccess(FLYSArtifact artifact, CallContext context) { | |
17 super(artifact, context); | |
18 } | |
19 | |
20 | |
21 public int[] getMainChannels() { | |
22 if (mainChannels == null) { | |
23 mainChannels = getIntArray("main_channel"); | |
24 } | |
25 | |
26 return mainChannels; | |
27 } | |
28 | |
29 | |
30 public int[] getTotalChannels() { | |
31 if (totalChannels == null) { | |
32 totalChannels = getIntArray("total_channel"); | |
33 } | |
34 | |
35 return totalChannels; | |
36 } | |
37 | |
38 | |
39 public Double getLowerKM() { | |
40 // TODO update callers to getFrom | |
41 return getFrom(); | |
42 } | |
43 | |
44 | |
45 public Double getUpperKM() { | |
46 // TODO update callers to getTo | |
47 return getTo(); | |
48 } | |
49 } | |
50 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |