/* * 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() { _parameter = _parameterManager.getSampledParameter(_paramName, _samplingMode, _samplingValue, _gapThreshold, true).get(); 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 */