comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java @ 3318:dbe2f85bf160

merged flys-artifacts/2.8
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:35 +0200
parents b8df8d1476ba
children 200e70f31f6f
comparison
equal deleted inserted replaced
2987:98c7a46ec5ae 3318:dbe2f85bf160
1 package de.intevation.flys.artifacts.model;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6
7 /**
8 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
9 */
10 public class WQTimerange extends WQ {
11
12 protected List<Timerange> ts;
13
14
15 public WQTimerange() {
16 super("");
17 }
18
19
20 public WQTimerange(String name) {
21 super(name);
22 ts = new ArrayList<Timerange>();
23 }
24
25
26 public void add(double w, double q, Timerange t) {
27 ws.add(w);
28 qs.add(q);
29 ts.add(t);
30 }
31
32
33 public Timerange getTimerange(int idx) {
34 return ts.get(idx);
35 }
36
37
38 public Timerange[] getTimeranges() {
39 return (Timerange[]) ts.toArray(new Timerange[ts.size()]);
40 }
41 }
42 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org