Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java @ 2608:938e2f6c0c9a
Refactored the code of the fixings filter building to be useful in more cases.
flys-artifacts/trunk@4190 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 03 Apr 2012 13:46:16 +0000 |
parents | b8df8d1476ba |
children | 200e70f31f6f |
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 (Timerange[]) ts.toArray(new Timerange[ts.size()]); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :