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.sq; ingo@3079: ingo@3079: import java.io.Serializable; ingo@3079: ingo@3079: ingo@3079: public class SQ implements Serializable { ingo@3079: ingo@3079: protected double s; ingo@3079: protected double q; ingo@3079: ingo@3079: public SQ() { ingo@3079: } ingo@3079: ingo@3079: public SQ(double s, double q) { ingo@3079: this.s = s; ingo@3079: this.q = q; ingo@3079: } ingo@3079: ingo@3079: ingo@3079: public double getS() { ingo@3079: return s; ingo@3079: } ingo@3079: ingo@3079: public void setS(double s) { ingo@3079: this.s = s; ingo@3079: } ingo@3079: ingo@3079: ingo@3079: public double getQ() { ingo@3079: return q; ingo@3079: } ingo@3079: ingo@3079: public void setQ(double q) { ingo@3079: this.q = q; ingo@3079: } sascha@3188: sascha@3188: public boolean isValid() { sascha@3188: return !Double.isNaN(s) && !Double.isNaN(q); sascha@3188: } ingo@3079: } ingo@3079: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :