view flys-backend/src/main/java/de/intevation/flys/importer/ImportDischargeTableValue.java @ 5083:7bbee0cfc171 slt-simplify-cross-sections

Added experimental Douglas Peuker simplification of cross sections.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 24 Feb 2013 17:29:52 +0100
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