|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.utils.RConnection
public class RConnection
Encapsulate the access to the R engine. Is responsible for the initialization of the R engine and the execution of R commands.
Constructor Summary | |
---|---|
RConnection()
Initializes the connection to the R engine. |
Method Summary | |
---|---|
void |
assign(String name,
double[] array)
Stores an array in a R variable. |
Vector<REXP> |
execute(String rCommands)
Executes the command(s) in R. |
String |
getLastConsoleMessage()
|
static RConnection |
getRConnection()
|
protected void |
initalizeConnection()
Initializes the connection to a R engine. |
static boolean |
isEngineAvailable()
checks if an R engine could be found and the connection is established. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RConnection()
Method Detail |
---|
protected void initalizeConnection()
public Vector<REXP> execute(String rCommands)
rCommands
- One or more valid commands in R, separated by
\n
.
public void assign(String name, double[] array)
name
- Name of the R variable in which the array is stored.array
- Array to store in an R variable.public static boolean isEngineAvailable()
true
if the connection is established.public static RConnection getRConnection()
public String getLastConsoleMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |