Package gda.jython
Class ScriptBase
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.jython.ScriptBase
- All Implemented Interfaces:
Configurable,Findable
- Direct Known Subclasses:
DataCollection
This class supplies a namespace for volatile variables which scripts may want to refer to while running.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
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
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
- Throws:
InterruptedException
-