Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java @ 4043:eb5564662e19
Cosmetics, documentation.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 05 Oct 2012 15:36:42 +0200 |
parents | 200e70f31f6f |
children | 1d8faeedda0c |
line wrap: on
line source
package de.intevation.flys.artifacts.model; import java.util.ArrayList; import java.util.List; /** * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public class WQTimerange extends WQ { protected List<Timerange> ts; public WQTimerange() { super(""); } public WQTimerange(String name) { super(name); ts = new ArrayList<Timerange>(); } public void add(double w, double q, Timerange t) { ws.add(w); qs.add(q); ts.add(t); } public Timerange getTimerange(int idx) { return ts.get(idx); } public Timerange[] getTimeranges() { return ts.toArray(new Timerange[ts.size()]); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :