public final class RBridgeControl
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
RBridgeControl() |
Modifier and Type | Method and Description |
---|---|
void |
assign(java.lang.String variable,
double[] values) |
void |
assign(java.lang.String variable,
java.lang.Double[] values) |
void |
assign(java.lang.String variable,
java.lang.Long[] values) |
double |
eDbl(java.lang.String input) |
double[] |
eDblArr(java.lang.String input) |
java.lang.String |
eString(java.lang.String input) |
java.lang.Object |
evalWithR(java.lang.String input)
Wraps the execution of an arbitrary R expression.
|
static RBridgeControl |
getInstance()
Delivers the singleton instance of this class.
|
void |
toTS(java.lang.String variable) |
void |
toTS(java.lang.String variable,
long frequency) |
static java.lang.String |
uniqueVarname()
Returns a globally unique variable name, even during the access of multiple threads.
|
public java.lang.Object evalWithR(java.lang.String input) throws InvalidREvaluationResultException
input
- The R expression to evaluate.InvalidREvaluationResultException
public void toTS(java.lang.String variable) throws InvalidREvaluationResultException
variable
- variable to RInvalidREvaluationResultException
public void toTS(java.lang.String variable, long frequency) throws InvalidREvaluationResultException
variable
- variable to Rfrequency
- frequency to RInvalidREvaluationResultException
public double eDbl(java.lang.String input)
input
- stringDouble.NaN
in case of error, else dbvaluepublic java.lang.String eString(java.lang.String input)
input
- inputstringpublic double[] eDblArr(java.lang.String input)
input
- inputstringpublic void assign(java.lang.String variable, double[] values) throws InvalidREvaluationResultException
variable
- stringvalues
- assign valueInvalidREvaluationResultException
public void assign(java.lang.String variable, java.lang.Double[] values) throws InvalidREvaluationResultException
variable
- stringvalues
- assign vaulesInvalidREvaluationResultException
public void assign(java.lang.String variable, java.lang.Long[] values) throws InvalidREvaluationResultException
variable
- stringvalues
- assign vaulesInvalidREvaluationResultException
public static java.lang.String uniqueVarname()
var_1, var_2, ...
.public static final RBridgeControl getInstance()
Copyright 2017 Kieker Project, http://kieker-monitoring.net