Package org.eclipse.scanning.api
Interface IScannable<T>
- Type Parameters:
T- the type of value returned byIBoundable.getPosition()
- All Superinterfaces:
IActivatable,IBoundable<T>,ILevel,INameable,ITimeoutable,ITolerable<T>
- All Known Implementing Classes:
AbstractScannable,BeamScannable,CalibrationFrameCollector,CompositeNexusScannable,CountableScannable,DetectorCollectionScannable,FrameCollectingScannable,JythonScannableNexusWrapper,MockBeamOnMonitor,MockCountingPositionScannable,MockNeXusScannable,MockNeXusSlit,MockPausingMonitor,MockScannable,MockStringNexusScannable,MockStringScannable,MockTopupScannable,NexusSlitsWrapper,NXObjectScannable,NXSampleScannable,ScannableNexusWrapper
public interface IScannable<T>
extends ILevel, ITimeoutable, IBoundable<T>, ITolerable<T>, IActivatable
Something that can take part in a sequenced scan which can have its position set.
This scannable is inspired by the original GDA8 Scannable. Very approximately Scannable
is IScannable
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Call to terminate a movement before it is complete, for example when ScannablePositioner#abort is called due to an exception with another IScannable's movementdefault StringgetUnit()The unit is the unit in which the setPosition and getPosition values are in.default TsetPosition(T value) Moves to the position required, blocking until it is complete.setPosition(T value, IPosition position) Moves to the position required, blocking until it is complete.Methods inherited from interface org.eclipse.scanning.api.device.IActivatable
isActivated, setActivatedMethods inherited from interface org.eclipse.scanning.api.IBoundable
getMaximum, getMinimum, getPermittedValues, getPositionMethods inherited from interface org.eclipse.scanning.api.ITimeoutable
getTimeout, setTimeoutMethods inherited from interface org.eclipse.scanning.api.ITolerable
getTolerance, setTolerance
-
Method Details
-
setPosition
Moves to the position required, blocking until it is complete. Similar to moveTo(...) in GDA8 Same as calling setPosition(value, null);- Parameters:
value-- Returns:
- the new position attained by the device, if known. (Saves additional call to getPosition()) If not know the demand value is returned. NOTE if null is returned the system will call getPosition() again.
- Throws:
ExceptionScanningException
-
setPosition
Moves to the position required, blocking until it is complete. Similar to moveTo(...) in GDA8- Parameters:
value- that this scalar should take.position- if within in a scan or null if not within a scan.- Returns:
- the new position attained by the device, if known. (Saves additional call to getPosition()) If not know the demand value is returned. NOTE if null is returned the system will call getPosition() again.
- Throws:
ExceptionScanningException
-
getUnit
The unit is the unit in which the setPosition and getPosition values are in.- Returns:
- String representation of unit which setPosition and getPosition are using.
-
abort
Call to terminate a movement before it is complete, for example when ScannablePositioner#abort is called due to an exception with another IScannable's movement
-