/*
* 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.
*/
package org.metrapp.customalgorithms;
import java.util.LinkedList;
import org.metrapp.dataModel.DataFrame;
import rcaller.RCaller;
import rcaller.RCode;
/**
*
* @author Ilija
*/
public class TimeAlgorithmFactory implements AlgorithmFactory{
@Override
public void createRCodeVariableReductionAlgorithm() {
RCaller caller = new RCaller();
RCode code = new RCode();
code.addRCode(new TimeReductor().returnRCodeVariableReduction());
caller.setRCode(code);
caller.runOnly();
}
@Override
public void createFilter(DataFrame d, RCaller caller, RCode code, LinkedList<String> parameters) {
//TODO ask Kristina if she implemented this R filter.
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void createRCodeStatAlgorithm() {
RCaller caller = new RCaller();
RCode code = new RCode();
code.addRCode(new SumFunction().returnRCodeStatAlgorithm());
caller.setRCode(code);
caller.runOnly();
}
}