Package gda.commandqueue
Class JythonScriptFileRunnerCommand
java.lang.Object
gda.commandqueue.CommandBase
gda.commandqueue.JythonScriptFileRunnerCommand
- All Implemented Interfaces:
Command,gda.observable.IObservable,Serializable
- Direct Known Subclasses:
JythonCommandStringRunnerCommand
JythonScriptFileRunnerCommand is an implementation of Command whose run method runs the script file set by the
setScriptFile method in the CommandRunner
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface gda.commandqueue.Command
Command.STATE -
Field Summary
FieldsFields inherited from class gda.commandqueue.CommandBase
obsComp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidpause()voidresume()voidrun()do not return until script and scan state are both IDLEvoidvoidsetDetails(String details) voidsetScriptFile(String scriptFile) voidsetSettingsPath(String settingsPath) toString()Methods inherited from class gda.commandqueue.CommandBase
addIObserver, beginRun, deleteIObserver, deleteIObservers, endRun, getDescription, getState, setDescription, setState
-
Field Details
-
scriptFile
-
settingsFile
-
hasAlreadyBeenRun
protected boolean hasAlreadyBeenRun
-
-
Constructor Details
-
JythonScriptFileRunnerCommand
public JythonScriptFileRunnerCommand()
-
-
Method Details
-
run
do not return until script and scan state are both IDLE- Throws:
Exception
-
runCommand
public void runCommand() -
toString
- Overrides:
toStringin classCommandBase
-
abort
public void abort()- Specified by:
abortin interfaceCommand- Overrides:
abortin classCommandBase
-
pause
public void pause()- Specified by:
pausein interfaceCommand- Overrides:
pausein classCommandBase
-
resume
- Specified by:
resumein interfaceCommand- Overrides:
resumein classCommandBase- Throws:
Exception
-
getScriptFile
- Returns:
- absolute path to script file
-
setScriptFile
- Parameters:
scriptFile- absolute path to script file
-
getCommandSummary
-
getDetails
- Throws:
Exception
-
setDetails
- Throws:
Exception
-
setSettingsPath
-