MinMaxMeanStatisticProcess.cc 2.05 KB
/*
 * MinMaxMeanStatisticProcess.cc
 *
 *  Created on: Nov 06, 2014
 *      Author: AKKA
 */


#include "MinMaxMeanStatisticProcess.hh"

#include "MinMaxMeanStatistic.hh"

namespace AMDA {
namespace Statistic {
namespace MinMaxMean {

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

MinStatisticProcess::~MinStatisticProcess(void)
{
}

void MinStatisticProcess::createOperation(void)
{
	AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
	CreateMinMaxMeanStatistic lCreateMinStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_MIN);
	_operation = lCreateMinStatistic.getStatisticOperation();
}

std::string MinStatisticProcess::getUCD(void)
{
	return "stat.min";
}

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

MaxStatisticProcess::~MaxStatisticProcess(void)
{
}

void MaxStatisticProcess::createOperation(void)
{
	AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
	CreateMinMaxMeanStatistic lCreateMaxStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_MAX);
	_operation = lCreateMaxStatistic.getStatisticOperation();
}

std::string MaxStatisticProcess::getUCD(void)
{
	return "stat.max";
}

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

MeanStatisticProcess::~MeanStatisticProcess(void)
{
}

void MeanStatisticProcess::createOperation(void)
{
	AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
	CreateMinMaxMeanStatistic lCreateMeanStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_MEAN);
	_operation = lCreateMeanStatistic.getStatisticOperation();
}

std::string MeanStatisticProcess::getUCD(void)
{
	return "stat.mean";
}

} /* namespace MinMaxMean */
} /* namespace Statistic */
} /* namespace AMDA */