Package uk.ac.diamond.daq.scanning
Class ScannableDeviceConnectorService
java.lang.Object
uk.ac.diamond.daq.scanning.ScannableDeviceConnectorService
- All Implemented Interfaces:
IScannableDeviceService
Implementation of
IScannableDeviceService for GDA8 devices.
getScannable(String) using Finder to find Findable-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.getRequiredPerScanMonitorNames(String scannableName) Deprecated, for removal: This API element is subject to removal in a future version.<T> IScannable<T> getScannable(String name) Get a scannable by name.Get the names of all scannables known to the connector.voidhandleDeviceError(String name, Exception e) <T> voidregister(IScannable<T> scannable) Used to register a device.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.device.IScannableDeviceService
getScannables, getScannables
-
Constructor Details
-
ScannableDeviceConnectorService
public ScannableDeviceConnectorService()
-
-
Method Details
-
register
Description copied from interface:IScannableDeviceServiceUsed to register a device. This is required so that spring may create detectors and call the register method by telling the detector to register itself.- Specified by:
registerin interfaceIScannableDeviceService
-
getScannable
Description copied from interface:IScannableDeviceServiceGet a scannable by name.- Specified by:
getScannablein interfaceIScannableDeviceService- Parameters:
name- name of scannable to find- Returns:
- scannable, never
null - Throws:
ScanningException- if no scannable with the given name could be found
-
getScannableNames
Description copied from interface:IScannableDeviceServiceGet the names of all scannables known to the connector.- Specified by:
getScannableNamesin interfaceIScannableDeviceService- Returns:
- Throws:
ScanningException
-
getGlobalPerScanMonitorNames
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IScannableDeviceServiceReturns the set of global per-scan monitors that should be added to all scans. This is used to support legacy (GDA8) spring configurations. Should not be called by client code.- Specified by:
getGlobalPerScanMonitorNamesin interfaceIScannableDeviceService- Returns:
- global per-scan monitor names
-
getRequiredPerScanMonitorNames
@Deprecated(since="GDA 9.3", forRemoval=true) public Set<String> getRequiredPerScanMonitorNames(String scannableName) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IScannableDeviceServiceReturns the set of the names required per-scan monitors for the given scannable name. This is used to support legacy (GDA8) spring configurations. Should not be called by client code.- Specified by:
getRequiredPerScanMonitorNamesin interfaceIScannableDeviceService- Parameters:
scannableName- scannable to get required per-scan monitor names for- Returns:
- names of required per-scan monitors for the scannable with the given name
-
handleDeviceError
- Specified by:
handleDeviceErrorin interfaceIScannableDeviceService
-