Package gda.jython

Class ScriptBase

All Implemented Interfaces:
Configurable, Findable
Direct Known Subclasses:
DataCollection

public abstract class ScriptBase extends FindableConfigurableBase
This class supplies a namespace for volatile variables which scripts may want to refer to while running.
  • Constructor Details

    • ScriptBase

      public ScriptBase()
  • Method Details

    • setPaused

      public static void setPaused(boolean paused)
      Parameters:
      paused - - allows UI/users to pause/resume scripts
    • isPaused

      public static boolean isPaused()
      Returns:
      - allows UI/users to pause/resume scripts
    • checkForPauses

      public static void checkForPauses() throws InterruptedException
      This should be called in frequent places during long scripts where the script's author wishes to allow the ability to pause\resume the script
      Throws:
      InterruptedException
    • checkForInterruption

      public static void checkForInterruption() throws InterruptedException
      Throws:
      InterruptedException