SlidingAverageProcess.hh
1.38 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
/*
* SlidingAverageProcess.hh
*
* Created on: Dec 12, 2012
* Author: f.casimir
*/
#ifndef SlidingAverageProcess_HH_
#define SlidingAverageProcess_HH_
#include "SingleParamProcess.hh"
namespace AMDA {
namespace Parameters {
/**
* @class SlidingAverageProcess
* @brief mean SlidingAverage process.
* @details This class represents the process that must computed the mean SlidingAverage of, data. The data type is an unknown ParamData.
* To do this it implements the Process interface and delegates the compute to an output ParamData to a SlidingAverage class.
* This class is builded from the SlidingAverageCreator visitor.
*/
class SlidingAverageProcess : public AMDA::Parameters::SingleParamProcess_CRTP<SlidingAverageProcess> {
public:
/**
* @brief Constructor.
*/
SlidingAverageProcess(Parameter ¶meter);
/**
* @brief Copy Constructor.
*/
SlidingAverageProcess(const SlidingAverageProcess& pProcess, Parameter &pParameter) ;
/**
* @brief Destructor.
*/
~SlidingAverageProcess();
// Overload DataClient methods
// Overload DataWriter methods
/**
* @overload DataWriter::init()
*/
TimeStamp init();
/**
* @overload DataWriter::write()
*/
unsigned int write();
private:
/**
* @brief The time ox mean SlidingAverage.
*/
double _SlidingAverageTime;
};
} /* namespace Parameters */
} /* namespace AMDA */
#endif /* SlidingAverageProcess_HH_ */