view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java @ 2230:59af81364eb1

Improved the 'historical discharge' calculation: implemented findValueForW(). flys-artifacts/trunk@3872 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 01 Feb 2012 15:41:11 +0000
parents 54422e31dc27
children e7843533f086
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[] getTimeranges() {
        return (Timerange[]) ts.toArray();
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org