comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/FlowVelocityAccess.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-artifacts/src/main/java/org/dive4elements/river/artifacts/access/FlowVelocityAccess.java@bd047b71ab37
children 4897a58c8746
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
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 :

http://dive4elements.wald.intevation.org