Package gda.device.scannable
Class ProcessingScannable
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.AbstractScanHook
gda.device.scannable.ProcessingScannable
- All Implemented Interfaces:
Device,ProcessingRequestProvider,Scannable,Configurable,Findable,gda.observable.IObservable
A scannable that provides a configurable processing request. Takes no other actions in scan
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid__delitem__(String process) Python method to remove a processing entry__getitem__(String process) Python method to get processing configuration - returns unmodifiable copyvoid__setitem__(String process, Iterable<Object> config) Python convenience method for setting processing configurationsvoid__setitem__(String process, String config) Python convenience method for setting processing configuration to a single stringvoidaddProcessingRequest(String key, Object value) Add configuration to a previous process, creating one if it doesn't existvoidRemove all configurationvoidclearProcessing(String key) Remove all configuration for a processing keyvoidsetProcessingRequest(String key, Object config) Set the configuration for a processing key (to a list containing a single value) removing any previous configuration for that keyvoidsetProcessingRequest(String key, Collection<Object> config) Set the configuration for a processing key removing any previous configuration for that keyvoidsetProcessingRequest(Map<String, Collection<Object>> newRequest) Set complete processing request removing any previous configurationMethods inherited from class gda.device.scannable.AbstractScanHook
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setName, setOutputFormat, stop, toFormattedString, toString, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, setScanMetadataAttribute, setScanMetadataAttributes
-
Constructor Details
-
ProcessingScannable
-
-
Method Details
-
getProcessingRequest
- Specified by:
getProcessingRequestin interfaceProcessingRequestProvider
-
setProcessingRequest
Set complete processing request removing any previous configuration -
setProcessingRequest
Set the configuration for a processing key removing any previous configuration for that key -
setProcessingRequest
Set the configuration for a processing key (to a list containing a single value) removing any previous configuration for that key -
addProcessingRequest
Add configuration to a previous process, creating one if it doesn't exist -
clearProcessing
public void clearProcessing()Remove all configuration -
clearProcessing
Remove all configuration for a processing key -
__getitem__
Python method to get processing configuration - returns unmodifiable copy -
__setitem__
Python convenience method for setting processing configurations>>> pr['foo'] = ['hello', 'world'] # sets the config for the 'foo' entry
-
__setitem__
Python convenience method for setting processing configuration to a single string>>> pr['foo'] = 'helloWorld' # sets the config for the 'foo' entry >>> pr['foo'] ['helloWorld'] >>>
-
__delitem__
Python method to remove a processing entry
-