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: tim@98: package de.intevation.gnv.statistics; tim@98: sascha@779: import de.intevation.gnv.geobackend.base.Result; sascha@779: sascha@779: import de.intevation.gnv.state.describedata.KeyValueDescibeData; sascha@779: tim@98: import java.sql.SQLException; sascha@779: tim@253: import java.util.Collection; tim@98: tim@98: /** ingo@814: * This class is used to create a statistic in 'Vertikalprofil' products. sascha@835: * sascha@780: * @author Tim Englich tim@98: */ tim@98: public class VerticalProfileStatistics extends TimeseriesStatistics { tim@98: tim@98: /** tim@98: * Constructor tim@98: */ tim@98: public VerticalProfileStatistics() { tim@98: super(); tim@98: } tim@98: tim@98: @Override tim@255: protected double calculateXOrdinateValue(Result previousRow, Result row) throws SQLException { tim@255: return row.getDouble("XORDINATE"); tim@98: } tim@98: tim@253: @Override tim@253: protected String generateStatisticsName( tim@253: String break1, tim@253: String break2, tim@253: String break3, tim@253: Collection parameters, tim@253: Collection measurements, tim@253: Collection dates) { sascha@778: sascha@778: return (this.findValueTitle(parameters, break1)+ " "+ tim@253: this.findValueTitle(measurements,break2)).trim(); tim@253: } tim@98: } sascha@836: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :