view flys-backend/src/main/java/de/intevation/flys/importer/ImportDischargeTableValue.java @ 4135:ac93f397018d

Importer: Ignore historical discharge tables.
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 15 Oct 2012 14:03:47 +0200
parents d50cd3a632e0
children
line wrap: on
line source
package de.intevation.flys.importer;

import java.math.BigDecimal;

import de.intevation.flys.model.DischargeTable;
import de.intevation.flys.model.DischargeTableValue;


public class ImportDischargeTableValue
{
    private BigDecimal q;
    private BigDecimal w;

    private DischargeTableValue peer;

    public ImportDischargeTableValue() {
    }


    public ImportDischargeTableValue(BigDecimal q, BigDecimal w) {
        this.q = q;
        this.w = w;
    }


    public DischargeTableValue getPeer(DischargeTable dischargeTable) {
        if (peer == null) {
            peer = ImporterSession.getInstance()
                .getDischargeTableValue(dischargeTable, q, w);
        }

        return peer;
    }
}

http://dive4elements.wald.intevation.org