CountStatisticProcess.cc 1.74 KB
#include "CountStatisticProcess.hh"

#include "CountStatistic.hh"

namespace AMDA {
    namespace Statistic {
        namespace Count {

            CountStatisticProcess::CountStatisticProcess(AMDA::Parameters::Parameter &parameter, const int& index) :
            AMDA::Parameters::StatisticProcess(parameter, false, index) {
            }

            CountStatisticProcess::~CountStatisticProcess(void) {
            }

            void CountStatisticProcess::createOperation(void) {
                AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
                CreateCountStatistic lCreateCountStatistic(*this, _timeIntervalList, *paramInput, COUNT_FUNC_TYPE::FT_COUNT);
                _operation = lCreateCountStatistic.getStatisticOperation();
            }

            std::string CountStatisticProcess::getUCD(void) {
                return "stat.count";
            }
            
                        CountNotNanStatisticProcess::CountNotNanStatisticProcess(AMDA::Parameters::Parameter &parameter, const int& index) :
            AMDA::Parameters::StatisticProcess(parameter, false, index) {
            }

            CountNotNanStatisticProcess::~CountNotNanStatisticProcess(void) {
            }

            void CountNotNanStatisticProcess::createOperation(void) {
                AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
                CreateCountStatistic lCreateCountStatistic(*this, _timeIntervalList, *paramInput, COUNT_FUNC_TYPE::FT_COUNT_NOT_NAN);
                _operation = lCreateCountStatistic.getStatisticOperation();
            }

            std::string CountNotNanStatisticProcess::getUCD(void) {
                return "stat.countNotNan";
            }

        }
    }
}