teichmann@5844: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5844: * Software engineering by Intevation GmbH teichmann@5844: * teichmann@5992: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5844: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5992: * documentation coming with Dive4Elements River for details. teichmann@5844: */ teichmann@5844: teichmann@5829: package org.dive4elements.river.importer; sascha@185: teichmann@5829: import org.dive4elements.river.model.Range; teichmann@5829: import org.dive4elements.river.model.River; sascha@188: sascha@188: import java.math.BigDecimal; sascha@188: sascha@188: import org.apache.log4j.Logger; sascha@188: felix@4713: /** A range that is about to be imported. */ sascha@185: public class ImportRange sascha@186: implements Comparable sascha@185: { felix@4713: /** Private logger. */ sascha@188: private static Logger log = Logger.getLogger(ImportRange.class); sascha@188: sascha@189: protected BigDecimal a; sascha@189: protected BigDecimal b; sascha@188: sascha@188: protected Range peer; sascha@185: sascha@185: public ImportRange() { sascha@185: } sascha@185: sascha@189: public ImportRange(BigDecimal a, BigDecimal b) { tom@7003: tom@7003: // enforce a