Package org.eclipse.scanning.api
Interface IBoundable<T>
- Type Parameters:
T-
- All Known Subinterfaces:
IScannable<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 IBoundable<T>
Interface which, if implemented, will provide information
about the upper and lower values which the value may take.
In GDA8 there are several concepts of bounds, the underlying
hardware, the acquistion layer etc. In Solstice there is one
limit and it is in the same unit as the position.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TThe upper limit in the same unit as the position.default TThe lower limit in the same unit as the position.default T[]Returns a list of the permitted values for this object, ornullif the values are not restricted to a set of permitted valuesThe position is the value which should be: 1.
-
Method Details
-
getPosition
The position is the value which should be: 1. Greater than or equal to the lower 2. Less than or equal to the upper. 3. One of the permitted values, if they are not null.- Returns:
- Throws:
ScanningException- if the position cannot be read for any reason
-
getMaximum
The upper limit in the same unit as the position.- Returns:
- null if there is no upper limit. In this case it will be the upper limit of the type T.
-
getMinimum
The lower limit in the same unit as the position.- Returns:
- null if there is no upper limit. In this case it will be the upper limit of the type T.
-
getPermittedValues
Returns a list of the permitted values for this object, ornullif the values are not restricted to a set of permitted values- Returns:
- list of permitted values, or
null - Throws:
Exception
-