CountBoolStatisticProcess.cc 1.07 KB


/* 
 * File:   CountBoolStatisticProcess.cc
 * Author: hacene
 * 
 * Created on January 20, 2020, 10:57 AM
 */
#include "CountBoolStatistic.hh" 
#include "CountBoolStatisticProcess.hh"

namespace AMDA {
    namespace Statistic {
        namespace CountBool {

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

            CountBoolStatisticProcess::~CountBoolStatisticProcess(void) {
            }

            void CountBoolStatisticProcess::createOperation(void) {
                AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
                CreateCountBoolStatistic lCreateCountStatistic(*this, _timeIntervalList, *paramInput, COUNT_BOOL_FUNC_TYPE::FT_COUNT_TRUE);
                _operation = lCreateCountStatistic.getStatisticOperation();
            }

            std::string CountBoolStatisticProcess::getUCD(void) {
                return "stat.countTrue";
            }
        }
    }
}