SlidingAverageProcess.hh 1.31 KB
/*
 * 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 &parameter);
	/**
	 * @brief Copy Constructor.
	 */
	SlidingAverageProcess(const SlidingAverageProcess& pProcess, Parameter &pParameter) ;
	/**
	 * @brief Destructor.
	 */
	~SlidingAverageProcess();

	// Overload DataClient methods

	// Overload DataWriter methods
	/**
	 * @overload DataWriter::init()
	 */
	TimeStamp init();

private:
	/**
	 * @brief The time ox mean SlidingAverage.
	 */
	double _SlidingAverageTime;
};

} /* namespace Parameters */
} /* namespace AMDA */
#endif /* SlidingAverageProcess_HH_ */