ingo@1115: /* ingo@1115: * Copyright (c) 2010 by Intevation GmbH ingo@1115: * ingo@1115: * This program is free software under the LGPL (>=v2.1) ingo@1115: * Read the file LGPL.txt coming with the software for details ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1115: */ ingo@1115: ingo@1077: package de.intevation.gnv.statistics; ingo@1077: ingo@1077: import de.intevation.gnv.geobackend.base.Result; ingo@1077: import de.intevation.gnv.geobackend.base.ResultDescriptor; ingo@1077: ingo@1077: import java.sql.SQLException; ingo@1077: ingo@1077: ingo@1077: /** ingo@1077: * @author Ingo Weinzierl ingo@1077: */ ingo@1077: public class TimeseriesVectorStatistics ingo@1077: extends VectorStatistics ingo@1077: { ingo@1077: public TimeseriesVectorStatistics() { ingo@1077: } ingo@1077: ingo@1077: ingo@1078: protected void clear() { ingo@1078: // nothing to clear ingo@1078: } ingo@1078: ingo@1078: ingo@1077: protected int getValueIdx(ResultDescriptor rd) { ingo@1077: return rd.getColumnIndex("YORDINATE"); ingo@1077: } ingo@1077: ingo@1077: ingo@1077: protected double calculateXOrdinateValue(Result prev, Result row) ingo@1077: throws SQLException ingo@1077: { ingo@1077: return new Double((row.getDate("XORDINATE")).getTime() / 1000 / 3600); ingo@1077: } ingo@1077: } ingo@1077: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :