ingo@2217: package de.intevation.flys.artifacts.model;
ingo@2217:
ingo@2217: import java.util.ArrayList;
ingo@2217: import java.util.List;
ingo@2217:
ingo@2217:
ingo@2217: /**
ingo@2217: * @author Ingo Weinzierl
ingo@2217: */
ingo@2217: public class WQTimerange extends WQ {
ingo@2217:
ingo@2217: protected List ts;
ingo@2217:
ingo@2217:
ingo@2217: public WQTimerange() {
ingo@2217: super("");
ingo@2217: }
ingo@2217:
ingo@2217:
ingo@2217: public WQTimerange(String name) {
ingo@2217: super(name);
ingo@2217: ts = new ArrayList();
ingo@2217: }
ingo@2217:
ingo@2217:
ingo@2217: public void add(double w, double q, Timerange t) {
ingo@2217: ws.add(w);
ingo@2217: qs.add(q);
ingo@2217: ts.add(t);
ingo@2217: }
ingo@2217:
ingo@2217:
ingo@2239: public Timerange getTimerange(int idx) {
ingo@2239: return ts.get(idx);
ingo@2239: }
ingo@2239:
ingo@2239:
ingo@2217: public Timerange[] getTimeranges() {
ingo@2311: return (Timerange[]) ts.toArray(new Timerange[ts.size()]);
ingo@2217: }
ingo@2217: }
ingo@2217: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :