adams.flow.core
Class RHelper
java.lang.Object
adams.flow.core.RHelper
public class RHelper
- extends Object
A helper class for things R related, specifically, JRI and Rserve.
- Version:
- $Revision$
- Author:
- rsmith
|
Method Summary |
static String |
getRSetup_RHOME(AbstractActor caller)
Returns the value of R_HOME as entered into the RSetup actor (the one
nearest to the calling actor) if it exists, if it does not then it will
return null. |
static org.rosuda.REngine.Rserve.RConnection |
newConnection(int port)
Creates a new connection to Rserve. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RHelper
public RHelper()
getRSetup_RHOME
public static String getRSetup_RHOME(AbstractActor caller)
- Returns the value of R_HOME as entered into the RSetup actor (the one
nearest to the calling actor) if it exists, if it does not then it will
return null.
- Parameters:
caller - a reference to the object that called this
- Returns:
- the String value of R_HOME or null.
newConnection
public static org.rosuda.REngine.Rserve.RConnection newConnection(int port)
- Creates a new connection to Rserve. Will try to launch Rserve if it's not
already running.
- Parameters:
port - the port to connect on
- Returns:
- the connection to Rserve or null if there was an error
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.