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.
ingo@814: *
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: }
ingo@814: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :