view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedHeightEpoch.java @ 4296:3051bc28ac43

Added data object and factory for sediment load calculation. The factory provides two methods to get sediment load data: The first is to get an array of loads for a specific range at a river, these loads contain the time and description. The second is to get a single sediment load with time, description and data values.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 29 Oct 2012 12:14:50 +0100
parents bce2dd4310a6
children
line wrap: on
line source
package de.intevation.flys.artifacts.model.minfo;

import java.util.Date;


public class BedHeightEpoch
extends BedHeight
{

    protected Date start;
    protected Date end;

    public BedHeightEpoch() {
        this.start = new Date();
        this.end = new Date();
    }

    public BedHeightEpoch(String name) {
        super(name);
        this.start = new Date();
        this.end = new Date();
    }

    public void add(
        double value,
        double station,
        Date start,
        Date end
    ) {
        super.add(value, station);
        this.start = start;
        this.end = end;
    }

    public Date getStart() {
        return start;
    }

    public Date getEnd() {
        return end;
    }
}

http://dive4elements.wald.intevation.org