Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java @ 2217:54422e31dc27
Added new model classes which will be used during historical discharge curve calculation.
flys-artifacts/trunk@3856 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 01 Feb 2012 12:24:05 +0000 |
parents | |
children | e7843533f086 |
comparison
equal
deleted
inserted
replaced
2216:31fa7cae0f35 | 2217:54422e31dc27 |
---|---|
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[] getTimeranges() { | |
34 return (Timerange[]) ts.toArray(); | |
35 } | |
36 } | |
37 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |