ProcessTiltAngle.cc 1.03 KB
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   ProcessTiltAngle.cc
 * Author: hacene
 * 
 * Created on June 19, 2020, 10:32 AM
 */

#include "ProcessTiltAngle.hh"

ProcessTiltAngle::ProcessTiltAngle(Parameter &parameter) : SingleParamProcess_CRTP(parameter) {
}

ProcessTiltAngle::ProcessTiltAngle(const ProcessTiltAngle& pProcess, Parameter &parameter) : SingleParamProcess_CRTP(pProcess, parameter) {
}

TimeStamp ProcessTiltAngle::init() {
    
    TimeStamp time = _parameterInput->init(this, _timeIntervalList);
    
    _paramInput = _parameterInput->getParamData(this).get();
    
    TiltAngleCreator lCreator(*this, *paramInput, "tilt");
    
    _operation = lCreator.getOperation();
    
    _paramData = ParamDataSPtr(_operation->getParamOutput());
    
    _paramData->setMinSampling(_paramInput->getMinSampling());
    
    return time;
}

ProcessTiltAngle::~ProcessTiltAngle() {
}