teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5863: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5863: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.artifacts.model.minfo; raimund@3886: raimund@3886: import java.util.Date; raimund@3886: raimund@3886: raimund@3886: public class BedHeightEpoch raimund@3886: extends BedHeight raimund@3886: { raimund@3886: raimund@3886: protected Date start; raimund@3886: protected Date end; raimund@3886: raimund@3886: public BedHeightEpoch() { raimund@3886: this.start = new Date(); raimund@3886: this.end = new Date(); raimund@3886: } raimund@3886: raimund@3886: public BedHeightEpoch(String name) { raimund@3886: super(name); raimund@3886: this.start = new Date(); raimund@3886: this.end = new Date(); raimund@3886: } raimund@3886: raimund@3886: public void add( raimund@3886: double value, raimund@3886: double station, raimund@3886: Date start, raimund@3886: Date end raimund@3886: ) { raimund@3897: super.add(value, station); raimund@3886: this.start = start; raimund@3886: this.end = end; raimund@3886: } raimund@3886: raimund@3886: public Date getStart() { raimund@3886: return start; raimund@3886: } raimund@3886: raimund@3886: public Date getEnd() { raimund@3886: return end; raimund@3886: } raimund@3886: }