Blame view

src/amdaParameterGenerator/ParameterGenerator.cc 817 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Parametergenerator.cc
 *
 *  Created on: Jan 24, 2013
 *      Author: f.casimir
 */

#include "ParameterGenerator.hh"

namespace AMDA {
namespace Parameters {

Generator::Generator(ParameterManager& pParameterManager) :
							ParamOutput(pParameterManager),
		_parameter(NULL) {
}

Generator::~Generator() {
}

void Generator::establishConnection() {
854a7fcf   Benjamin Renard   First implementat...
22
	_parameter = _parameterManager.getSampledParameter(_paramName, _samplingMode, _samplingValue, _gapThreshold, true).get();
fbe3c2bb   Benjamin Renard   First commit
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	if(_parameter == NULL)  {
		LOG4CXX_ERROR(_logger,"ParamOutput::init parameter : \""<< _paramName <<"\" Not Exist" );
		BOOST_THROW_EXCEPTION( ParamOutput_exception());
	}
	_parameter->openConnection(this);
}


void Generator::init() {
	_parameter->init(this, _timeIntervalList);
}

} /* namespace Parameters */
} /* namespace AMDA */