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@253: package de.intevation.gnv.statistics; tim@253: tim@253: import java.util.ArrayList; tim@253: import java.util.Collection; tim@253: tim@253: /** ingo@814: * A container to store several statistics. ingo@814: * sascha@780: * @author Tim Englich tim@253: */ tim@253: public class StatisticSet { tim@253: sascha@778: tim@253: private String name = null; sascha@778: tim@253: private Collection statistics = new ArrayList(); sascha@778: tim@253: /** tim@253: * Constructor ingo@814: * @param name Name of this container. tim@253: */ tim@253: public StatisticSet(String name) { tim@253: this.name = name; tim@253: } sascha@778: sascha@778: ingo@814: /** ingo@814: * Add a further statistic to this container. ingo@814: * ingo@814: * @param statistic A statistic. ingo@814: */ tim@253: public void addStatistic(Statistic statistic){ tim@253: this.statistics.add(statistic); tim@253: } sascha@778: ingo@814: /** ingo@814: * Returns all statistics in this container. ingo@814: * @return all statistics. ingo@814: */ tim@253: public Collection getStatistics(){ tim@253: return this.statistics; tim@253: } sascha@778: ingo@814: /** ingo@814: * Returns the name of this container. ingo@814: * @return the name. ingo@814: */ tim@253: public String getName(){ tim@253: return this.name; tim@253: } tim@253: } sascha@836: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :