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:
sascha@454: package de.intevation.gnv.statistics;
sascha@454:
sascha@779: import de.intevation.gnv.math.AttributedXYColumns;
sascha@454:
sascha@454: import de.intevation.gnv.state.describedata.KeyValueDescibeData;
sascha@454:
sascha@454: import de.intevation.gnv.statistics.exception.StatisticsException;
sascha@454:
sascha@779: import java.util.ArrayList;
sascha@779: import java.util.Collection;
sascha@779:
sascha@779: import org.apache.log4j.Logger;
sascha@454:
sascha@454: /**
ingo@814: * This class is used to create a statistic in 'Profilschnitt' products.
sascha@835: *
sascha@780: * @author Sascha L. Teichmann
sascha@454: */
sascha@454: public class VerticalCrossSectionStatistics
sascha@454: extends AbstractStatistics
sascha@454: {
sascha@454: private static Logger log = Logger.getLogger(
sascha@454: VerticalCrossSectionStatistics.class);
sascha@454:
sascha@454: public VerticalCrossSectionStatistics() {
sascha@454: }
sascha@454:
sascha@835:
sascha@454: public Collection calculateStatistics(
sascha@454: Object result,
sascha@454: Collection parameters,
sascha@454: Collection measurements,
sascha@454: Collection dates
sascha@454: )
sascha@454: throws StatisticsException {
sascha@454:
sascha@454: boolean debug = log.isDebugEnabled();
sascha@454:
sascha@454: if (debug) {
sascha@454: log.debug("calculateStatistics --------------");
sascha@454: }
sascha@454:
sascha@454: ArrayList statisticSet =
sascha@454: new ArrayList();
sascha@454:
sascha@454: if (!(result instanceof AttributedXYColumns)) {
sascha@454: log.error("wrong type of result");
sascha@454: return statisticSet;
sascha@454: }
sascha@454: AttributedXYColumns columns = (AttributedXYColumns)result;
sascha@454:
sascha@454: return statisticSet;
sascha@454: }
sascha@454: }
sascha@454: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :