Class RState

java.lang.Object
com.eco.bio7.rbridge.RState

public class RState extends Object
A class to detect the R interpreter state (if a R job is running).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    A method to detect if the R interpreter is busy.
    static void
    setBusy(boolean b)
    Sets the boolean value to indicate that the R interpreter is busy.
    static void
    Sets a supplier which reports if R is busy outside of setBusy (e.g., embedded R evaluating console input), or null.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static void setExternalBusy(BooleanSupplier supplier)
      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