All Downloads are FREE. Search and download functionalities are using the official Maven repository.

timeBench.R.RserveEngineConnection Maven / Gradle / Ivy

Go to download

TimeBench, a flexible, easy-to-use, and reusable software library written in Java that provides foundational data structures and algorithms for time- oriented data in Visual Analytics.

The newest version!
package timeBench.R;

import org.rosuda.REngine.REngine;
import org.rosuda.REngine.Rserve.RConnection;
import org.rosuda.REngine.Rserve.RserveException;

public class RserveEngineConnection implements REngineConnection {
    private static RserveEngineConnection instance;
    private REngine engine;

    private RserveEngineConnection() throws RserveException {
			engine = new RConnection();
    }
    
    public static synchronized RserveEngineConnection getInstance() throws RserveException {
        if (null == instance) {
            instance = new RserveEngineConnection();
        }
        return instance;
    }
    
    public REngine getREngine() {
    	return engine;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy