MinMaxMeanStatisticProcess.cc
2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* 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 ¶meter, 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 ¶meter, 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 ¶meter, 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 */