Class RState
java.lang.Object
com.eco.bio7.rbridge.RState
A class to detect the R interpreter state (if a R job is running).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBusy()A method to detect if the R interpreter is busy.static voidsetBusy(boolean b) Sets the boolean value to indicate that the R interpreter is busy.static voidsetExternalBusy(BooleanSupplier supplier) Sets a supplier which reports if R is busy outside of setBusy (e.g., embedded R evaluating console input), or null.
-
Constructor Details
-
RState
public RState()
-
-
Method Details
-
isBusy
public static boolean isBusy()A method to detect if the R interpreter is busy.- Returns:
- a boolean value.
-
setExternalBusy
Sets a supplier which reports if R is busy outside of setBusy (e.g., embedded R evaluating console input), or null. -
setBusy
public static void setBusy(boolean b) Sets the boolean value to indicate that the R interpreter is busy.- Parameters:
b- a boolean value
-