Package org.metrapp.customalgorithms

Source Code of org.metrapp.customalgorithms.TimeAlgorithmFactory

/*
* 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();
    }
   
}
TOP

Related Classes of org.metrapp.customalgorithms.TimeAlgorithmFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.