Package gda.jython.commands
Class ScannableCommands
java.lang.Object
gda.jython.commands.ScannableCommands
Holder for a series of static methods to operate Scannable objects
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of Property read by LocalPropties.check.static final StringName of Property read by LocalPropties.check.static final StringName of Property read by LocalPropties.get.static final StringName of Property read by LocalPropties.get.static final StringName of Property read by LocalPropties.get.static final StringName of Property read by LocalPropties.check.static final StringName of Property read by LocalPropties.check. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd_default(Scannable... args) Set a Scannable to be used by defaultstatic voidClear the list of default scannablesstatic voidstatic ConcurrentScancreateConcurrentScan(Object... args) static ScanPlotSettingscreateScanPlotSettings(ConcurrentScan theScan) static voidSets up and operates a CentroidScan.static voidCreates a ContinuousScan object which is ready to be run.static Collection<Scannable> Gets a list of names of all the scannables on the serverstatic voidCreates and runs a grid scan.static voidRelative move version of pos.static booleanstatic IScanDataPointstatic intGet the level of a single scannablestatic voidSet the level of a single scannablestatic voidList all the Scannable objects used implicitly in every scanstatic voidpos()prints to console all the scannables and their current position in the systemstatic voidstatic voidThe pos command.static voidSets up and operates a PointsScan.static voidremove_default(Scannable... args) Remove a Scannable from the list of defaultsstatic voidSets up and operates a ConcurrentScan.static voidstaticscan(Scannable... args) Sets up and operates a StaticScan.static voidSets up and operates a TestScan.static voidTime scanstatic voidTime scanstatic voidRelative move version of pos.static voidThe pos command.
-
Field Details
-
GDA_POS_OVER_ALL_DISABLE
Name of Property read by LocalPropties.check. If True then the pos command doesn't loop over every scannable- See Also:
-
GDA_SCAN_SET_SCAN_PLOT_SETTINGS
Name of Property read by LocalPropties.check. If True then the scanPlotSettings are set within the scan command- See Also:
-
GDA_PLOT_SCAN_PLOT_SETTINGS_YAXES_INVISIBLE
Name of Property read by LocalPropties.get. List of indices ( space separated) to scannable fields to be plotted not and made invisible- See Also:
-
GDA_PLOT_SCAN_PLOT_SETTINGS_YAXES
Name of Property read by LocalPropties.get. List of indices ( space separated) to scannable fields to be plotted- See Also:
-
GDA_PLOT_SCAN_PLOT_SETTINGS_XAXIS
Name of Property read by LocalPropties.get. Index of scannable fields of scannables being scanned that is to be used as the x axis- See Also:
-
GDA_PLOT_SCAN_PLOT_SETTINGS_FROM_USER_LIST
Name of Property read by LocalPropties.check. If True the above indices are to the list of scannables as passed to the scan command. Else they are indices to the list of scannables when re-ordered to match the levels- See Also:
-
GDA_PLOT_SCAN_PLOT_SETTINGS_SEPARATE_YAXES
Name of Property read by LocalPropties.check. If TRUE a separate YAxis is used for each visible to be plotted- See Also:
-
-
Constructor Details
-
ScannableCommands
public ScannableCommands()
-
-
Method Details
-
pos
-
pos
The pos command. Reports the current position of a scannable or moves one or more scannables concurrently. It prints the output to the terminal.- Parameters:
args-- Throws:
Exception- - any exception within this method
-
upos
The pos command. Reports the current position of a scannable or moves one or more scannables concurrently.- Parameters:
args-- Throws:
Exception- - any exception within this method
-
getScannableNames
Gets a list of names of all the scannables on the server -
pos
public static void pos()prints to console all the scannables and their current position in the system -
isPosCommandIsInTheProcessOfListingAllScannables
public static boolean isPosCommandIsInTheProcessOfListingAllScannables() -
inc
Relative move version of pos. Prints the output to the terminal.- Parameters:
args-- Throws:
Exception
-
uinc
Relative move version of pos.- Parameters:
args-- Throws:
Exception
-
scan
Sets up and operates a ConcurrentScan. The scan which should be used most of the time.- Parameters:
args-- Throws:
Exception
-
createConcurrentScan
- Throws:
Exception
-
createScanPlotSettings
- Parameters:
theScan-- Returns:
- ScanPlotSettings with Xaxis and YAxes based on several properties
- Throws:
Exception
-
configureScanPipelineParameters
-
pscan
Sets up and operates a PointsScan.- Parameters:
args-- Throws:
Exception
-
cscan
Sets up and operates a CentroidScan.- Parameters:
args-- Throws:
Exception
-
staticscan
Sets up and operates a StaticScan.- Parameters:
args-- Throws:
Exception
-
gscan
Creates and runs a grid scan.I'm not sure how much this is used so I haven't included all GridScan constructors.
- Parameters:
args-- Throws:
Exception
-
timescan
Time scan- Parameters:
args-- Throws:
Exception
-
tscan
Time scan- Parameters:
args-- Throws:
Exception
-
testscan
Sets up and operates a TestScan.- Parameters:
args-- Throws:
Exception
-
cv
Creates a ContinuousScan object which is ready to be run.This command can be used within a 'scan' command so that a continuousscan can be used within a multi-dimension step scan.
- Parameters:
args-- Throws:
Exception
-
level
Get the level of a single scannable -
level
Set the level of a single scannable -
list_defaults
public static void list_defaults()List all the Scannable objects used implicitly in every scan -
get_defaults
-
add_default
Set a Scannable to be used by default -
remove_default
Remove a Scannable from the list of defaults -
clear_defaults
public static void clear_defaults()Clear the list of default scannables -
lastScanDataPoint
-